Class SourceString
java.lang.Object
org.gmetrics.source.AbstractSourceCode
org.gmetrics.source.SourceString
- All Implemented Interfaces:
groovy.lang.GroovyObject, SourceCode
-
Constructor Summary
ConstructorsConstructorDescriptionSourceString(String source) SourceString(String source, String path) SourceString(String source, String path, String name) -
Method Summary
Modifier and TypeMethodDescriptionprotected Objectgroovy.lang.MetaClassgetName()getPath()getProperty(String property) getText()invokeMethod(String method, Object arguments) voidsetMetaClass(groovy.lang.MetaClass mc) voidvoidvoidsetProperty(String property, Object value) toString()Methods inherited from class AbstractSourceCode
getAst, getFILE_SEPARATOR, getLineNumberForCharacterIndex, getLines, getLOG, isValid, line, normalizePath
-
Constructor Details
-
SourceString
-
SourceString
-
SourceString
-
-
Method Details
-
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
- Specified by:
invokeMethodin interfacegroovy.lang.GroovyObject- Overrides:
invokeMethodin classAbstractSourceCode
-
getProperty
- Specified by:
getPropertyin interfacegroovy.lang.GroovyObject- Overrides:
getPropertyin classAbstractSourceCode
-
setProperty
- Specified by:
setPropertyin interfacegroovy.lang.GroovyObject- Overrides:
setPropertyin classAbstractSourceCode
-
getPath
-
getName
-
setName
-
getText
-
setPath
-
toString
-
createSourceUnit
- Specified by:
createSourceUnitin classAbstractSourceCode
-