Contains source related static utility methods
Type Params | Return Type | Name and description |
---|---|---|
|
static boolean |
containsOnlyAsciiCharacters(java.lang.String string) |
|
static boolean |
isAscii(char ch) |
|
static java.util.List<java.lang.String> |
nodeSourceLines(SourceCode source, org.codehaus.groovy.ast.ASTNode node) |
|
static java.util.List<java.lang.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 java.util.List<java.lang.String> |
sourceLinesBetweenNodes(SourceCode source, org.codehaus.groovy.ast.ASTNode startNode, org.codehaus.groovy.ast.ASTNode endNode) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
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