Class ContainsSelfVisitor

    • Field Detail

      • containsSelf

        private boolean containsSelf
    • Constructor Detail

      • ContainsSelfVisitor

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

      • 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