Package net.ssehub.easy.varModel.cst
Class ContainsSelfVisitor
- java.lang.Object
-
- net.ssehub.easy.varModel.cst.AbstractConstraintTreeVisitor
-
- net.ssehub.easy.varModel.cst.ContainsSelfVisitor
-
- All Implemented Interfaces:
IConstraintTreeVisitor
public class ContainsSelfVisitor extends AbstractConstraintTreeVisitor
Searches a constraint for the occurrence ofself.- Author:
- Holger Eichelberger
-
-
Field Summary
Fields Modifier and Type Field Description private booleancontainsSelf
-
Constructor Summary
Constructors Constructor Description ContainsSelfVisitor()Creates the visitor instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clears the visitor for reuse.booleancontainsSelf()Returns after accept whether the accepted constraint tree contains aself.booleancontainsSelfAndClear()Returns after accept whether the accepted constraint tree contains aself.voidvisitSelf(Self self)Visits self.-
Methods inherited from class net.ssehub.easy.varModel.cst.AbstractConstraintTreeVisitor
visitAnnotationVariable, visitBlockExpression, visitComment, visitCompoundAccess, visitCompoundInitializer, visitConstantValue, visitContainerInitializer, visitContainerOperationCall, visitIfThen, visitLet, visitMultiAndExpression, visitOclFeatureCall, visitParenthesis, visitUnresolvedExpression, visitVariable
-
-
-
-
Method Detail
-
containsSelf
public boolean containsSelf()
Returns after accept whether the accepted constraint tree contains aself.- Returns:
truefor at least one self,falseelse
-
clear
public void clear()
Clears the visitor for reuse.
-
containsSelfAndClear
public boolean containsSelfAndClear()
Returns after accept whether the accepted constraint tree contains aself. Clears the visitor.- Returns:
truefor at least one self,falseelse
-
visitSelf
public void visitSelf(Self self)
Description copied from interface:IConstraintTreeVisitorVisits self.- Specified by:
visitSelfin interfaceIConstraintTreeVisitor- Overrides:
visitSelfin classAbstractConstraintTreeVisitor- Parameters:
self- the self object to visit
-
-