Class ASTGrammarMethod

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

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

    • mCReturnType

      protected ASTMCReturnType mCReturnType
    • name

      protected String name
    • methodParameters

      protected List<ASTMethodParameter> methodParameters
    • exception

      protected List<ASTMCType> exception
    • body

      protected ASTActionExt body
    • r__public

      protected boolean r__public
    • r__private

      protected boolean r__private
    • r__protected

      protected boolean r__protected
    • r__final

      protected boolean r__final
    • r__static

      protected boolean r__static
    • enclosingScope

      protected IGrammarScope enclosingScope
  • Constructor Details

    • ASTGrammarMethod

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

      public ASTGrammarMethod deepClone(ASTGrammarMethod result)
    • getMCReturnType

      public ASTMCReturnType getMCReturnType()
    • getName

      public String getName()
    • containsMethodParameter

      public boolean containsMethodParameter(Object element)
    • containsAllMethodParameters

      public boolean containsAllMethodParameters(Collection<?> collection)
    • isEmptyMethodParameters

      public boolean isEmptyMethodParameters()
    • iteratorMethodParameters

      public Iterator<ASTMethodParameter> iteratorMethodParameters()
    • sizeMethodParameters

      public int sizeMethodParameters()
    • toArrayMethodParameters

      public ASTMethodParameter[] toArrayMethodParameters(ASTMethodParameter[] array)
    • toArrayMethodParameters

      public Object[] toArrayMethodParameters()
    • spliteratorMethodParameters

      public Spliterator<ASTMethodParameter> spliteratorMethodParameters()
    • streamMethodParameters

      public Stream<ASTMethodParameter> streamMethodParameters()
    • parallelStreamMethodParameters

      public Stream<ASTMethodParameter> parallelStreamMethodParameters()
    • getMethodParameter

      public ASTMethodParameter getMethodParameter(int index)
    • indexOfMethodParameter

      public int indexOfMethodParameter(Object element)
    • lastIndexOfMethodParameter

      public int lastIndexOfMethodParameter(Object element)
    • equalsMethodParameters

      public boolean equalsMethodParameters(Object o)
    • hashCodeMethodParameters

      public int hashCodeMethodParameters()
    • listIteratorMethodParameters

      public ListIterator<ASTMethodParameter> listIteratorMethodParameters()
    • listIteratorMethodParameters

      public ListIterator<ASTMethodParameter> listIteratorMethodParameters(int index)
    • subListMethodParameters

      public List<ASTMethodParameter> subListMethodParameters(int start, int end)
    • getMethodParameterList

      public List<ASTMethodParameter> getMethodParameterList()
    • containsException

      public boolean containsException(Object element)
    • containsAllException

      public boolean containsAllException(Collection<?> collection)
    • isEmptyException

      public boolean isEmptyException()
    • iteratorException

      public Iterator<ASTMCType> iteratorException()
    • sizeException

      public int sizeException()
    • toArrayException

      public ASTMCType[] toArrayException(ASTMCType[] array)
    • toArrayException

      public Object[] toArrayException()
    • spliteratorException

      public Spliterator<ASTMCType> spliteratorException()
    • streamException

      public Stream<ASTMCType> streamException()
    • parallelStreamException

      public Stream<ASTMCType> parallelStreamException()
    • getException

      public ASTMCType getException(int index)
    • indexOfException

      public int indexOfException(Object element)
    • lastIndexOfException

      public int lastIndexOfException(Object element)
    • equalsException

      public boolean equalsException(Object o)
    • hashCodeException

      public int hashCodeException()
    • listIteratorException

      public ListIterator<ASTMCType> listIteratorException()
    • listIteratorException

      public ListIterator<ASTMCType> listIteratorException(int index)
    • subListException

      public List<ASTMCType> subListException(int start, int end)
    • getExceptionList

      public List<ASTMCType> getExceptionList()
    • getBody

      public ASTActionExt getBody()
    • isPublic

      public boolean isPublic()
    • isPrivate

      public boolean isPrivate()
    • isProtected

      public boolean isProtected()
    • isFinal

      public boolean isFinal()
    • isStatic

      public boolean isStatic()
    • setMCReturnType

      public void setMCReturnType(ASTMCReturnType mCReturnType)
    • setName

      public void setName(String name)
    • clearMethodParameters

      public void clearMethodParameters()
    • addMethodParameter

      public boolean addMethodParameter(ASTMethodParameter element)
    • addAllMethodParameters

      public boolean addAllMethodParameters(Collection<? extends ASTMethodParameter> collection)
    • removeMethodParameter

      public boolean removeMethodParameter(Object element)
    • removeAllMethodParameters

      public boolean removeAllMethodParameters(Collection<?> collection)
    • retainAllMethodParameters

      public boolean retainAllMethodParameters(Collection<?> collection)
    • removeIfMethodParameter

      public boolean removeIfMethodParameter(Predicate<? super ASTMethodParameter> filter)
    • forEachMethodParameters

      public void forEachMethodParameters(Consumer<? super ASTMethodParameter> action)
    • addMethodParameter

      public void addMethodParameter(int index, ASTMethodParameter element)
    • addAllMethodParameters

      public boolean addAllMethodParameters(int index, Collection<? extends ASTMethodParameter> collection)
    • removeMethodParameter

      public ASTMethodParameter removeMethodParameter(int index)
    • setMethodParameter

      public ASTMethodParameter setMethodParameter(int index, ASTMethodParameter element)
    • replaceAllMethodParameters

      public void replaceAllMethodParameters(UnaryOperator<ASTMethodParameter> operator)
    • sortMethodParameters

      public void sortMethodParameters(Comparator<? super ASTMethodParameter> comparator)
    • setMethodParameterList

      public void setMethodParameterList(List<ASTMethodParameter> methodParameters)
    • clearException

      public void clearException()
    • addException

      public boolean addException(ASTMCType element)
    • addAllException

      public boolean addAllException(Collection<? extends ASTMCType> collection)
    • removeException

      public boolean removeException(Object element)
    • removeAllException

      public boolean removeAllException(Collection<?> collection)
    • retainAllException

      public boolean retainAllException(Collection<?> collection)
    • removeIfException

      public boolean removeIfException(Predicate<? super ASTMCType> filter)
    • forEachException

      public void forEachException(Consumer<? super ASTMCType> action)
    • addException

      public void addException(int index, ASTMCType element)
    • addAllException

      public boolean addAllException(int index, Collection<? extends ASTMCType> collection)
    • removeException

      public ASTMCType removeException(int index)
    • setException

      public ASTMCType setException(int index, ASTMCType element)
    • replaceAllException

      public void replaceAllException(UnaryOperator<ASTMCType> operator)
    • sortException

      public void sortException(Comparator<? super ASTMCType> comparator)
    • setExceptionList

      public void setExceptionList(List<ASTMCType> exception)
    • setBody

      public void setBody(ASTActionExt body)
    • setPublic

      public void setPublic(boolean r__public)
    • setPrivate

      public void setPrivate(boolean r__private)
    • setProtected

      public void setProtected(boolean r__protected)
    • setFinal

      public void setFinal(boolean r__final)
    • setStatic

      public void setStatic(boolean r__static)
    • 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 ASTGrammarMethod _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