org.codenarc.source
Class SourceString

java.lang.Object
  extended by org.codenarc.source.AbstractSourceCode
      extended by 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
SourceString(String source)
           
SourceString(String source, String path)
           
SourceString(String source, String path, String name)
           
 
Method Summary
 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 setName(String value)
           
 void setPath(String path)
           
 void setProperty(String property, Object value)
           
 String toString()
           
 
Methods inherited from class org.codenarc.source.AbstractSourceCode
getAst, getAstCompilerPhase, getLineNumberForCharacterIndex, getLines, getLOG, getMethodCallExpressions, getSEPARATOR_PROP, getSuppressionAnalyzer, isValid, line, normalizePath, setSuppressionAnalyzer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SourceString

public SourceString(String source,
                    String path)

SourceString

public SourceString(String source)

SourceString

public SourceString(String source,
                    String path,
                    String name)
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 Object invokeMethod(String method,
                           Object arguments)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject
Overrides:
invokeMethod in class AbstractSourceCode

getProperty

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

setProperty

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

getPath

public String getPath()

getName

public String getName()

setName

public void setName(String value)

getText

public String getText()

setPath

public void setPath(String path)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014. All rights reserved.