Visitor to resolve constants and method calls from static imports.
Constructor and description |
---|
StaticImportVisitor
(ClassNode classNode, SourceUnit sourceUnit) |
Type Params | Return Type | Name and description |
---|---|---|
|
protected SourceUnit |
getSourceUnit() |
|
Expression |
transform(Expression exp) |
|
protected Expression |
transformBinaryExpression(BinaryExpression be) |
|
protected Expression |
transformClosureExpression(ClosureExpression ce) |
|
protected Expression |
transformConstructorCallExpression(ConstructorCallExpression cce) |
|
protected Expression |
transformMethodCallExpression(MethodCallExpression mce) |
|
protected Expression |
transformPropertyExpression(PropertyExpression pe) |
|
protected Expression |
transformVariableExpression(VariableExpression ve) |
|
void |
visitAnnotations(AnnotatedNode node) |
|
void |
visitClass(ClassNode classNode, SourceUnit sourceUnit) Call StaticImportVisitor(ClassNode,SourceUnit) then visitClass(ClassNode). |
|
protected void |
visitConstructorOrMethod(MethodNode node, boolean isConstructor) |
Call StaticImportVisitor(ClassNode,SourceUnit) then visitClass(ClassNode).
Copyright © 2003-2020 The Apache Software Foundation. All rights reserved.