java.lang.Object
de.monticore.ast.ASTCNode
de.monticore.grammar.grammar_withconcepts._ast.ASTJavaCode
All Implemented Interfaces:
de.monticore.ast.ASTNode, ASTAntlrNode, ASTJavaCodeExt, ASTGrammar_WithConceptsNode, Cloneable

public class ASTJavaCode extends de.monticore.ast.ASTCNode implements ASTJavaCodeExt, ASTGrammar_WithConceptsNode
  • Field Details

  • Constructor Details

    • ASTJavaCode

      protected ASTJavaCode()
  • Method Details

    • deepEquals

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

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

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

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

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

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

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

      public ASTJavaCode deepClone(ASTJavaCode result)
    • containsClassBodyDeclaration

      public boolean containsClassBodyDeclaration(Object element)
    • containsAllClassBodyDeclarations

      public boolean containsAllClassBodyDeclarations(Collection<?> collection)
    • isEmptyClassBodyDeclarations

      public boolean isEmptyClassBodyDeclarations()
    • iteratorClassBodyDeclarations

      public Iterator<ASTClassBodyDeclaration> iteratorClassBodyDeclarations()
    • sizeClassBodyDeclarations

      public int sizeClassBodyDeclarations()
    • toArrayClassBodyDeclarations

      public ASTClassBodyDeclaration[] toArrayClassBodyDeclarations(ASTClassBodyDeclaration[] array)
    • toArrayClassBodyDeclarations

      public Object[] toArrayClassBodyDeclarations()
    • spliteratorClassBodyDeclarations

      public Spliterator<ASTClassBodyDeclaration> spliteratorClassBodyDeclarations()
    • streamClassBodyDeclarations

      public Stream<ASTClassBodyDeclaration> streamClassBodyDeclarations()
    • parallelStreamClassBodyDeclarations

      public Stream<ASTClassBodyDeclaration> parallelStreamClassBodyDeclarations()
    • getClassBodyDeclaration

      public ASTClassBodyDeclaration getClassBodyDeclaration(int index)
    • indexOfClassBodyDeclaration

      public int indexOfClassBodyDeclaration(Object element)
    • lastIndexOfClassBodyDeclaration

      public int lastIndexOfClassBodyDeclaration(Object element)
    • equalsClassBodyDeclarations

      public boolean equalsClassBodyDeclarations(Object o)
    • hashCodeClassBodyDeclarations

      public int hashCodeClassBodyDeclarations()
    • listIteratorClassBodyDeclarations

      public ListIterator<ASTClassBodyDeclaration> listIteratorClassBodyDeclarations()
    • listIteratorClassBodyDeclarations

      public ListIterator<ASTClassBodyDeclaration> listIteratorClassBodyDeclarations(int index)
    • subListClassBodyDeclarations

      public List<ASTClassBodyDeclaration> subListClassBodyDeclarations(int start, int end)
    • getClassBodyDeclarationList

      public List<ASTClassBodyDeclaration> getClassBodyDeclarationList()
    • clearClassBodyDeclarations

      public void clearClassBodyDeclarations()
    • addClassBodyDeclaration

      public boolean addClassBodyDeclaration(ASTClassBodyDeclaration element)
    • addAllClassBodyDeclarations

      public boolean addAllClassBodyDeclarations(Collection<? extends ASTClassBodyDeclaration> collection)
    • removeClassBodyDeclaration

      public boolean removeClassBodyDeclaration(Object element)
    • removeAllClassBodyDeclarations

      public boolean removeAllClassBodyDeclarations(Collection<?> collection)
    • retainAllClassBodyDeclarations

      public boolean retainAllClassBodyDeclarations(Collection<?> collection)
    • removeIfClassBodyDeclaration

      public boolean removeIfClassBodyDeclaration(Predicate<? super ASTClassBodyDeclaration> filter)
    • forEachClassBodyDeclarations

      public void forEachClassBodyDeclarations(Consumer<? super ASTClassBodyDeclaration> action)
    • addClassBodyDeclaration

      public void addClassBodyDeclaration(int index, ASTClassBodyDeclaration element)
    • addAllClassBodyDeclarations

      public boolean addAllClassBodyDeclarations(int index, Collection<? extends ASTClassBodyDeclaration> collection)
    • removeClassBodyDeclaration

      public ASTClassBodyDeclaration removeClassBodyDeclaration(int index)
    • setClassBodyDeclaration

      public ASTClassBodyDeclaration setClassBodyDeclaration(int index, ASTClassBodyDeclaration element)
    • replaceAllClassBodyDeclarations

      public void replaceAllClassBodyDeclarations(UnaryOperator<ASTClassBodyDeclaration> operator)
    • sortClassBodyDeclarations

      public void sortClassBodyDeclarations(Comparator<? super ASTClassBodyDeclaration> comparator)
    • setClassBodyDeclarationList

      public void setClassBodyDeclarationList(List<ASTClassBodyDeclaration> classBodyDeclarations)
    • accept

      public void accept(Grammar_WithConceptsTraverser visitor)
      Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.
      Specified by:
      accept in interface ASTGrammar_WithConceptsNode
      Parameters:
      visitor - the visitor to dispatch to
    • accept

      public void accept(GrammarTraverser visitor)
      Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.
      Parameters:
      visitor - the visitor to dispatch to
    • accept

      public void accept(MCCommonStatementsTraverser visitor)
      Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.
      Parameters:
      visitor - the visitor to dispatch to
    • accept

      public void accept(MCReturnStatementsTraverser visitor)
      Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.
      Parameters:
      visitor - the visitor to dispatch to
    • accept

      public void accept(MCExceptionStatementsTraverser visitor)
      Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.
      Parameters:
      visitor - the visitor to dispatch to
    • accept

      public void accept(JavaClassExpressionsTraverser visitor)
      Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.
      Parameters:
      visitor - the visitor to dispatch to
    • accept

      public void accept(JavaLightTraverser visitor)
      Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.
      Parameters:
      visitor - the visitor to dispatch to
    • accept

      public void accept(AntlrTraverser visitor)
      Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.
      Specified by:
      accept in interface ASTAntlrNode
      Parameters:
      visitor - the visitor to dispatch to
    • accept

      public void accept(CommonExpressionsTraverser visitor)
      Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.
      Parameters:
      visitor - the visitor to dispatch to
    • accept

      public void accept(BitExpressionsTraverser 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(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(MCVarDeclarationStatementsTraverser visitor)
      Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.
      Parameters:
      visitor - the visitor to dispatch to
    • accept

      public void accept(MCStatementsBasisTraverser visitor)
      Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.
      Parameters:
      visitor - the visitor to dispatch to
    • accept

      public void accept(ExpressionsBasisTraverser visitor)
      Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.
      Parameters:
      visitor - the visitor to dispatch to
    • accept

      public void accept(OOSymbolsTraverser visitor)
      Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.
      Parameters:
      visitor - the visitor to dispatch to
    • accept

      public void accept(BasicSymbolsTraverser visitor)
      Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.
      Parameters:
      visitor - the visitor to dispatch to
    • accept

      public void accept(MCFullGenericTypesTraverser visitor)
      Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.
      Parameters:
      visitor - the visitor to dispatch to
    • accept

      public void accept(UglyExpressionsTraverser visitor)
      Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.
      Parameters:
      visitor - the visitor to dispatch to
    • accept

      public void accept(AssignmentExpressionsTraverser visitor)
      Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.
      Parameters:
      visitor - the visitor to dispatch to
    • accept

      public void accept(MCArrayStatementsTraverser visitor)
      Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.
      Parameters:
      visitor - the visitor to dispatch to
    • accept

      public void accept(TypeParametersTraverser 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 ASTJavaCode _construct()
    • getEnclosingScope

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

      public void setEnclosingScope(IGrammar_WithConceptsScope enclosingScope)
    • setEnclosingScope

      public void setEnclosingScope(IGrammarScope enclosingScope)
    • setEnclosingScope

      public void setEnclosingScope(IMCCommonStatementsScope enclosingScope)
    • setEnclosingScope

      public void setEnclosingScope(IMCReturnStatementsScope enclosingScope)
    • setEnclosingScope

      public void setEnclosingScope(IMCExceptionStatementsScope enclosingScope)
    • setEnclosingScope

      public void setEnclosingScope(IJavaClassExpressionsScope enclosingScope)
    • setEnclosingScope

      public void setEnclosingScope(IJavaLightScope enclosingScope)
    • setEnclosingScope

      public void setEnclosingScope(IAntlrScope enclosingScope)
      Specified by:
      setEnclosingScope in interface ASTJavaCodeExt
    • setEnclosingScope

      public void setEnclosingScope(ICommonExpressionsScope enclosingScope)
    • setEnclosingScope

      public void setEnclosingScope(IBitExpressionsScope 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)
    • setEnclosingScope

      public void setEnclosingScope(IMCVarDeclarationStatementsScope enclosingScope)
    • setEnclosingScope

      public void setEnclosingScope(IMCStatementsBasisScope enclosingScope)
    • setEnclosingScope

      public void setEnclosingScope(IExpressionsBasisScope enclosingScope)
    • setEnclosingScope

      public void setEnclosingScope(IOOSymbolsScope enclosingScope)
    • setEnclosingScope

      public void setEnclosingScope(IBasicSymbolsScope enclosingScope)
    • setEnclosingScope

      public void setEnclosingScope(IMCFullGenericTypesScope enclosingScope)
    • setEnclosingScope

      public void setEnclosingScope(IUglyExpressionsScope enclosingScope)
    • setEnclosingScope

      public void setEnclosingScope(IAssignmentExpressionsScope enclosingScope)
    • setEnclosingScope

      public void setEnclosingScope(IMCArrayStatementsScope enclosingScope)
    • setEnclosingScope

      public void setEnclosingScope(ITypeParametersScope enclosingScope)
    • evaluate

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

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