public class StaticCompileTransformation
extends StaticTypesTransformation
Handles the implementation of the CompileStatic transformation.
| Fields inherited from class | Fields |
|---|---|
class StaticTypesTransformation |
STATIC_ERROR_PREFIX, compilationUnit |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected StaticTypeCheckingVisitor |
newVisitor(SourceUnit unit, ClassNode node)Creates the type checking visitor used by this transformation. |
|
public void |
visit(ASTNode[] nodes, SourceUnit source)Applies static type checking and rewrites the annotated class or method for static compilation. |
| Methods inherited from class | Name |
|---|---|
class StaticTypesTransformation |
addTypeCheckingExtensions, newVisitor, setCompilationUnit, visit |
Creates the type checking visitor used by this transformation.
unit - the source unit being processednode - the class node that anchors the visitApplies static type checking and rewrites the annotated class or method for static compilation.
nodes - the annotation node and the annotated target nodesource - the source unit being transformed