Package org.gmetrics.source
Class SourceFile
- java.lang.Object
-
- org.gmetrics.source.AbstractSourceCode
-
- org.gmetrics.source.SourceFile
-
- All Implemented Interfaces:
groovy.lang.GroovyObject,SourceCode
public class SourceFile extends AbstractSourceCode
-
-
Constructor Summary
Constructors Constructor Description SourceFile(File file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ObjectcreateSourceUnit()groovy.lang.MetaClassgetMetaClass()StringgetName()StringgetPath()ObjectgetProperty(String property)StringgetText()ObjectinvokeMethod(String method, Object arguments)voidsetMetaClass(groovy.lang.MetaClass mc)voidsetProperty(String property, Object value)StringtoString()-
Methods inherited from class org.gmetrics.source.AbstractSourceCode
getAst, getFILE_SEPARATOR, getLineNumberForCharacterIndex, getLines, getLOG, isValid, line, normalizePath
-
-
-
-
Constructor Detail
-
SourceFile
public SourceFile(File file)
-
-
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
-
getName
public String getName()
-
getPath
public String getPath()
-
getText
public String getText()
-
createSourceUnit
protected Object createSourceUnit()
- Specified by:
createSourceUnitin classAbstractSourceCode
-
-