Package org.codenarc.source
Class SourceString
java.lang.Object
org.codenarc.source.AbstractSourceCode
org.codenarc.source.SourceString
- All Implemented Interfaces:
groovy.lang.GroovyObject
,SourceCode
-
Field Summary
Fields inherited from interface org.codenarc.source.SourceCode
DEFAULT_COMPILER_PHASE
-
Constructor Summary
ConstructorsConstructorDescriptionSourceString
(String source) SourceString
(String source, String path) SourceString
(String source, String path, String name) -
Method Summary
Modifier and TypeMethodDescriptiongroovy.lang.MetaClass
getName()
getPath()
getProperty
(String property) getText()
invokeMethod
(String method, Object arguments) void
setMetaClass
(groovy.lang.MetaClass mc) void
void
void
setProperty
(String property, Object value) toString()
Methods inherited from class org.codenarc.source.AbstractSourceCode
getAst, getAstCompilerPhase, getLineNumberForCharacterIndex, getLines, getLOG, getMethodCallExpressions, getSEPARATOR_PROP, getSuppressionAnalyzer, isValid, line, normalizePath, setSuppressionAnalyzer
-
Constructor Details
-
SourceString
-
SourceString
-
SourceString
-
-
Method Details
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()- Specified by:
getMetaClass
in interfacegroovy.lang.GroovyObject
- Overrides:
getMetaClass
in classAbstractSourceCode
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc) - Specified by:
setMetaClass
in interfacegroovy.lang.GroovyObject
- Overrides:
setMetaClass
in classAbstractSourceCode
-
invokeMethod
- Specified by:
invokeMethod
in interfacegroovy.lang.GroovyObject
- Overrides:
invokeMethod
in classAbstractSourceCode
-
getProperty
- Specified by:
getProperty
in interfacegroovy.lang.GroovyObject
- Overrides:
getProperty
in classAbstractSourceCode
-
setProperty
- Specified by:
setProperty
in interfacegroovy.lang.GroovyObject
- Overrides:
setProperty
in classAbstractSourceCode
-
getPath
-
getName
-
setName
-
getText
-
setPath
-
toString
-