Class ASTGrammarReference

java.lang.Object
de.monticore.ast.ASTCNode
de.monticore.grammar.grammar._ast.ASTGrammarReference
All Implemented Interfaces:
de.monticore.ast.ASTNode, ASTGrammarNode, Cloneable

public class ASTGrammarReference extends de.monticore.ast.ASTCNode implements ASTGrammarNode
  • Field Details

  • Constructor Details

    • ASTGrammarReference

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

      public ASTGrammarReference deepClone(ASTGrammarReference result)
    • containsName

      public boolean containsName(Object element)
    • containsAllNames

      public boolean containsAllNames(Collection<?> collection)
    • isEmptyNames

      public boolean isEmptyNames()
    • iteratorNames

      public Iterator<String> iteratorNames()
    • sizeNames

      public int sizeNames()
    • toArrayNames

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

      public Object[] toArrayNames()
    • spliteratorNames

      public Spliterator<String> spliteratorNames()
    • streamNames

      public Stream<String> streamNames()
    • parallelStreamNames

      public Stream<String> parallelStreamNames()
    • getName

      public String getName(int index)
    • indexOfName

      public int indexOfName(Object element)
    • lastIndexOfName

      public int lastIndexOfName(Object element)
    • equalsNames

      public boolean equalsNames(Object o)
    • hashCodeNames

      public int hashCodeNames()
    • listIteratorNames

      public ListIterator<String> listIteratorNames()
    • listIteratorNames

      public ListIterator<String> listIteratorNames(int index)
    • subListNames

      public List<String> subListNames(int start, int end)
    • getNameList

      public List<String> getNameList()
    • clearNames

      public void clearNames()
    • addName

      public boolean addName(String element)
    • addAllNames

      public boolean addAllNames(Collection<? extends String> collection)
    • removeName

      public boolean removeName(Object element)
    • removeAllNames

      public boolean removeAllNames(Collection<?> collection)
    • retainAllNames

      public boolean retainAllNames(Collection<?> collection)
    • removeIfName

      public boolean removeIfName(Predicate<? super String> filter)
    • forEachNames

      public void forEachNames(Consumer<? super String> action)
    • addName

      public void addName(int index, String element)
    • addAllNames

      public boolean addAllNames(int index, Collection<? extends String> collection)
    • removeName

      public String removeName(int index)
    • setName

      public String setName(int index, String element)
    • replaceAllNames

      public void replaceAllNames(UnaryOperator<String> operator)
    • sortNames

      public void sortNames(Comparator<? super String> comparator)
    • setNameList

      public void setNameList(List<String> names)
    • accept

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

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

      public void setEnclosingScope(IGrammarScope enclosingScope)
    • setEnclosingScope

      public void setEnclosingScope(IMCCommonLiteralsScope enclosingScope)
    • setEnclosingScope

      public void setEnclosingScope(IMCSimpleGenericTypesScope enclosingScope)
    • setEnclosingScope

      public void setEnclosingScope(IMCBasicsScope enclosingScope)
    • setEnclosingScope

      public void setEnclosingScope(IMCLiteralsBasisScope enclosingScope)
    • setEnclosingScope

      public void setEnclosingScope(IMCCollectionTypesScope enclosingScope)
    • setEnclosingScope

      public void setEnclosingScope(IMCBasicTypesScope enclosingScope)
    • evaluate

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

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