Package org.apache.groovy.contracts.ast
Class BaseASTTransformation
java.lang.Object
org.apache.groovy.contracts.ast.BaseASTTransformation
- All Implemented Interfaces:
- ASTTransformation
- Direct Known Subclasses:
- ClosureExpressionEvaluationASTTransformation,- GContractsASTTransformation
Base AST transformation encapsulating all common helper methods and implementing 
ASTTransformation.- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected ReaderSourcegetReaderSource(SourceUnit unit) Reads the protected source1 instance variable ofSourceUnit.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.codehaus.groovy.transform.ASTTransformationvisit
- 
Constructor Details- 
BaseASTTransformationpublic BaseASTTransformation()
 
- 
- 
Method Details- 
getReaderSourceReads the protected source1 instance variable ofSourceUnit.- Parameters:
- unit- the- SourceUnitto retrieve the- ReaderSourcefrom
- Returns:
- the ReaderSourceof the given unit.
 
 
-