public class LSDocument extends Object
Constructor and Description |
---|
LSDocument(Path path,
String sourceRoot) |
LSDocument(String uri) |
Modifier and Type | Method and Description |
---|---|
Path |
getPath()
Get the path of the given URI.
|
String |
getSourceRoot()
Get source root.
|
Path |
getSourceRootPath()
Get source root path.
|
URI |
getURI()
Get the URI of the given string URI.
|
String |
getURIString()
Get the uri.
|
boolean |
hasProjectRepo()
Returns True when this source file has a ballerina project repository folder.
|
void |
setSourceRoot(String sourceRoot)
Set source root.
|
void |
setUri(String uri)
Set URI.
|
String |
toString() |
public LSDocument(String uri)
public Path getSourceRootPath()
Path
source root pathpublic URI getURI() throws MalformedURLException, URISyntaxException
URI
get the URIMalformedURLException
- can throw malformed url exceptionURISyntaxException
- can throw URI syntax exceptionpublic void setUri(String uri)
uri
- string URIpublic void setSourceRoot(String sourceRoot)
sourceRoot
- source rootpublic boolean hasProjectRepo()
Copyright © 2019 WSO2. All rights reserved.