org.codenarc.rule.size
Class GMetricsSourceCodeAdapter

java.lang.Object
  extended by org.codenarc.rule.size.GMetricsSourceCodeAdapter
All Implemented Interfaces:
groovy.lang.GroovyObject, org.gmetrics.source.SourceCode

public class GMetricsSourceCodeAdapter
extends java.lang.Object
implements org.gmetrics.source.SourceCode, groovy.lang.GroovyObject


Constructor Summary
GMetricsSourceCodeAdapter(SourceCode sourceCode)
           
 
Method Summary
 org.codehaus.groovy.ast.ModuleNode getAst()
           
 int getLineNumberForCharacterIndex(int charIndex)
           
 java.util.List getLines()
           
 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)
           
 java.lang.String line(int lineNumber)
           
 void setMetaClass(groovy.lang.MetaClass mc)
           
 void setProperty(java.lang.String property, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GMetricsSourceCodeAdapter

public GMetricsSourceCodeAdapter(SourceCode sourceCode)
Method Detail

getMetaClass

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

setMetaClass

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

invokeMethod

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

getProperty

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

setProperty

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

getName

public java.lang.String getName()
Specified by:
getName in interface org.gmetrics.source.SourceCode

getPath

public java.lang.String getPath()
Specified by:
getPath in interface org.gmetrics.source.SourceCode

getText

public java.lang.String getText()
Specified by:
getText in interface org.gmetrics.source.SourceCode

getLines

public java.util.List getLines()
Specified by:
getLines in interface org.gmetrics.source.SourceCode

line

public java.lang.String line(int lineNumber)
Specified by:
line in interface org.gmetrics.source.SourceCode

getAst

public org.codehaus.groovy.ast.ModuleNode getAst()
Specified by:
getAst in interface org.gmetrics.source.SourceCode

getLineNumberForCharacterIndex

public int getLineNumberForCharacterIndex(int charIndex)
Specified by:
getLineNumberForCharacterIndex in interface org.gmetrics.source.SourceCode


Copyright © 2011. All Rights Reserved.