Class GMetricsSourceCodeAdapter

  • All Implemented Interfaces:
    groovy.lang.GroovyObject, org.gmetrics.source.SourceCode

    public class GMetricsSourceCodeAdapter
    extends Object
    implements org.gmetrics.source.SourceCode, groovy.lang.GroovyObject
    • 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 Object invokeMethod​(String method,
                                   Object arguments)
        Specified by:
        invokeMethod in interface groovy.lang.GroovyObject
      • getProperty

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

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

        public String getName()
        Specified by:
        getName in interface org.gmetrics.source.SourceCode
      • getPath

        public String getPath()
        Specified by:
        getPath in interface org.gmetrics.source.SourceCode
      • getText

        public String getText()
        Specified by:
        getText in interface org.gmetrics.source.SourceCode
      • getLines

        public List getLines()
        Specified by:
        getLines in interface org.gmetrics.source.SourceCode
      • line

        public 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
      • isValid

        public boolean isValid()
        Specified by:
        isValid in interface org.gmetrics.source.SourceCode