Groovy Documentation

groovy.org.codenarc.source
[Groovy] Class CustomCompilerPhaseSourceDecorator

java.lang.Object
  groovy.org.codenarc.source.AbstractSourceCode
      groovy.org.codenarc.source.CustomCompilerPhaseSourceDecorator

class CustomCompilerPhaseSourceDecorator
extends AbstractSourceCode

A SourceCode decorator overriding the decorated source's returned AST so that it meets the user's compilerPhase requirements. Ensures that the compiler phase is before classes are output to disk.

Authors:
Artur Gajowy


Constructor Summary
CustomCompilerPhaseSourceDecorator(SourceCode delegate, int compilerPhase)

 
Method Summary
int getAstCompilerPhase()

String getName()

String getPath()

SuppressionAnalyzer getSuppressionAnalyzer()

String getText()

String toString()

 
Methods inherited from class AbstractSourceCode
getAst, getAstCompilerPhase, getLineNumberForCharacterIndex, getLines, getMethodCallExpressions, isValid, line, normalizePath, setSuppressionAnalyzer
 

Constructor Detail

CustomCompilerPhaseSourceDecorator

CustomCompilerPhaseSourceDecorator(SourceCode delegate, int compilerPhase)


 
Method Detail

getAstCompilerPhase

@Override
int getAstCompilerPhase()


getName

String getName()


getPath

String getPath()


getSuppressionAnalyzer

@Override
SuppressionAnalyzer getSuppressionAnalyzer()


getText

String getText()


toString

String toString()


 

Groovy Documentation