public class StaticImportVisitor extends ClassCodeExpressionTransformer
Constructor and Description |
---|
StaticImportVisitor(ClassNode classNode,
SourceUnit sourceUnit) |
Modifier and Type | Method and Description |
---|---|
protected SourceUnit |
getSourceUnit() |
Expression |
transform(Expression exp)
Transforms the given expression into another expression
|
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)
Deprecated.
|
protected void |
visitConstructorOrMethod(MethodNode node,
boolean isConstructor) |
setSourcePosition, visitAnnotation, visitAssertStatement, visitCaseStatement, visitDoWhileLoop, visitExpressionStatement, visitField, visitForLoop, visitIfElse, visitProperty, visitReturnStatement, visitSwitch, visitSynchronizedStatement, visitThrowStatement, visitWhileLoop
addError, visitBlockStatement, visitBreakStatement, visitCatchStatement, visitClass, visitClassCodeContainer, visitConstructor, visitContinueStatement, visitDeclarationExpression, visitImports, visitMethod, visitObjectInitializerStatements, visitPackage, visitStatement, visitTryCatchFinally
afterSwitchConditionExpressionVisited, visitArgumentlistExpression, visitArrayExpression, visitAttributeExpression, visitBinaryExpression, visitBitwiseNegationExpression, visitBooleanExpression, visitBytecodeExpression, visitCastExpression, visitClassExpression, visitClosureExpression, visitClosureListExpression, visitConstantExpression, visitConstructorCallExpression, visitEmptyStatement, visitFieldExpression, visitGStringExpression, visitLambdaExpression, visitListExpression, visitMapEntryExpression, visitMapExpression, visitMethodCallExpression, visitMethodPointerExpression, visitMethodReferenceExpression, visitNotExpression, visitPostfixExpression, visitPrefixExpression, visitPropertyExpression, visitRangeExpression, visitShortTernaryExpression, visitSpreadExpression, visitSpreadMapExpression, visitStaticMethodCallExpression, visitTernaryExpression, visitTupleExpression, visitUnaryMinusExpression, visitUnaryPlusExpression, visitVariableExpression
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
visitEmptyExpression, visitListOfExpressions
public StaticImportVisitor(ClassNode classNode, SourceUnit sourceUnit)
@Deprecated public void visitClass(ClassNode classNode, SourceUnit sourceUnit)
protected void visitConstructorOrMethod(MethodNode node, boolean isConstructor)
visitConstructorOrMethod
in class ClassCodeExpressionTransformer
public void visitAnnotations(AnnotatedNode node)
visitAnnotations
in class ClassCodeVisitorSupport
public Expression transform(Expression exp)
ExpressionTransformer
transform
in interface ExpressionTransformer
transform
in class ClassCodeExpressionTransformer
protected Expression transformBinaryExpression(BinaryExpression be)
protected Expression transformVariableExpression(VariableExpression ve)
protected Expression transformMethodCallExpression(MethodCallExpression mce)
protected Expression transformConstructorCallExpression(ConstructorCallExpression cce)
protected Expression transformClosureExpression(ClosureExpression ce)
protected Expression transformPropertyExpression(PropertyExpression pe)
protected SourceUnit getSourceUnit()
getSourceUnit
in class ClassCodeVisitorSupport