|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectorg.codenarc.source.AbstractSourceCode
class AbstractSourceCode
Abstract superclass for SourceCode implementations
Property Summary | |
---|---|
static def |
FILE_SEPARATOR
|
static def |
LOG
|
Constructor Summary | |
AbstractSourceCode()
|
Method Summary | |
---|---|
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. |
List
|
getLines()
|
String
|
line(int lineNumber)
Get the trimmed line at the specified index |
protected String
|
normalizePath(String path)
Return the normalized value of the specified path. |
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Property Detail |
---|
static final def FILE_SEPARATOR
static final def LOG
Constructor Detail |
---|
AbstractSourceCode()
Method Detail |
---|
ModuleNode getAst()
int getLineNumberForCharacterIndex(int charIndex)
List getLines()
String line(int lineNumber)
protected String normalizePath(String path)
Groovy Documentation