public class CopyExpressionVisitor extends Object implements ExpressionVisitor<Expression,RuntimeException>
Constructor and Description |
---|
CopyExpressionVisitor() |
Modifier and Type | Method and Description |
---|---|
protected List<Expression> |
copy(Collection<Expression> expressions)
Copies a collection of expressions.
|
protected Map<String,Expression> |
copy(Map<String,Expression> expressions)
Copies a given map of expressions.
|
protected <T extends Expression> |
copy(T e)
Copies a given expression by accepting this visitor.
|
protected <T extends Expression> |
copyOptional(T e) |
Expression |
visit(AssignmentExpression e)
Visits an assignment expression.
|
Expression |
visit(BlockExpression e)
Visits a block expression.
|
Expression |
visit(BreakExpression e)
Visits a break expression.
|
Expression |
visit(CastExpression e)
Visits a cast expression.
|
Expression |
visit(ChainedExpression e)
Visits a chained expression.
|
Expression |
visit(ClosureExpression e)
Visits a closure.
|
Expression |
visit(ClosureInvocationExpression e)
Visits a closure invocation expression.
|
Expression |
visit(CompoundAssignmentExpression e)
Visits an compound assignment expression.
|
Expression |
visit(ConditionalExpression e)
Visits a conditional expression.
|
Expression |
visit(ConstantExpression e)
Visits a constant.
|
Expression |
visit(ContinueExpression e)
Visits a continue expression.
|
Expression |
visit(CustomConstantExpression e)
Visits a custom constant expression (a constant defined by user).
|
Expression |
visit(DebugExpression e)
Visits a debug expression.
|
Expression |
visit(DefExpression e)
Visits a define expression.
|
Expression |
visit(DereferenceExpression e)
Visits a dereference expression.
|
Expression |
visit(EnumerationExpression e)
Visits an enumeration expression.
|
Expression |
visit(ForeachExpression e)
Visits a foreach expression.
|
Expression |
visit(ForExpression e)
Visits a for expression.
|
Expression |
visit(FunctionCallExpression e)
Visits a function call.
|
Expression |
visit(FunctionCallWithNamedArgs e)
Visits a function call with named args expression.
|
Expression |
visit(FunctionExpression e)
Visits a function expression.
|
Expression |
visit(IfnullExpression e)
Visits an ifnull expression.
|
Expression |
visit(IncDecExpression e)
Visits a increment/decrement expression.
|
Expression |
visit(InstanceofExpression e)
Visits an instanceof expression.
|
Expression |
visit(ListExpression e)
Visits a list expression.
|
Expression |
visit(MapExpression e)
Visits a map expression.
|
Expression |
visit(MethodCallExpression e)
Visits a method call.
|
Expression |
visit(MethodExpression e)
Visits a method expression.
|
Expression |
visit(PropertyExpression e)
Visits a property expression.
|
Expression |
visit(PropertyLiteralExpression e)
Visits a property literal expression.
|
Expression |
visit(RecordConstructorExpression e)
Visits a record constructor expression.
|
Expression |
visit(RecordExpression e)
Visits a record expression.
|
Expression |
visit(ReferenceExpression e)
Visits a reference expression.
|
Expression |
visit(SetExpression e)
Visits a set expression.
|
Expression |
visit(SuperConstructorExpression e)
Visits a super constructor expression.
|
Expression |
visit(SwitchExpression e)
Visits a switch expression.
|
Expression |
visit(SyntheticExpression e)
Visits an synthetic expression.
|
Expression |
visit(ThisConstructorExpression e)
Visits a this constructor expression.
|
Expression |
visit(ThisExpression e)
Visits this.
|
Expression |
visit(TryCatchExpression e)
Visits a try-catch expression.
|
Expression |
visit(TypeExpression e)
Visits a type literal expression.
|
Expression |
visit(UnknownExpression e)
Visits an unknown expression.
|
Expression |
visit(VariableExpression e)
Visits a variable.
|
Expression |
visit(WhileExpression e)
Visits a while expresion.
|
protected <T extends Expression> T copy(T e)
T
- e
- protected <T extends Expression> T copyOptional(T e)
protected List<Expression> copy(Collection<Expression> expressions)
expressions
- protected Map<String,Expression> copy(Map<String,Expression> expressions)
expressions
- public Expression visit(ConstantExpression e)
ExpressionVisitor
visit
in interface ExpressionVisitor<Expression,RuntimeException>
public Expression visit(SyntheticExpression e)
ExpressionVisitor
visit
in interface ExpressionVisitor<Expression,RuntimeException>
public Expression visit(VariableExpression e)
ExpressionVisitor
visit
in interface ExpressionVisitor<Expression,RuntimeException>
public Expression visit(FunctionCallExpression e)
ExpressionVisitor
visit
in interface ExpressionVisitor<Expression,RuntimeException>
public Expression visit(MethodCallExpression e)
ExpressionVisitor
visit
in interface ExpressionVisitor<Expression,RuntimeException>
public Expression visit(ClosureInvocationExpression e)
ExpressionVisitor
visit
in interface ExpressionVisitor<Expression,RuntimeException>
public Expression visit(ClosureExpression e)
ExpressionVisitor
visit
in interface ExpressionVisitor<Expression,RuntimeException>
public Expression visit(ListExpression e)
ExpressionVisitor
visit
in interface ExpressionVisitor<Expression,RuntimeException>
public Expression visit(SetExpression e)
ExpressionVisitor
visit
in interface ExpressionVisitor<Expression,RuntimeException>
public Expression visit(MapExpression e)
ExpressionVisitor
visit
in interface ExpressionVisitor<Expression,RuntimeException>
public Expression visit(RecordExpression e)
ExpressionVisitor
visit
in interface ExpressionVisitor<Expression,RuntimeException>
public Expression visit(RecordConstructorExpression e)
ExpressionVisitor
visit
in interface ExpressionVisitor<Expression,RuntimeException>
public Expression visit(ThisConstructorExpression e)
ExpressionVisitor
visit
in interface ExpressionVisitor<Expression,RuntimeException>
public Expression visit(SuperConstructorExpression e)
ExpressionVisitor
visit
in interface ExpressionVisitor<Expression,RuntimeException>
public Expression visit(ReferenceExpression e)
ExpressionVisitor
visit
in interface ExpressionVisitor<Expression,RuntimeException>
public Expression visit(PropertyExpression e)
ExpressionVisitor
visit
in interface ExpressionVisitor<Expression,RuntimeException>
public Expression visit(FunctionExpression e)
ExpressionVisitor
visit
in interface ExpressionVisitor<Expression,RuntimeException>
public Expression visit(TryCatchExpression e)
ExpressionVisitor
visit
in interface ExpressionVisitor<Expression,RuntimeException>
public Expression visit(SwitchExpression e)
ExpressionVisitor
visit
in interface ExpressionVisitor<Expression,RuntimeException>
public Expression visit(AssignmentExpression e)
ExpressionVisitor
visit
in interface ExpressionVisitor<Expression,RuntimeException>
public Expression visit(ChainedExpression e)
ExpressionVisitor
visit
in interface ExpressionVisitor<Expression,RuntimeException>
public Expression visit(DereferenceExpression e)
ExpressionVisitor
visit
in interface ExpressionVisitor<Expression,RuntimeException>
public Expression visit(DefExpression e)
ExpressionVisitor
visit
in interface ExpressionVisitor<Expression,RuntimeException>
public Expression visit(ConditionalExpression e)
ExpressionVisitor
visit
in interface ExpressionVisitor<Expression,RuntimeException>
public Expression visit(IfnullExpression e)
ExpressionVisitor
visit
in interface ExpressionVisitor<Expression,RuntimeException>
public Expression visit(EnumerationExpression e)
ExpressionVisitor
visit
in interface ExpressionVisitor<Expression,RuntimeException>
public Expression visit(CustomConstantExpression e)
ExpressionVisitor
visit
in interface ExpressionVisitor<Expression,RuntimeException>
public Expression visit(WhileExpression e)
ExpressionVisitor
visit
in interface ExpressionVisitor<Expression,RuntimeException>
public Expression visit(ForExpression e)
ExpressionVisitor
visit
in interface ExpressionVisitor<Expression,RuntimeException>
public Expression visit(ForeachExpression e)
ExpressionVisitor
visit
in interface ExpressionVisitor<Expression,RuntimeException>
public Expression visit(CastExpression e)
ExpressionVisitor
visit
in interface ExpressionVisitor<Expression,RuntimeException>
public Expression visit(PropertyLiteralExpression e)
ExpressionVisitor
visit
in interface ExpressionVisitor<Expression,RuntimeException>
public Expression visit(TypeExpression e)
ExpressionVisitor
visit
in interface ExpressionVisitor<Expression,RuntimeException>
public Expression visit(FunctionCallWithNamedArgs e)
ExpressionVisitor
visit
in interface ExpressionVisitor<Expression,RuntimeException>
public Expression visit(IncDecExpression e)
ExpressionVisitor
visit
in interface ExpressionVisitor<Expression,RuntimeException>
public Expression visit(DebugExpression e)
ExpressionVisitor
visit
in interface ExpressionVisitor<Expression,RuntimeException>
public Expression visit(BlockExpression e)
ExpressionVisitor
visit
in interface ExpressionVisitor<Expression,RuntimeException>
public Expression visit(BreakExpression e)
ExpressionVisitor
visit
in interface ExpressionVisitor<Expression,RuntimeException>
public Expression visit(ContinueExpression e)
ExpressionVisitor
visit
in interface ExpressionVisitor<Expression,RuntimeException>
public Expression visit(ThisExpression e)
ExpressionVisitor
visit
in interface ExpressionVisitor<Expression,RuntimeException>
public Expression visit(MethodExpression e)
ExpressionVisitor
visit
in interface ExpressionVisitor<Expression,RuntimeException>
public Expression visit(UnknownExpression e)
ExpressionVisitor
visit
in interface ExpressionVisitor<Expression,RuntimeException>
public Expression visit(InstanceofExpression e)
ExpressionVisitor
visit
in interface ExpressionVisitor<Expression,RuntimeException>
public Expression visit(CompoundAssignmentExpression e)
ExpressionVisitor
visit
in interface ExpressionVisitor<Expression,RuntimeException>
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.