class SourceFile extends AbstractSourceCode
The SourceCode implementation for a single file. Note that the path is normalized: file separator chars are normalized to standard '/'.
Constructor and description |
---|
SourceFile
(java.io.File file) Construct a new instance for the file at the specified path |
Type Params | Return Type | Name and description |
---|---|---|
|
java.lang.String |
getName()
|
|
java.lang.String |
getPath()
|
|
java.lang.String |
getText()
|
|
java.lang.String |
toString() |
Methods inherited from class | Name |
---|---|
class AbstractSourceCode |
getAst, getAstCompilerPhase, getLineNumberForCharacterIndex, getLines, getMethodCallExpressions, isValid, line, normalizePath, setSuppressionAnalyzer |
Construct a new instance for the file at the specified path
path
- - the path of the file; must not be null or empty