Class ASTContext

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

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

  • Constructor Details

    • ASTContext

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

      public ASTContext deepClone(ASTContext result)
    • getModelElementIdentifier

      public ASTModelElementIdentifier getModelElementIdentifier()
    • containsContexts

      public boolean containsContexts(Object element)
    • containsAllContexts

      public boolean containsAllContexts(Collection<?> collection)
    • isEmptyContexts

      public boolean isEmptyContexts()
    • iteratorContexts

      public Iterator<ASTContext> iteratorContexts()
    • sizeContexts

      public int sizeContexts()
    • toArrayContexts

      public ASTContext[] toArrayContexts(ASTContext[] array)
    • toArrayContexts

      public Object[] toArrayContexts()
    • spliteratorContexts

      public Spliterator<ASTContext> spliteratorContexts()
    • streamContexts

      public Stream<ASTContext> streamContexts()
    • parallelStreamContexts

      public Stream<ASTContext> parallelStreamContexts()
    • getContexts

      public ASTContext getContexts(int index)
    • indexOfContexts

      public int indexOfContexts(Object element)
    • lastIndexOfContexts

      public int lastIndexOfContexts(Object element)
    • equalsContexts

      public boolean equalsContexts(Object o)
    • hashCodeContexts

      public int hashCodeContexts()
    • listIteratorContexts

      public ListIterator<ASTContext> listIteratorContexts()
    • listIteratorContexts

      public ListIterator<ASTContext> listIteratorContexts(int index)
    • subListContexts

      public List<ASTContext> subListContexts(int start, int end)
    • getContextsList

      public List<ASTContext> getContextsList()
    • containsTags

      public boolean containsTags(Object element)
    • containsAllTags

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

      public boolean isEmptyTags()
    • iteratorTags

      public Iterator<ASTTargetElement> iteratorTags()
    • sizeTags

      public int sizeTags()
    • toArrayTags

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

      public Object[] toArrayTags()
    • spliteratorTags

      public Spliterator<ASTTargetElement> spliteratorTags()
    • streamTags

      public Stream<ASTTargetElement> streamTags()
    • parallelStreamTags

      public Stream<ASTTargetElement> parallelStreamTags()
    • getTags

      public ASTTargetElement getTags(int index)
    • indexOfTags

      public int indexOfTags(Object element)
    • lastIndexOfTags

      public int lastIndexOfTags(Object element)
    • equalsTags

      public boolean equalsTags(Object o)
    • hashCodeTags

      public int hashCodeTags()
    • listIteratorTags

      public ListIterator<ASTTargetElement> listIteratorTags()
    • listIteratorTags

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

      public List<ASTTargetElement> subListTags(int start, int end)
    • getTagsList

      public List<ASTTargetElement> getTagsList()
    • setModelElementIdentifier

      public void setModelElementIdentifier(ASTModelElementIdentifier modelElementIdentifier)
    • clearContexts

      public void clearContexts()
    • addContexts

      public boolean addContexts(ASTContext element)
    • addAllContexts

      public boolean addAllContexts(Collection<? extends ASTContext> collection)
    • removeContexts

      public boolean removeContexts(Object element)
    • removeAllContexts

      public boolean removeAllContexts(Collection<?> collection)
    • retainAllContexts

      public boolean retainAllContexts(Collection<?> collection)
    • removeIfContexts

      public boolean removeIfContexts(Predicate<? super ASTContext> filter)
    • forEachContexts

      public void forEachContexts(Consumer<? super ASTContext> action)
    • addContexts

      public void addContexts(int index, ASTContext element)
    • addAllContexts

      public boolean addAllContexts(int index, Collection<? extends ASTContext> collection)
    • removeContexts

      public ASTContext removeContexts(int index)
    • setContexts

      public ASTContext setContexts(int index, ASTContext element)
    • replaceAllContexts

      public void replaceAllContexts(UnaryOperator<ASTContext> operator)
    • sortContexts

      public void sortContexts(Comparator<? super ASTContext> comparator)
    • setContextsList

      public void setContextsList(List<ASTContext> contexts)
    • clearTags

      public void clearTags()
    • addTags

      public boolean addTags(ASTTargetElement element)
    • addAllTags

      public boolean addAllTags(Collection<? extends ASTTargetElement> collection)
    • removeTags

      public boolean removeTags(Object element)
    • removeAllTags

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

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

      public boolean removeIfTags(Predicate<? super ASTTargetElement> filter)
    • forEachTags

      public void forEachTags(Consumer<? super ASTTargetElement> action)
    • addTags

      public void addTags(int index, ASTTargetElement element)
    • addAllTags

      public boolean addAllTags(int index, Collection<? extends ASTTargetElement> collection)
    • removeTags

      public ASTTargetElement removeTags(int index)
    • setTags

      public ASTTargetElement setTags(int index, ASTTargetElement element)
    • replaceAllTags

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

      public void sortTags(Comparator<? super ASTTargetElement> comparator)
    • setTagsList

      public void setTagsList(List<ASTTargetElement> 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 ASTContext _construct()
    • getSpannedScope

      public ITagsScope getSpannedScope()
    • setSpannedScope

      public void setSpannedScope(ITagsScope spannedScope)
    • 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