|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.groovy.transform.StaticTypesTransformation
org.codehaus.groovy.transform.sc.StaticCompileTransformation
public class StaticCompileTransformation
Handles the implementation of the CompileStatic transformation.
| Field Summary |
|---|
| Fields inherited from class org.codehaus.groovy.transform.StaticTypesTransformation |
|---|
STATIC_ERROR_PREFIX |
| Constructor Summary | |
|---|---|
StaticCompileTransformation()
|
|
| Method Summary | |
|---|---|
protected StaticTypeCheckingVisitor |
newVisitor(SourceUnit unit,
ClassNode node,
TypeCheckerPluginFactory pluginFactory)
Allows subclasses to provide their own visitor. |
void |
visit(ASTNode[] nodes,
SourceUnit source)
The method is invoked when an AST Transformation is active. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StaticCompileTransformation()
| Method Detail |
|---|
public void visit(ASTNode[] nodes,
SourceUnit source)
ASTTransformation
visit in interface ASTTransformationvisit in class StaticTypesTransformationnodes - The ASTnodes when the call was triggered. Element 0 is the AnnotationNode that triggered this
annotation to be activated. Element 1 is the AnnotatedNode decorated, such as a MethodNode or ClassNode. For
global transformations it is usually safe to ignore this parameter.source - The source unit being compiled. The source unit may contain several classes. For global transformations,
information about the AST can be retrieved from this object.
protected StaticTypeCheckingVisitor newVisitor(SourceUnit unit,
ClassNode node,
TypeCheckerPluginFactory pluginFactory)
StaticTypesTransformation
newVisitor in class StaticTypesTransformationunit - the source unitnode - the current classnode
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||