Class ASTComplexTag

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

public class ASTComplexTag extends de.monticore.ast.ASTCNode implements ASTTag, ASTTagsNode
  • Field Details

  • Constructor Details

    • ASTComplexTag

      protected ASTComplexTag()
  • Method Details

    • deepEquals

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

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

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

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

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

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

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

      public ASTComplexTag deepClone(ASTComplexTag result)
    • getName

      public String getName()
    • 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()
    • setName

      public void setName(String name)
    • 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 ASTComplexTag _construct()
    • getEnclosingScope

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

      public void setEnclosingScope(ITagsScope enclosingScope)
      Specified by:
      setEnclosingScope in interface ASTTag
    • setEnclosingScope

      public void setEnclosingScope(IMCBasicsScope enclosingScope)
      Specified by:
      setEnclosingScope in interface ASTTag
    • setEnclosingScope

      public void setEnclosingScope(IMCCommonLiteralsScope enclosingScope)
      Specified by:
      setEnclosingScope in interface ASTTag
    • setEnclosingScope

      public void setEnclosingScope(IMCBasicTypesScope enclosingScope)
      Specified by:
      setEnclosingScope in interface ASTTag
    • setEnclosingScope

      public void setEnclosingScope(IMCLiteralsBasisScope enclosingScope)
      Specified by:
      setEnclosingScope in interface ASTTag
    • 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