Class ASTPattern

java.lang.Object
de.monticore.ast.ASTCNode
de.monticore.tf.odrulegeneration._ast.ASTPattern
All Implemented Interfaces:
de.monticore.ast.ASTNode, ASTODRuleGenerationNode, Cloneable

public class ASTPattern extends de.monticore.ast.ASTCNode implements ASTODRuleGenerationNode
  • Field Details

  • Constructor Details

    • ASTPattern

      protected ASTPattern()
  • Method Details

    • deepEquals

      public boolean deepEquals(Object o)
      Specified by:
      deepEquals in interface de.monticore.ast.ASTNode
    • deepEquals

      public boolean deepEquals(Object o, boolean forceSameOrder)
      Specified by:
      deepEquals in interface de.monticore.ast.ASTNode
    • deepEqualsWithComments

      public boolean deepEqualsWithComments(Object o)
      Specified by:
      deepEqualsWithComments in interface de.monticore.ast.ASTNode
    • deepEqualsWithComments

      public boolean deepEqualsWithComments(Object o, boolean forceSameOrder)
      Specified by:
      deepEqualsWithComments in interface de.monticore.ast.ASTNode
    • equalAttributes

      public boolean equalAttributes(Object o)
      Specified by:
      equalAttributes in interface de.monticore.ast.ASTNode
    • equalsWithComments

      public boolean equalsWithComments(Object o)
      Specified by:
      equalsWithComments in interface de.monticore.ast.ASTNode
    • deepClone

      public ASTPattern deepClone()
      Specified by:
      deepClone in interface de.monticore.ast.ASTNode
      Specified by:
      deepClone in class de.monticore.ast.ASTCNode
    • deepClone

      public ASTPattern deepClone(ASTPattern result)
    • containsMatchingObjects

      public boolean containsMatchingObjects(Object element)
    • containsAllMatchingObjects

      public boolean containsAllMatchingObjects(Collection<?> collection)
    • isEmptyMatchingObjects

      public boolean isEmptyMatchingObjects()
    • iteratorMatchingObjects

      public Iterator<ASTMatchingObject> iteratorMatchingObjects()
    • sizeMatchingObjects

      public int sizeMatchingObjects()
    • toArrayMatchingObjects

      public ASTMatchingObject[] toArrayMatchingObjects(ASTMatchingObject[] array)
    • toArrayMatchingObjects

      public Object[] toArrayMatchingObjects()
    • spliteratorMatchingObjects

      public Spliterator<ASTMatchingObject> spliteratorMatchingObjects()
    • streamMatchingObjects

      public Stream<ASTMatchingObject> streamMatchingObjects()
    • parallelStreamMatchingObjects

      public Stream<ASTMatchingObject> parallelStreamMatchingObjects()
    • getMatchingObjects

      public ASTMatchingObject getMatchingObjects(int index)
    • indexOfMatchingObjects

      public int indexOfMatchingObjects(Object element)
    • lastIndexOfMatchingObjects

      public int lastIndexOfMatchingObjects(Object element)
    • equalsMatchingObjects

      public boolean equalsMatchingObjects(Object o)
    • hashCodeMatchingObjects

      public int hashCodeMatchingObjects()
    • listIteratorMatchingObjects

      public ListIterator<ASTMatchingObject> listIteratorMatchingObjects()
    • listIteratorMatchingObjects

      public ListIterator<ASTMatchingObject> listIteratorMatchingObjects(int index)
    • subListMatchingObjects

      public List<ASTMatchingObject> subListMatchingObjects(int start, int end)
    • getMatchingObjectsList

      public List<ASTMatchingObject> getMatchingObjectsList()
    • containsLHSObjects

      public boolean containsLHSObjects(Object element)
    • containsAllLHSObjects

      public boolean containsAllLHSObjects(Collection<?> collection)
    • isEmptyLHSObjects

      public boolean isEmptyLHSObjects()
    • iteratorLHSObjects

      public Iterator<ASTMatchingObject> iteratorLHSObjects()
    • sizeLHSObjects

      public int sizeLHSObjects()
    • toArrayLHSObjects

      public ASTMatchingObject[] toArrayLHSObjects(ASTMatchingObject[] array)
    • toArrayLHSObjects

      public Object[] toArrayLHSObjects()
    • spliteratorLHSObjects

      public Spliterator<ASTMatchingObject> spliteratorLHSObjects()
    • streamLHSObjects

      public Stream<ASTMatchingObject> streamLHSObjects()
    • parallelStreamLHSObjects

      public Stream<ASTMatchingObject> parallelStreamLHSObjects()
    • getLHSObjects

      public ASTMatchingObject getLHSObjects(int index)
    • indexOfLHSObjects

      public int indexOfLHSObjects(Object element)
    • lastIndexOfLHSObjects

      public int lastIndexOfLHSObjects(Object element)
    • equalsLHSObjects

      public boolean equalsLHSObjects(Object o)
    • hashCodeLHSObjects

      public int hashCodeLHSObjects()
    • listIteratorLHSObjects

      public ListIterator<ASTMatchingObject> listIteratorLHSObjects()
    • listIteratorLHSObjects

      public ListIterator<ASTMatchingObject> listIteratorLHSObjects(int index)
    • subListLHSObjects

      public List<ASTMatchingObject> subListLHSObjects(int start, int end)
    • getLHSObjectsList

      public List<ASTMatchingObject> getLHSObjectsList()
    • containsAssoc

      public boolean containsAssoc(Object element)
    • containsAllAssoc

      public boolean containsAllAssoc(Collection<?> collection)
    • isEmptyAssoc

      public boolean isEmptyAssoc()
    • iteratorAssoc

      public Iterator<ASTAssociation> iteratorAssoc()
    • sizeAssoc

      public int sizeAssoc()
    • toArrayAssoc

      public ASTAssociation[] toArrayAssoc(ASTAssociation[] array)
    • toArrayAssoc

      public Object[] toArrayAssoc()
    • spliteratorAssoc

      public Spliterator<ASTAssociation> spliteratorAssoc()
    • streamAssoc

      public Stream<ASTAssociation> streamAssoc()
    • parallelStreamAssoc

      public Stream<ASTAssociation> parallelStreamAssoc()
    • getAssoc

      public ASTAssociation getAssoc(int index)
    • indexOfAssoc

      public int indexOfAssoc(Object element)
    • lastIndexOfAssoc

      public int lastIndexOfAssoc(Object element)
    • equalsAssoc

      public boolean equalsAssoc(Object o)
    • hashCodeAssoc

      public int hashCodeAssoc()
    • listIteratorAssoc

      public ListIterator<ASTAssociation> listIteratorAssoc()
    • listIteratorAssoc

      public ListIterator<ASTAssociation> listIteratorAssoc(int index)
    • subListAssoc

      public List<ASTAssociation> subListAssoc(int start, int end)
    • getAssocList

      public List<ASTAssociation> getAssocList()
    • containsObjectConditions

      public boolean containsObjectConditions(Object element)
    • containsAllObjectConditions

      public boolean containsAllObjectConditions(Collection<?> collection)
    • isEmptyObjectConditions

      public boolean isEmptyObjectConditions()
    • iteratorObjectConditions

      public Iterator<ASTObjectCondition> iteratorObjectConditions()
    • sizeObjectConditions

      public int sizeObjectConditions()
    • toArrayObjectConditions

      public ASTObjectCondition[] toArrayObjectConditions(ASTObjectCondition[] array)
    • toArrayObjectConditions

      public Object[] toArrayObjectConditions()
    • spliteratorObjectConditions

      public Spliterator<ASTObjectCondition> spliteratorObjectConditions()
    • streamObjectConditions

      public Stream<ASTObjectCondition> streamObjectConditions()
    • parallelStreamObjectConditions

      public Stream<ASTObjectCondition> parallelStreamObjectConditions()
    • getObjectConditions

      public ASTObjectCondition getObjectConditions(int index)
    • indexOfObjectConditions

      public int indexOfObjectConditions(Object element)
    • lastIndexOfObjectConditions

      public int lastIndexOfObjectConditions(Object element)
    • equalsObjectConditions

      public boolean equalsObjectConditions(Object o)
    • hashCodeObjectConditions

      public int hashCodeObjectConditions()
    • listIteratorObjectConditions

      public ListIterator<ASTObjectCondition> listIteratorObjectConditions()
    • listIteratorObjectConditions

      public ListIterator<ASTObjectCondition> listIteratorObjectConditions(int index)
    • subListObjectConditions

      public List<ASTObjectCondition> subListObjectConditions(int start, int end)
    • getObjectConditionsList

      public List<ASTObjectCondition> getObjectConditionsList()
    • containsLinkConditions

      public boolean containsLinkConditions(Object element)
    • containsAllLinkConditions

      public boolean containsAllLinkConditions(Collection<?> collection)
    • isEmptyLinkConditions

      public boolean isEmptyLinkConditions()
    • iteratorLinkConditions

      public Iterator<ASTLinkCondition> iteratorLinkConditions()
    • sizeLinkConditions

      public int sizeLinkConditions()
    • toArrayLinkConditions

      public ASTLinkCondition[] toArrayLinkConditions(ASTLinkCondition[] array)
    • toArrayLinkConditions

      public Object[] toArrayLinkConditions()
    • spliteratorLinkConditions

      public Spliterator<ASTLinkCondition> spliteratorLinkConditions()
    • streamLinkConditions

      public Stream<ASTLinkCondition> streamLinkConditions()
    • parallelStreamLinkConditions

      public Stream<ASTLinkCondition> parallelStreamLinkConditions()
    • getLinkConditions

      public ASTLinkCondition getLinkConditions(int index)
    • indexOfLinkConditions

      public int indexOfLinkConditions(Object element)
    • lastIndexOfLinkConditions

      public int lastIndexOfLinkConditions(Object element)
    • equalsLinkConditions

      public boolean equalsLinkConditions(Object o)
    • hashCodeLinkConditions

      public int hashCodeLinkConditions()
    • listIteratorLinkConditions

      public ListIterator<ASTLinkCondition> listIteratorLinkConditions()
    • listIteratorLinkConditions

      public ListIterator<ASTLinkCondition> listIteratorLinkConditions(int index)
    • subListLinkConditions

      public List<ASTLinkCondition> subListLinkConditions(int start, int end)
    • getLinkConditionsList

      public List<ASTLinkCondition> getLinkConditionsList()
    • containsTypes

      public boolean containsTypes(Object element)
    • containsAllTypes

      public boolean containsAllTypes(Collection<?> collection)
    • isEmptyTypes

      public boolean isEmptyTypes()
    • iteratorTypes

      public Iterator<String> iteratorTypes()
    • sizeTypes

      public int sizeTypes()
    • toArrayTypes

      public String[] toArrayTypes(String[] array)
    • toArrayTypes

      public Object[] toArrayTypes()
    • spliteratorTypes

      public Spliterator<String> spliteratorTypes()
    • streamTypes

      public Stream<String> streamTypes()
    • parallelStreamTypes

      public Stream<String> parallelStreamTypes()
    • getTypes

      public String getTypes(int index)
    • indexOfTypes

      public int indexOfTypes(Object element)
    • lastIndexOfTypes

      public int lastIndexOfTypes(Object element)
    • equalsTypes

      public boolean equalsTypes(Object o)
    • hashCodeTypes

      public int hashCodeTypes()
    • listIteratorTypes

      public ListIterator<String> listIteratorTypes()
    • listIteratorTypes

      public ListIterator<String> listIteratorTypes(int index)
    • subListTypes

      public List<String> subListTypes(int start, int end)
    • getTypesList

      public List<String> getTypesList()
    • clearMatchingObjects

      public void clearMatchingObjects()
    • addMatchingObjects

      public boolean addMatchingObjects(ASTMatchingObject element)
    • addAllMatchingObjects

      public boolean addAllMatchingObjects(Collection<? extends ASTMatchingObject> collection)
    • removeMatchingObjects

      public boolean removeMatchingObjects(Object element)
    • removeAllMatchingObjects

      public boolean removeAllMatchingObjects(Collection<?> collection)
    • retainAllMatchingObjects

      public boolean retainAllMatchingObjects(Collection<?> collection)
    • removeIfMatchingObjects

      public boolean removeIfMatchingObjects(Predicate<? super ASTMatchingObject> filter)
    • forEachMatchingObjects

      public void forEachMatchingObjects(Consumer<? super ASTMatchingObject> action)
    • addMatchingObjects

      public void addMatchingObjects(int index, ASTMatchingObject element)
    • addAllMatchingObjects

      public boolean addAllMatchingObjects(int index, Collection<? extends ASTMatchingObject> collection)
    • removeMatchingObjects

      public ASTMatchingObject removeMatchingObjects(int index)
    • setMatchingObjects

      public ASTMatchingObject setMatchingObjects(int index, ASTMatchingObject element)
    • replaceAllMatchingObjects

      public void replaceAllMatchingObjects(UnaryOperator<ASTMatchingObject> operator)
    • sortMatchingObjects

      public void sortMatchingObjects(Comparator<? super ASTMatchingObject> comparator)
    • setMatchingObjectsList

      public void setMatchingObjectsList(List<ASTMatchingObject> matchingObjects)
    • clearLHSObjects

      public void clearLHSObjects()
    • addLHSObjects

      public boolean addLHSObjects(ASTMatchingObject element)
    • addAllLHSObjects

      public boolean addAllLHSObjects(Collection<? extends ASTMatchingObject> collection)
    • removeLHSObjects

      public boolean removeLHSObjects(Object element)
    • removeAllLHSObjects

      public boolean removeAllLHSObjects(Collection<?> collection)
    • retainAllLHSObjects

      public boolean retainAllLHSObjects(Collection<?> collection)
    • removeIfLHSObjects

      public boolean removeIfLHSObjects(Predicate<? super ASTMatchingObject> filter)
    • forEachLHSObjects

      public void forEachLHSObjects(Consumer<? super ASTMatchingObject> action)
    • addLHSObjects

      public void addLHSObjects(int index, ASTMatchingObject element)
    • addAllLHSObjects

      public boolean addAllLHSObjects(int index, Collection<? extends ASTMatchingObject> collection)
    • removeLHSObjects

      public ASTMatchingObject removeLHSObjects(int index)
    • setLHSObjects

      public ASTMatchingObject setLHSObjects(int index, ASTMatchingObject element)
    • replaceAllLHSObjects

      public void replaceAllLHSObjects(UnaryOperator<ASTMatchingObject> operator)
    • sortLHSObjects

      public void sortLHSObjects(Comparator<? super ASTMatchingObject> comparator)
    • setLHSObjectsList

      public void setLHSObjectsList(List<ASTMatchingObject> lHSObjects)
    • clearAssoc

      public void clearAssoc()
    • addAssoc

      public boolean addAssoc(ASTAssociation element)
    • addAllAssoc

      public boolean addAllAssoc(Collection<? extends ASTAssociation> collection)
    • removeAssoc

      public boolean removeAssoc(Object element)
    • removeAllAssoc

      public boolean removeAllAssoc(Collection<?> collection)
    • retainAllAssoc

      public boolean retainAllAssoc(Collection<?> collection)
    • removeIfAssoc

      public boolean removeIfAssoc(Predicate<? super ASTAssociation> filter)
    • forEachAssoc

      public void forEachAssoc(Consumer<? super ASTAssociation> action)
    • addAssoc

      public void addAssoc(int index, ASTAssociation element)
    • addAllAssoc

      public boolean addAllAssoc(int index, Collection<? extends ASTAssociation> collection)
    • removeAssoc

      public ASTAssociation removeAssoc(int index)
    • setAssoc

      public ASTAssociation setAssoc(int index, ASTAssociation element)
    • replaceAllAssoc

      public void replaceAllAssoc(UnaryOperator<ASTAssociation> operator)
    • sortAssoc

      public void sortAssoc(Comparator<? super ASTAssociation> comparator)
    • setAssocList

      public void setAssocList(List<ASTAssociation> assoc)
    • clearObjectConditions

      public void clearObjectConditions()
    • addObjectConditions

      public boolean addObjectConditions(ASTObjectCondition element)
    • addAllObjectConditions

      public boolean addAllObjectConditions(Collection<? extends ASTObjectCondition> collection)
    • removeObjectConditions

      public boolean removeObjectConditions(Object element)
    • removeAllObjectConditions

      public boolean removeAllObjectConditions(Collection<?> collection)
    • retainAllObjectConditions

      public boolean retainAllObjectConditions(Collection<?> collection)
    • removeIfObjectConditions

      public boolean removeIfObjectConditions(Predicate<? super ASTObjectCondition> filter)
    • forEachObjectConditions

      public void forEachObjectConditions(Consumer<? super ASTObjectCondition> action)
    • addObjectConditions

      public void addObjectConditions(int index, ASTObjectCondition element)
    • addAllObjectConditions

      public boolean addAllObjectConditions(int index, Collection<? extends ASTObjectCondition> collection)
    • removeObjectConditions

      public ASTObjectCondition removeObjectConditions(int index)
    • setObjectConditions

      public ASTObjectCondition setObjectConditions(int index, ASTObjectCondition element)
    • replaceAllObjectConditions

      public void replaceAllObjectConditions(UnaryOperator<ASTObjectCondition> operator)
    • sortObjectConditions

      public void sortObjectConditions(Comparator<? super ASTObjectCondition> comparator)
    • setObjectConditionsList

      public void setObjectConditionsList(List<ASTObjectCondition> objectConditions)
    • clearLinkConditions

      public void clearLinkConditions()
    • addLinkConditions

      public boolean addLinkConditions(ASTLinkCondition element)
    • addAllLinkConditions

      public boolean addAllLinkConditions(Collection<? extends ASTLinkCondition> collection)
    • removeLinkConditions

      public boolean removeLinkConditions(Object element)
    • removeAllLinkConditions

      public boolean removeAllLinkConditions(Collection<?> collection)
    • retainAllLinkConditions

      public boolean retainAllLinkConditions(Collection<?> collection)
    • removeIfLinkConditions

      public boolean removeIfLinkConditions(Predicate<? super ASTLinkCondition> filter)
    • forEachLinkConditions

      public void forEachLinkConditions(Consumer<? super ASTLinkCondition> action)
    • addLinkConditions

      public void addLinkConditions(int index, ASTLinkCondition element)
    • addAllLinkConditions

      public boolean addAllLinkConditions(int index, Collection<? extends ASTLinkCondition> collection)
    • removeLinkConditions

      public ASTLinkCondition removeLinkConditions(int index)
    • setLinkConditions

      public ASTLinkCondition setLinkConditions(int index, ASTLinkCondition element)
    • replaceAllLinkConditions

      public void replaceAllLinkConditions(UnaryOperator<ASTLinkCondition> operator)
    • sortLinkConditions

      public void sortLinkConditions(Comparator<? super ASTLinkCondition> comparator)
    • setLinkConditionsList

      public void setLinkConditionsList(List<ASTLinkCondition> linkConditions)
    • clearTypes

      public void clearTypes()
    • addTypes

      public boolean addTypes(String element)
    • addAllTypes

      public boolean addAllTypes(Collection<? extends String> collection)
    • removeTypes

      public boolean removeTypes(Object element)
    • removeAllTypes

      public boolean removeAllTypes(Collection<?> collection)
    • retainAllTypes

      public boolean retainAllTypes(Collection<?> collection)
    • removeIfTypes

      public boolean removeIfTypes(Predicate<? super String> filter)
    • forEachTypes

      public void forEachTypes(Consumer<? super String> action)
    • addTypes

      public void addTypes(int index, String element)
    • addAllTypes

      public boolean addAllTypes(int index, Collection<? extends String> collection)
    • removeTypes

      public String removeTypes(int index)
    • setTypes

      public String setTypes(int index, String element)
    • replaceAllTypes

      public void replaceAllTypes(UnaryOperator<String> operator)
    • sortTypes

      public void sortTypes(Comparator<? super String> comparator)
    • setTypesList

      public void setTypesList(List<String> types)
    • accept

      public void accept(ODRuleGenerationTraverser visitor)
      Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.
      Specified by:
      accept in interface ASTODRuleGenerationNode
      Parameters:
      visitor - the visitor to dispatch to
    • accept

      public void accept(MCFullGenericTypesTraverser visitor)
      Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.
      Parameters:
      visitor - the visitor to dispatch to
    • accept

      public void accept(MCSimpleGenericTypesTraverser visitor)
      Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.
      Parameters:
      visitor - the visitor to dispatch to
    • accept

      public void accept(MCCollectionTypesTraverser visitor)
      Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.
      Parameters:
      visitor - the visitor to dispatch to
    • accept

      public void accept(MCBasicTypesTraverser visitor)
      Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.
      Parameters:
      visitor - the visitor to dispatch to
    • accept

      public void accept(MCBasicsTraverser visitor)
      Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.
      Parameters:
      visitor - the visitor to dispatch to
    • accept

      public void accept(de.monticore.visitor.ITraverser visitor)
      Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.
      Specified by:
      accept in interface de.monticore.ast.ASTNode
      Parameters:
      visitor - the visitor to dispatch to
    • _construct

      protected ASTPattern _construct()
    • getEnclosingScope

      public IODRuleGenerationScope getEnclosingScope()
      Specified by:
      getEnclosingScope in interface de.monticore.ast.ASTNode
    • setEnclosingScope

      public void setEnclosingScope(IODRuleGenerationScope enclosingScope)
    • setEnclosingScope

      public void setEnclosingScope(IMCFullGenericTypesScope enclosingScope)
    • setEnclosingScope

      public void setEnclosingScope(IMCSimpleGenericTypesScope enclosingScope)
    • setEnclosingScope

      public void setEnclosingScope(IMCCollectionTypesScope enclosingScope)
    • setEnclosingScope

      public void setEnclosingScope(IMCBasicTypesScope enclosingScope)
    • setEnclosingScope

      public void setEnclosingScope(IMCBasicsScope enclosingScope)