Package org.codenarc.source
Class SourceString
- java.lang.Object
-
- org.codenarc.source.AbstractSourceCode
-
- org.codenarc.source.SourceString
-
- All Implemented Interfaces:
groovy.lang.GroovyObject,SourceCode
public class SourceString extends AbstractSourceCode
-
-
Field Summary
-
Fields inherited from interface org.codenarc.source.SourceCode
DEFAULT_COMPILER_PHASE
-
-
Constructor Summary
Constructors Constructor Description SourceString(String source)SourceString(String source, String path)SourceString(String source, String path, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description groovy.lang.MetaClassgetMetaClass()StringgetName()StringgetPath()ObjectgetProperty(String property)StringgetText()ObjectinvokeMethod(String method, Object arguments)voidsetMetaClass(groovy.lang.MetaClass mc)voidsetName(String value)voidsetPath(String path)voidsetProperty(String property, Object value)StringtoString()-
Methods inherited from class org.codenarc.source.AbstractSourceCode
getAst, getAstCompilerPhase, getLineNumberForCharacterIndex, getLines, getLOG, getMethodCallExpressions, getSEPARATOR_PROP, getSuppressionAnalyzer, isValid, line, normalizePath, setSuppressionAnalyzer
-
-
-
-
Method Detail
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()
- Specified by:
getMetaClassin interfacegroovy.lang.GroovyObject- Overrides:
getMetaClassin classAbstractSourceCode
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc)
- Specified by:
setMetaClassin interfacegroovy.lang.GroovyObject- Overrides:
setMetaClassin classAbstractSourceCode
-
invokeMethod
public Object invokeMethod(String method, Object arguments)
- Specified by:
invokeMethodin interfacegroovy.lang.GroovyObject- Overrides:
invokeMethodin classAbstractSourceCode
-
getProperty
public Object getProperty(String property)
- Specified by:
getPropertyin interfacegroovy.lang.GroovyObject- Overrides:
getPropertyin classAbstractSourceCode
-
setProperty
public void setProperty(String property, Object value)
- Specified by:
setPropertyin interfacegroovy.lang.GroovyObject- Overrides:
setPropertyin classAbstractSourceCode
-
getPath
public String getPath()
-
getName
public String getName()
-
setName
public void setName(String value)
-
getText
public String getText()
-
setPath
public void setPath(String path)
-
-