Contains source related static utility methods
| Type Params | Return Type | Name and description |
|---|---|---|
|
static List<String> |
nodeSourceLines(SourceCode source, org.codehaus.groovy.ast.ASTNode node) |
|
static List<String> |
sourceLinesBetween(SourceCode source, int startLine, int startColumn, int endLine, int endColumn)Retrieves source lines between the start line and column and end line and column. |
|
static List<String> |
sourceLinesBetweenNodes(SourceCode source, org.codehaus.groovy.ast.ASTNode startNode, org.codehaus.groovy.ast.ASTNode endNode) |
Retrieves source lines between the start line and column and end line and column. Lines and columns are counted starting at one as do the lines and columns describing a beginning and end of ASTNode.
source - Source from which the lines are to be extractedstartLine - has to be greater than zerostartColumn - has to be greater than zeroendLine - has to be greater than zeroendColumn - has to be greater than zero