|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SourceCode
Represents a unit of source code to be analyzed
| Method Summary | |
|---|---|
org.codehaus.groovy.ast.ModuleNode |
getAst()
Return the Groovy AST (Abstract Syntax Tree) for this source file |
int |
getLineNumberForCharacterIndex(int charIndex)
Return the line index for the line containing the character at the specified index within the source code. |
java.util.List |
getLines()
|
java.lang.String |
getName()
Get the logical name for this source code. |
java.lang.String |
getPath()
Get the logical path for this source code. |
java.lang.String |
getText()
|
java.lang.String |
line(int lineNumber)
Get the trimmed line at the specified index |
| Method Detail |
|---|
java.lang.String getName()
java.lang.String getPath()
java.lang.String getText()
java.util.List getLines()
java.lang.String line(int lineNumber)
lineNumber - - the line number; may be negative
org.codehaus.groovy.ast.ModuleNode getAst()
int getLineNumberForCharacterIndex(int charIndex)
charIndex - - the index of the character within the source code (zero-based)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||