Class ASTTargetElement

java.lang.Object
de.monticore.ast.ASTCNode
de.monticore.tagging.tags._ast.ASTTargetElement
All Implemented Interfaces:
de.monticore.ast.ASTNode, ASTTagsNode, Cloneable

public class ASTTargetElement extends de.monticore.ast.ASTCNode implements ASTTagsNode
  • Field Details

  • Constructor Details

    • ASTTargetElement

      protected ASTTargetElement()
  • 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 ASTTargetElement deepClone()
      Specified by:
      deepClone in interface de.monticore.ast.ASTNode
      Specified by:
      deepClone in class de.monticore.ast.ASTCNode
    • deepClone

      public ASTTargetElement deepClone(ASTTargetElement result)
    • containsModelElementIdentifier

      public boolean containsModelElementIdentifier(Object element)
    • containsAllModelElementIdentifiers

      public boolean containsAllModelElementIdentifiers(Collection<?> collection)
    • isEmptyModelElementIdentifiers

      public boolean isEmptyModelElementIdentifiers()
    • iteratorModelElementIdentifiers

      public Iterator<ASTModelElementIdentifier> iteratorModelElementIdentifiers()
    • sizeModelElementIdentifiers

      public int sizeModelElementIdentifiers()
    • toArrayModelElementIdentifiers

      public ASTModelElementIdentifier[] toArrayModelElementIdentifiers(ASTModelElementIdentifier[] array)
    • toArrayModelElementIdentifiers

      public Object[] toArrayModelElementIdentifiers()
    • spliteratorModelElementIdentifiers

      public Spliterator<ASTModelElementIdentifier> spliteratorModelElementIdentifiers()
    • streamModelElementIdentifiers

      public Stream<ASTModelElementIdentifier> streamModelElementIdentifiers()
    • parallelStreamModelElementIdentifiers

      public Stream<ASTModelElementIdentifier> parallelStreamModelElementIdentifiers()
    • getModelElementIdentifier

      public ASTModelElementIdentifier getModelElementIdentifier(int index)
    • indexOfModelElementIdentifier

      public int indexOfModelElementIdentifier(Object element)
    • lastIndexOfModelElementIdentifier

      public int lastIndexOfModelElementIdentifier(Object element)
    • equalsModelElementIdentifiers

      public boolean equalsModelElementIdentifiers(Object o)
    • hashCodeModelElementIdentifiers

      public int hashCodeModelElementIdentifiers()
    • listIteratorModelElementIdentifiers

      public ListIterator<ASTModelElementIdentifier> listIteratorModelElementIdentifiers()
    • listIteratorModelElementIdentifiers

      public ListIterator<ASTModelElementIdentifier> listIteratorModelElementIdentifiers(int index)
    • subListModelElementIdentifiers

      public List<ASTModelElementIdentifier> subListModelElementIdentifiers(int start, int end)
    • getModelElementIdentifierList

      public List<ASTModelElementIdentifier> getModelElementIdentifierList()
    • containsTag

      public boolean containsTag(Object element)
    • containsAllTags

      public boolean containsAllTags(Collection<?> collection)
    • isEmptyTags

      public boolean isEmptyTags()
    • iteratorTags

      public Iterator<ASTTag> iteratorTags()
    • sizeTags

      public int sizeTags()
    • toArrayTags

      public ASTTag[] toArrayTags(ASTTag[] array)
    • toArrayTags

      public Object[] toArrayTags()
    • spliteratorTags

      public Spliterator<ASTTag> spliteratorTags()
    • streamTags

      public Stream<ASTTag> streamTags()
    • parallelStreamTags

      public Stream<ASTTag> parallelStreamTags()
    • getTag

      public ASTTag getTag(int index)
    • indexOfTag

      public int indexOfTag(Object element)
    • lastIndexOfTag

      public int lastIndexOfTag(Object element)
    • equalsTags

      public boolean equalsTags(Object o)
    • hashCodeTags

      public int hashCodeTags()
    • listIteratorTags

      public ListIterator<ASTTag> listIteratorTags()
    • listIteratorTags

      public ListIterator<ASTTag> listIteratorTags(int index)
    • subListTags

      public List<ASTTag> subListTags(int start, int end)
    • getTagList

      public List<ASTTag> getTagList()
    • clearModelElementIdentifiers

      public void clearModelElementIdentifiers()
    • addModelElementIdentifier

      public boolean addModelElementIdentifier(ASTModelElementIdentifier element)
    • addAllModelElementIdentifiers

      public boolean addAllModelElementIdentifiers(Collection<? extends ASTModelElementIdentifier> collection)
    • removeModelElementIdentifier

      public boolean removeModelElementIdentifier(Object element)
    • removeAllModelElementIdentifiers

      public boolean removeAllModelElementIdentifiers(Collection<?> collection)
    • retainAllModelElementIdentifiers

      public boolean retainAllModelElementIdentifiers(Collection<?> collection)
    • removeIfModelElementIdentifier

      public boolean removeIfModelElementIdentifier(Predicate<? super ASTModelElementIdentifier> filter)
    • forEachModelElementIdentifiers

      public void forEachModelElementIdentifiers(Consumer<? super ASTModelElementIdentifier> action)
    • addModelElementIdentifier

      public void addModelElementIdentifier(int index, ASTModelElementIdentifier element)
    • addAllModelElementIdentifiers

      public boolean addAllModelElementIdentifiers(int index, Collection<? extends ASTModelElementIdentifier> collection)
    • removeModelElementIdentifier

      public ASTModelElementIdentifier removeModelElementIdentifier(int index)
    • setModelElementIdentifier

      public ASTModelElementIdentifier setModelElementIdentifier(int index, ASTModelElementIdentifier element)
    • replaceAllModelElementIdentifiers

      public void replaceAllModelElementIdentifiers(UnaryOperator<ASTModelElementIdentifier> operator)
    • sortModelElementIdentifiers

      public void sortModelElementIdentifiers(Comparator<? super ASTModelElementIdentifier> comparator)
    • setModelElementIdentifierList

      public void setModelElementIdentifierList(List<ASTModelElementIdentifier> modelElementIdentifiers)
    • clearTags

      public void clearTags()
    • addTag

      public boolean addTag(ASTTag element)
    • addAllTags

      public boolean addAllTags(Collection<? extends ASTTag> collection)
    • removeTag

      public boolean removeTag(Object element)
    • removeAllTags

      public boolean removeAllTags(Collection<?> collection)
    • retainAllTags

      public boolean retainAllTags(Collection<?> collection)
    • removeIfTag

      public boolean removeIfTag(Predicate<? super ASTTag> filter)
    • forEachTags

      public void forEachTags(Consumer<? super ASTTag> action)
    • addTag

      public void addTag(int index, ASTTag element)
    • addAllTags

      public boolean addAllTags(int index, Collection<? extends ASTTag> collection)
    • removeTag

      public ASTTag removeTag(int index)
    • setTag

      public ASTTag setTag(int index, ASTTag element)
    • replaceAllTags

      public void replaceAllTags(UnaryOperator<ASTTag> operator)
    • sortTags

      public void sortTags(Comparator<? super ASTTag> comparator)
    • setTagList

      public void setTagList(List<ASTTag> tags)
    • accept

      public void accept(TagsTraverser visitor)
      Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.
      Specified by:
      accept in interface ASTTagsNode
      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(MCCommonLiteralsTraverser 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(MCLiteralsBasisTraverser 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 ASTTargetElement _construct()
    • getEnclosingScope

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

      public void setEnclosingScope(ITagsScope enclosingScope)
    • setEnclosingScope

      public void setEnclosingScope(IMCBasicsScope enclosingScope)
    • setEnclosingScope

      public void setEnclosingScope(IMCCommonLiteralsScope enclosingScope)
    • setEnclosingScope

      public void setEnclosingScope(IMCBasicTypesScope enclosingScope)
    • setEnclosingScope

      public void setEnclosingScope(IMCLiteralsBasisScope enclosingScope)
    • evaluate

      public de.monticore.interpreter.Value evaluate(ITagsInterpreter interpreter)
    • evaluate

      public de.monticore.interpreter.Value evaluate(de.monticore.interpreter.ModelInterpreter interpreter)
      Specified by:
      evaluate in interface de.monticore.ast.ASTNode