org.codenarc.source
Class SourceFile

java.lang.Object
  extended by org.codenarc.source.AbstractSourceCode
      extended by org.codenarc.source.SourceFile
All Implemented Interfaces:
groovy.lang.GroovyObject, SourceCode

public class SourceFile
extends AbstractSourceCode


Constructor Summary
SourceFile(java.io.File file)
           
 
Method Summary
 groovy.lang.MetaClass getMetaClass()
           
 java.lang.String getName()
           
 java.lang.String getPath()
           
 java.lang.Object getProperty(java.lang.String property)
           
 java.lang.String getText()
           
 java.lang.Object invokeMethod(java.lang.String method, java.lang.Object arguments)
           
 void setMetaClass(groovy.lang.MetaClass mc)
           
 void setProperty(java.lang.String property, java.lang.Object value)
           
 java.lang.String toString()
           
 
Methods inherited from class org.codenarc.source.AbstractSourceCode
getAst, getFILE_SEPARATOR, getLineNumberForCharacterIndex, getLines, getLOG, getSEPARATOR_PROP, isValid, line, normalizePath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SourceFile

public SourceFile(java.io.File file)
Method Detail

getMetaClass

public groovy.lang.MetaClass getMetaClass()
Specified by:
getMetaClass in interface groovy.lang.GroovyObject
Overrides:
getMetaClass in class AbstractSourceCode

setMetaClass

public void setMetaClass(groovy.lang.MetaClass mc)
Specified by:
setMetaClass in interface groovy.lang.GroovyObject
Overrides:
setMetaClass in class AbstractSourceCode

invokeMethod

public java.lang.Object invokeMethod(java.lang.String method,
                                     java.lang.Object arguments)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject
Overrides:
invokeMethod in class AbstractSourceCode

getProperty

public java.lang.Object getProperty(java.lang.String property)
Specified by:
getProperty in interface groovy.lang.GroovyObject
Overrides:
getProperty in class AbstractSourceCode

setProperty

public void setProperty(java.lang.String property,
                        java.lang.Object value)
Specified by:
setProperty in interface groovy.lang.GroovyObject
Overrides:
setProperty in class AbstractSourceCode

getName

public java.lang.String getName()

getPath

public java.lang.String getPath()

getText

public java.lang.String getText()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2011. All Rights Reserved.