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 of self.
Author:
Holger Eichelberger
  • Field Details

    • containsSelf

      private boolean containsSelf
  • Constructor Details

    • ContainsSelfVisitor

      public ContainsSelfVisitor()
      Creates the visitor instance.
  • Method Details

    • containsSelf

      public boolean containsSelf()
      Returns after accept whether the accepted constraint tree contains a self.
      Returns:
      true for at least one self, false else
    • clear

      public void clear()
      Clears the visitor for reuse.
    • containsSelfAndClear

      public boolean containsSelfAndClear()
      Returns after accept whether the accepted constraint tree contains a self. Clears the visitor.
      Returns:
      true for at least one self, false else
    • visitSelf

      public void visitSelf(Self self)
      Description copied from interface: IConstraintTreeVisitor
      Visits self.
      Specified by:
      visitSelf in interface IConstraintTreeVisitor
      Overrides:
      visitSelf in class AbstractConstraintTreeVisitor
      Parameters:
      self - the self object to visit