[Java] Class StaticImportVisitor
- org.codehaus.groovy.control.StaticImportVisitor
Visitor to resolve constants and method calls from static Imports
Methods Summary
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 node, SourceUnit source) | |
protected void |
visitConstructorOrMethod(MethodNode node, boolean isConstructor) |
Inherited Methods Summary
Method Detail
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)
@Override public void visitAnnotations(AnnotatedNode node)
public void visitClass(ClassNode node, SourceUnit source)
@Override protected void visitConstructorOrMethod(MethodNode node, boolean isConstructor)
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/2.4.21/html/gapi/org/codehaus/groovy/control/StaticImportVisitor.html