public class RefByCheckVisitor extends java.lang.Object implements IConstraintTreeVisitor
| Modifier and Type | Field and Description |
|---|---|
private boolean |
canBeDereferenced |
| Constructor and Description |
|---|
RefByCheckVisitor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeDereferenced()
Returns whether the visited expression can be dereferenced.
|
void |
reset()
Resets the value determined by this visitor.
|
void |
visitAnnotationVariable(AttributeVariable variable)
Visits a
AttributeVariable. |
void |
visitBlockExpression(BlockExpression block)
Visits the block.
|
void |
visitComment(Comment comment)
Visits a comment.
|
void |
visitCompoundAccess(CompoundAccess access)
Visits a compound access node.
|
void |
visitCompoundInitializer(CompoundInitializer initializer)
Visits a compound initializer.
|
void |
visitConstantValue(ConstantValue value)
Visits a constant value.
|
void |
visitContainerInitializer(ContainerInitializer initializer)
Visits a container initializer.
|
void |
visitContainerOperationCall(ContainerOperationCall call)
Visits a container operation call (e.g. quantors, iterators).
|
void |
visitIfThen(IfThen ifThen)
Visits an if-then-else expression.
|
void |
visitLet(Let let)
Visits a let expression.
|
void |
visitMultiAndExpression(MultiAndExpression expression)
Visits a multi-and expression.
|
void |
visitOclFeatureCall(OCLFeatureCall call)
Visits an OCL feature call.
|
void |
visitParenthesis(Parenthesis parenthesis)
Visits a parenthesis.
|
void |
visitSelf(Self self)
Visits self.
|
void |
visitUnresolvedExpression(UnresolvedExpression expression)
Visits an unresolved expression.
|
void |
visitVariable(Variable variable)
Visits a variable.
|
public boolean canBeDereferenced()
true if it can be dereferenced, false elsepublic void reset()
public void visitConstantValue(ConstantValue value)
IConstraintTreeVisitorvisitConstantValue in interface IConstraintTreeVisitorvalue - the value which should be visitedpublic void visitVariable(Variable variable)
IConstraintTreeVisitorvisitVariable in interface IConstraintTreeVisitorvariable - the variable which should be visitedpublic void visitAnnotationVariable(AttributeVariable variable)
IConstraintTreeVisitorAttributeVariable.visitAnnotationVariable in interface IConstraintTreeVisitorvariable - the attribute variable which should be visitedpublic void visitParenthesis(Parenthesis parenthesis)
IConstraintTreeVisitorvisitParenthesis in interface IConstraintTreeVisitorparenthesis - the parenthesis which should be visitedpublic void visitComment(Comment comment)
IConstraintTreeVisitorvisitComment in interface IConstraintTreeVisitorcomment - the comment node which should be visitedpublic void visitOclFeatureCall(OCLFeatureCall call)
IConstraintTreeVisitorvisitOclFeatureCall in interface IConstraintTreeVisitorcall - the feature call which should be visitedpublic void visitMultiAndExpression(MultiAndExpression expression)
IConstraintTreeVisitorvisitMultiAndExpression in interface IConstraintTreeVisitorexpression - the expression to be visitedpublic void visitLet(Let let)
IConstraintTreeVisitorvisitLet in interface IConstraintTreeVisitorlet - the let expression which should be visitedpublic void visitIfThen(IfThen ifThen)
IConstraintTreeVisitorvisitIfThen in interface IConstraintTreeVisitorifThen - the if-then-else expression which should be visitedpublic void visitContainerOperationCall(ContainerOperationCall call)
IConstraintTreeVisitorvisitContainerOperationCall in interface IConstraintTreeVisitorcall - the container operation callpublic void visitCompoundAccess(CompoundAccess access)
IConstraintTreeVisitorvisitCompoundAccess in interface IConstraintTreeVisitoraccess - the compound access nodepublic void visitUnresolvedExpression(UnresolvedExpression expression)
IConstraintTreeVisitorUnresolvedExpression.getActualExpression().visitUnresolvedExpression in interface IConstraintTreeVisitorexpression - the expressionpublic void visitCompoundInitializer(CompoundInitializer initializer)
IConstraintTreeVisitorvisitCompoundInitializer in interface IConstraintTreeVisitorinitializer - the compound initializer nodepublic void visitContainerInitializer(ContainerInitializer initializer)
IConstraintTreeVisitorvisitContainerInitializer in interface IConstraintTreeVisitorinitializer - the container initializer nodepublic void visitSelf(Self self)
IConstraintTreeVisitorvisitSelf in interface IConstraintTreeVisitorself - the self object to visitpublic void visitBlockExpression(BlockExpression block)
IConstraintTreeVisitorvisitBlockExpression in interface IConstraintTreeVisitorblock - the block to be visitedCopyright © 2009 - 2018 SSE. All Rights Reserved.