Class ASTReplaceRule

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

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

    • keyword

      protected String keyword
    • replacedKeyWord

      protected List<String> replacedKeyWord
    • enclosingScope

      protected IGrammarScope enclosingScope
  • Constructor Details

    • ASTReplaceRule

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

      public ASTReplaceRule deepClone(ASTReplaceRule result)
    • getKeyword

      public String getKeyword()
    • containsReplacedKeyWord

      public boolean containsReplacedKeyWord(Object element)
    • containsAllReplacedKeyWord

      public boolean containsAllReplacedKeyWord(Collection<?> collection)
    • isEmptyReplacedKeyWord

      public boolean isEmptyReplacedKeyWord()
    • iteratorReplacedKeyWord

      public Iterator<String> iteratorReplacedKeyWord()
    • sizeReplacedKeyWord

      public int sizeReplacedKeyWord()
    • toArrayReplacedKeyWord

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

      public Object[] toArrayReplacedKeyWord()
    • spliteratorReplacedKeyWord

      public Spliterator<String> spliteratorReplacedKeyWord()
    • streamReplacedKeyWord

      public Stream<String> streamReplacedKeyWord()
    • parallelStreamReplacedKeyWord

      public Stream<String> parallelStreamReplacedKeyWord()
    • getReplacedKeyWord

      public String getReplacedKeyWord(int index)
    • indexOfReplacedKeyWord

      public int indexOfReplacedKeyWord(Object element)
    • lastIndexOfReplacedKeyWord

      public int lastIndexOfReplacedKeyWord(Object element)
    • equalsReplacedKeyWord

      public boolean equalsReplacedKeyWord(Object o)
    • hashCodeReplacedKeyWord

      public int hashCodeReplacedKeyWord()
    • listIteratorReplacedKeyWord

      public ListIterator<String> listIteratorReplacedKeyWord()
    • listIteratorReplacedKeyWord

      public ListIterator<String> listIteratorReplacedKeyWord(int index)
    • subListReplacedKeyWord

      public List<String> subListReplacedKeyWord(int start, int end)
    • getReplacedKeyWordList

      public List<String> getReplacedKeyWordList()
    • setKeyword

      public void setKeyword(String keyword)
    • clearReplacedKeyWord

      public void clearReplacedKeyWord()
    • addReplacedKeyWord

      public boolean addReplacedKeyWord(String element)
    • addAllReplacedKeyWord

      public boolean addAllReplacedKeyWord(Collection<? extends String> collection)
    • removeReplacedKeyWord

      public boolean removeReplacedKeyWord(Object element)
    • removeAllReplacedKeyWord

      public boolean removeAllReplacedKeyWord(Collection<?> collection)
    • retainAllReplacedKeyWord

      public boolean retainAllReplacedKeyWord(Collection<?> collection)
    • removeIfReplacedKeyWord

      public boolean removeIfReplacedKeyWord(Predicate<? super String> filter)
    • forEachReplacedKeyWord

      public void forEachReplacedKeyWord(Consumer<? super String> action)
    • addReplacedKeyWord

      public void addReplacedKeyWord(int index, String element)
    • addAllReplacedKeyWord

      public boolean addAllReplacedKeyWord(int index, Collection<? extends String> collection)
    • removeReplacedKeyWord

      public String removeReplacedKeyWord(int index)
    • setReplacedKeyWord

      public String setReplacedKeyWord(int index, String element)
    • replaceAllReplacedKeyWord

      public void replaceAllReplacedKeyWord(UnaryOperator<String> operator)
    • sortReplacedKeyWord

      public void sortReplacedKeyWord(Comparator<? super String> comparator)
    • setReplacedKeyWordList

      public void setReplacedKeyWordList(List<String> replacedKeyWord)
    • 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 ASTReplaceRule _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