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 implements groovy.lang.GroovyObject
-
-
Constructor Summary
Constructors Constructor Description SourceFile(File file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
createSourceUnit()
groovy.lang.MetaClass
getMetaClass()
String
getName()
String
getPath()
Object
getProperty(String property)
String
getText()
Object
invokeMethod(String method, Object arguments)
void
setMetaClass(groovy.lang.MetaClass mc)
void
setProperty(String property, Object value)
String
toString()
-
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:
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
public Object invokeMethod(String method, Object arguments)
- Specified by:
invokeMethod
in interfacegroovy.lang.GroovyObject
- Overrides:
invokeMethod
in classAbstractSourceCode
-
getProperty
public Object getProperty(String property)
- Specified by:
getProperty
in interfacegroovy.lang.GroovyObject
- Overrides:
getProperty
in classAbstractSourceCode
-
setProperty
public void setProperty(String property, Object value)
- Specified by:
setProperty
in interfacegroovy.lang.GroovyObject
- Overrides:
setProperty
in classAbstractSourceCode
-
getName
public String getName()
- Specified by:
getName
in interfaceSourceCode
-
getPath
public String getPath()
- Specified by:
getPath
in interfaceSourceCode
-
getText
public String getText()
- Specified by:
getText
in interfaceSourceCode
-
createSourceUnit
protected Object createSourceUnit()
- Specified by:
createSourceUnit
in classAbstractSourceCode
-
-