|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectorg.codenarc.source.AbstractSourceCode
org.codenarc.source.SourceString
class SourceString extends AbstractSourceCode
SourceCode implementation that uses source from a pre-defined String. Note that the path is normalized: file separator chars are normalized to standard '/'.
Property Summary | |
---|---|
String |
name
|
String |
path
|
Constructor Summary | |
SourceString(String source, String path = null, String name = null)
Construct a new instance for the file at the specified path |
Method Summary | |
---|---|
String
|
getText()
|
void
|
setPath(String path)
|
String
|
toString()
|
Methods inherited from class AbstractSourceCode | |
---|---|
normalizePath |
Property Detail |
---|
String name
String path
Constructor Detail |
---|
public SourceString(String source, String path = null, String name = null)
Method Detail |
---|
String getText()
void setPath(String path)
String toString()
Groovy Documentation