public class StaticImportVisitor extends ClassCodeExpressionTransformer
Visitor to resolve constants and method calls from static imports.
Constructor and description |
---|
StaticImportVisitor
() Use StaticImportVisitor(ClassNode,SourceUnit). |
StaticImportVisitor
(ClassNode classNode, SourceUnit sourceUnit) |
Type Params | Return Type | Name and description |
---|---|---|
|
protected SourceUnit |
getSourceUnit() |
|
public 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) |
|
public void |
visitAnnotations(AnnotatedNode node) |
|
public 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-2021 The Apache Software Foundation. All rights reserved.