public class StaticImportVisitor extends ClassCodeExpressionTransformer
Constructor and Description |
---|
StaticImportVisitor() |
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 node,
SourceUnit source) |
protected void |
visitConstructorOrMethod(MethodNode node,
boolean isConstructor) |
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
visitArgumentlistExpression, visitArrayExpression, visitAttributeExpression, visitBinaryExpression, visitBitwiseNegationExpression, visitBooleanExpression, visitBytecodeExpression, visitCastExpression, visitClassExpression, visitClosureExpression, visitClosureListExpression, visitConstantExpression, visitConstructorCallExpression, visitEmptyStatement, visitFieldExpression, visitGStringExpression, visitListExpression, visitListOfExpressions, visitMapEntryExpression, visitMapExpression, visitMethodCallExpression, visitMethodPointerExpression, visitNotExpression, visitPostfixExpression, visitPrefixExpression, visitPropertyExpression, visitRangeExpression, visitShortTernaryExpression, visitSpreadExpression, visitSpreadMapExpression, visitStaticMethodCallExpression, visitTernaryExpression, visitTupleExpression, visitUnaryMinusExpression, visitUnaryPlusExpression, visitVariableExpression
public void visitClass(ClassNode node, SourceUnit source)
protected void visitConstructorOrMethod(MethodNode node, boolean isConstructor)
visitConstructorOrMethod
in class ClassCodeExpressionTransformer
public void visitAnnotations(AnnotatedNode node)
visitAnnotations
in class ClassCodeExpressionTransformer
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