Class ASTASTRule
java.lang.Object
de.monticore.ast.ASTCNode
de.monticore.grammar.grammar._ast.ASTASTRule
- All Implemented Interfaces:
de.monticore.ast.ASTNode,ASTGrammarNode,Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<ASTAdditionalAttribute> protected IGrammarScopeprotected List<ASTGrammarMethod> protected StringFields inherited from class de.monticore.ast.ASTCNode
end, postcomments, precomments, start -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ASTASTRulevoidaccept(GrammarTraverser visitor) Entry point for the Visitor pattern.voidaccept(MCCommonLiteralsTraverser visitor) Entry point for the Visitor pattern.voidaccept(MCLiteralsBasisTraverser visitor) Entry point for the Visitor pattern.voidaccept(MCBasicsTraverser visitor) Entry point for the Visitor pattern.voidaccept(MCBasicTypesTraverser visitor) Entry point for the Visitor pattern.voidaccept(MCCollectionTypesTraverser visitor) Entry point for the Visitor pattern.voidaccept(MCSimpleGenericTypesTraverser visitor) Entry point for the Visitor pattern.voidaccept(de.monticore.visitor.ITraverser visitor) Entry point for the Visitor pattern.voidaddAdditionalAttribute(int index, ASTAdditionalAttribute element) booleanbooleanaddAllAdditionalAttributes(int index, Collection<? extends ASTAdditionalAttribute> collection) booleanaddAllAdditionalAttributes(Collection<? extends ASTAdditionalAttribute> collection) booleanaddAllASTSuperClass(int index, Collection<? extends ASTMCType> collection) booleanaddAllASTSuperClass(Collection<? extends ASTMCType> collection) booleanaddAllASTSuperInterface(int index, Collection<? extends ASTMCType> collection) booleanaddAllASTSuperInterface(Collection<? extends ASTMCType> collection) booleanaddAllGrammarMethods(int index, Collection<? extends ASTGrammarMethod> collection) booleanaddAllGrammarMethods(Collection<? extends ASTGrammarMethod> collection) voidaddASTSuperClass(int index, ASTMCType element) booleanaddASTSuperClass(ASTMCType element) voidaddASTSuperInterface(int index, ASTMCType element) booleanaddASTSuperInterface(ASTMCType element) voidaddGrammarMethod(int index, ASTGrammarMethod element) booleanaddGrammarMethod(ASTGrammarMethod element) voidvoidvoidvoidbooleancontainsAdditionalAttribute(Object element) booleancontainsAllAdditionalAttributes(Collection<?> collection) booleancontainsAllASTSuperClass(Collection<?> collection) booleancontainsAllASTSuperInterface(Collection<?> collection) booleancontainsAllGrammarMethods(Collection<?> collection) booleancontainsASTSuperClass(Object element) booleancontainsASTSuperInterface(Object element) booleancontainsGrammarMethod(Object element) deepClone(ASTASTRule result) booleandeepEquals(Object o) booleandeepEquals(Object o, boolean forceSameOrder) booleanbooleandeepEqualsWithComments(Object o, boolean forceSameOrder) booleanbooleanbooleanbooleanbooleanbooleande.monticore.interpreter.Valueevaluate(IGrammarInterpreter interpreter) de.monticore.interpreter.Valueevaluate(de.monticore.interpreter.ModelInterpreter interpreter) voidforEachAdditionalAttributes(Consumer<? super ASTAdditionalAttribute> action) voidforEachASTSuperClass(Consumer<? super ASTMCType> action) voidforEachASTSuperInterface(Consumer<? super ASTMCType> action) voidforEachGrammarMethods(Consumer<? super ASTGrammarMethod> action) getAdditionalAttribute(int index) getASTSuperClass(int index) getASTSuperInterface(int index) getGrammarMethod(int index) getType()intintintintintindexOfAdditionalAttribute(Object element) intindexOfASTSuperClass(Object element) intindexOfASTSuperInterface(Object element) intindexOfGrammarMethod(Object element) booleanbooleanbooleanbooleanintlastIndexOfAdditionalAttribute(Object element) intlastIndexOfASTSuperClass(Object element) intlastIndexOfASTSuperInterface(Object element) intlastIndexOfGrammarMethod(Object element) listIteratorAdditionalAttributes(int index) listIteratorASTSuperClass(int index) listIteratorASTSuperInterface(int index) listIteratorGrammarMethods(int index) removeAdditionalAttribute(int index) booleanremoveAdditionalAttribute(Object element) booleanremoveAllAdditionalAttributes(Collection<?> collection) booleanremoveAllASTSuperClass(Collection<?> collection) booleanremoveAllASTSuperInterface(Collection<?> collection) booleanremoveAllGrammarMethods(Collection<?> collection) removeASTSuperClass(int index) booleanremoveASTSuperClass(Object element) removeASTSuperInterface(int index) booleanremoveASTSuperInterface(Object element) removeGrammarMethod(int index) booleanremoveGrammarMethod(Object element) booleanremoveIfAdditionalAttribute(Predicate<? super ASTAdditionalAttribute> filter) booleanremoveIfASTSuperClass(Predicate<? super ASTMCType> filter) booleanremoveIfASTSuperInterface(Predicate<? super ASTMCType> filter) booleanremoveIfGrammarMethod(Predicate<? super ASTGrammarMethod> filter) voidvoidreplaceAllASTSuperClass(UnaryOperator<ASTMCType> operator) voidreplaceAllASTSuperInterface(UnaryOperator<ASTMCType> operator) voidbooleanretainAllAdditionalAttributes(Collection<?> collection) booleanretainAllASTSuperClass(Collection<?> collection) booleanretainAllASTSuperInterface(Collection<?> collection) booleanretainAllGrammarMethods(Collection<?> collection) setAdditionalAttribute(int index, ASTAdditionalAttribute element) voidsetAdditionalAttributeList(List<ASTAdditionalAttribute> additionalAttributes) setASTSuperClass(int index, ASTMCType element) voidsetASTSuperClassList(List<ASTMCType> aSTSuperClass) setASTSuperInterface(int index, ASTMCType element) voidsetASTSuperInterfaceList(List<ASTMCType> aSTSuperInterface) voidsetEnclosingScope(IGrammarScope enclosingScope) voidsetEnclosingScope(IMCCommonLiteralsScope enclosingScope) voidsetEnclosingScope(IMCLiteralsBasisScope enclosingScope) voidsetEnclosingScope(IMCBasicsScope enclosingScope) voidsetEnclosingScope(IMCBasicTypesScope enclosingScope) voidsetEnclosingScope(IMCCollectionTypesScope enclosingScope) voidsetEnclosingScope(IMCSimpleGenericTypesScope enclosingScope) setGrammarMethod(int index, ASTGrammarMethod element) voidsetGrammarMethodList(List<ASTGrammarMethod> grammarMethods) voidintintintintvoidsortAdditionalAttributes(Comparator<? super ASTAdditionalAttribute> comparator) voidsortASTSuperClass(Comparator<? super ASTMCType> comparator) voidsortASTSuperInterface(Comparator<? super ASTMCType> comparator) voidsortGrammarMethods(Comparator<? super ASTGrammarMethod> comparator) subListAdditionalAttributes(int start, int end) subListASTSuperClass(int start, int end) subListASTSuperInterface(int start, int end) subListGrammarMethods(int start, int end) Object[]Object[]toArrayASTSuperClass(ASTMCType[] array) Object[]toArrayASTSuperInterface(ASTMCType[] array) Object[]toArrayGrammarMethods(ASTGrammarMethod[] array) Methods inherited from class de.monticore.ast.ASTCNode
add_PostComment, add_PostComment, add_PreComment, add_PreComment, addAll_PostComments, addAll_PostComments, addAll_PreComments, addAll_PreComments, clear_PostComments, clear_PreComments, contains_PostComment, contains_PreComment, containsAll_PostComments, containsAll_PreComments, equals_PostComments, equals_PreComments, forEach_PostComments, forEach_PreComments, get_PostComment, get_PostCommentList, get_PreComment, get_PreCommentList, get_SourcePositionEnd, get_SourcePositionStart, hashCode_PostComments, hashCode_PreComments, indexOf_PostComment, indexOf_PreComment, isEmpty_PostComments, isEmpty_PreComments, isPresent_SourcePositionEnd, isPresent_SourcePositionStart, iterator_PostComments, iterator_PreComments, lastIndexOf_PostComment, lastIndexOf_PreComment, listIterator_PostComments, listIterator_PostComments, listIterator_PreComments, listIterator_PreComments, parallelStream_PostComments, parallelStream_PreComments, remove_PostComment, remove_PostComment, remove_PreComment, remove_PreComment, removeAll_PostComments, removeAll_PreComments, removeIf_PostComment, removeIf_PreComment, replaceAll_PostComments, replaceAll_PreComments, retainAll_PostComments, retainAll_PreComments, set_PostComment, set_PostCommentList, set_PreComment, set_PreCommentList, set_SourcePositionEnd, set_SourcePositionEndAbsent, set_SourcePositionStart, set_SourcePositionStartAbsent, size_PostComments, size_PreComments, sort_PostComments, sort_PreComments, spliterator_PostComments, spliterator_PreComments, stream_PostComments, stream_PreComments, subList_PostComments, subList_PreComments, toArray_PostComments, toArray_PostComments, toArray_PreComments, toArray_PreCommentsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.monticore.ast.ASTNode
add_PostComment, add_PostComment, add_PreComment, add_PreComment, addAll_PostComments, addAll_PostComments, addAll_PreComments, addAll_PreComments, clear_PostComments, clear_PreComments, contains_PostComment, contains_PreComment, containsAll_PostComments, containsAll_PreComments, equals_PostComments, equals_PreComments, forEach_PostComments, forEach_PreComments, get_PostComment, get_PostCommentList, get_PreComment, get_PreCommentList, get_SourcePositionEnd, get_SourcePositionStart, hashCode_PostComments, hashCode_PreComments, indexOf_PostComment, indexOf_PreComment, isEmpty_PostComments, isEmpty_PreComments, isPresent_SourcePositionEnd, isPresent_SourcePositionStart, iterator_PostComments, iterator_PreComments, lastIndexOf_PostComment, lastIndexOf_PreComment, listIterator_PostComments, listIterator_PostComments, listIterator_PreComments, listIterator_PreComments, parallelStream_PostComments, parallelStream_PreComments, remove_PostComment, remove_PostComment, remove_PreComment, remove_PreComment, removeAll_PostComments, removeAll_PreComments, removeIf_PostComment, removeIf_PreComment, replaceAll_PostComments, replaceAll_PreComments, retainAll_PostComments, retainAll_PreComments, set_PostComment, set_PostCommentList, set_PreComment, set_PreCommentList, set_SourcePositionEnd, set_SourcePositionEndAbsent, set_SourcePositionStart, set_SourcePositionStartAbsent, size_PostComments, size_PreComments, sort_PostComments, sort_PreComments, spliterator_PostComments, spliterator_PreComments, stream_PostComments, stream_PreComments, subList_PostComments, subList_PreComments, toArray_PostComments, toArray_PostComments, toArray_PreComments, toArray_PreComments
-
Field Details
-
type
-
aSTSuperClass
-
aSTSuperInterface
-
grammarMethods
-
additionalAttributes
-
enclosingScope
-
-
Constructor Details
-
ASTASTRule
protected ASTASTRule()
-
-
Method Details
-
deepEquals
- Specified by:
deepEqualsin interfacede.monticore.ast.ASTNode
-
deepEquals
- Specified by:
deepEqualsin interfacede.monticore.ast.ASTNode
-
deepEqualsWithComments
- Specified by:
deepEqualsWithCommentsin interfacede.monticore.ast.ASTNode
-
deepEqualsWithComments
- Specified by:
deepEqualsWithCommentsin interfacede.monticore.ast.ASTNode
-
equalAttributes
- Specified by:
equalAttributesin interfacede.monticore.ast.ASTNode
-
equalsWithComments
- Specified by:
equalsWithCommentsin interfacede.monticore.ast.ASTNode
-
deepClone
- Specified by:
deepClonein interfacede.monticore.ast.ASTNode- Specified by:
deepClonein classde.monticore.ast.ASTCNode
-
deepClone
-
getType
-
containsASTSuperClass
-
containsAllASTSuperClass
-
isEmptyASTSuperClass
public boolean isEmptyASTSuperClass() -
iteratorASTSuperClass
-
sizeASTSuperClass
public int sizeASTSuperClass() -
toArrayASTSuperClass
-
toArrayASTSuperClass
-
spliteratorASTSuperClass
-
streamASTSuperClass
-
parallelStreamASTSuperClass
-
getASTSuperClass
-
indexOfASTSuperClass
-
lastIndexOfASTSuperClass
-
equalsASTSuperClass
-
hashCodeASTSuperClass
public int hashCodeASTSuperClass() -
listIteratorASTSuperClass
-
listIteratorASTSuperClass
-
subListASTSuperClass
-
getASTSuperClassList
-
containsASTSuperInterface
-
containsAllASTSuperInterface
-
isEmptyASTSuperInterface
public boolean isEmptyASTSuperInterface() -
iteratorASTSuperInterface
-
sizeASTSuperInterface
public int sizeASTSuperInterface() -
toArrayASTSuperInterface
-
toArrayASTSuperInterface
-
spliteratorASTSuperInterface
-
streamASTSuperInterface
-
parallelStreamASTSuperInterface
-
getASTSuperInterface
-
indexOfASTSuperInterface
-
lastIndexOfASTSuperInterface
-
equalsASTSuperInterface
-
hashCodeASTSuperInterface
public int hashCodeASTSuperInterface() -
listIteratorASTSuperInterface
-
listIteratorASTSuperInterface
-
subListASTSuperInterface
-
getASTSuperInterfaceList
-
containsGrammarMethod
-
containsAllGrammarMethods
-
isEmptyGrammarMethods
public boolean isEmptyGrammarMethods() -
iteratorGrammarMethods
-
sizeGrammarMethods
public int sizeGrammarMethods() -
toArrayGrammarMethods
-
toArrayGrammarMethods
-
spliteratorGrammarMethods
-
streamGrammarMethods
-
parallelStreamGrammarMethods
-
getGrammarMethod
-
indexOfGrammarMethod
-
lastIndexOfGrammarMethod
-
equalsGrammarMethods
-
hashCodeGrammarMethods
public int hashCodeGrammarMethods() -
listIteratorGrammarMethods
-
listIteratorGrammarMethods
-
subListGrammarMethods
-
getGrammarMethodList
-
containsAdditionalAttribute
-
containsAllAdditionalAttributes
-
isEmptyAdditionalAttributes
public boolean isEmptyAdditionalAttributes() -
iteratorAdditionalAttributes
-
sizeAdditionalAttributes
public int sizeAdditionalAttributes() -
toArrayAdditionalAttributes
-
toArrayAdditionalAttributes
-
spliteratorAdditionalAttributes
-
streamAdditionalAttributes
-
parallelStreamAdditionalAttributes
-
getAdditionalAttribute
-
indexOfAdditionalAttribute
-
lastIndexOfAdditionalAttribute
-
equalsAdditionalAttributes
-
hashCodeAdditionalAttributes
public int hashCodeAdditionalAttributes() -
listIteratorAdditionalAttributes
-
listIteratorAdditionalAttributes
-
subListAdditionalAttributes
-
getAdditionalAttributeList
-
setType
-
clearASTSuperClass
public void clearASTSuperClass() -
addASTSuperClass
-
addAllASTSuperClass
-
removeASTSuperClass
-
removeAllASTSuperClass
-
retainAllASTSuperClass
-
removeIfASTSuperClass
-
forEachASTSuperClass
-
addASTSuperClass
-
addAllASTSuperClass
-
removeASTSuperClass
-
setASTSuperClass
-
replaceAllASTSuperClass
-
sortASTSuperClass
-
setASTSuperClassList
-
clearASTSuperInterface
public void clearASTSuperInterface() -
addASTSuperInterface
-
addAllASTSuperInterface
-
removeASTSuperInterface
-
removeAllASTSuperInterface
-
retainAllASTSuperInterface
-
removeIfASTSuperInterface
-
forEachASTSuperInterface
-
addASTSuperInterface
-
addAllASTSuperInterface
-
removeASTSuperInterface
-
setASTSuperInterface
-
replaceAllASTSuperInterface
-
sortASTSuperInterface
-
setASTSuperInterfaceList
-
clearGrammarMethods
public void clearGrammarMethods() -
addGrammarMethod
-
addAllGrammarMethods
-
removeGrammarMethod
-
removeAllGrammarMethods
-
retainAllGrammarMethods
-
removeIfGrammarMethod
-
forEachGrammarMethods
-
addGrammarMethod
-
addAllGrammarMethods
-
removeGrammarMethod
-
setGrammarMethod
-
replaceAllGrammarMethods
-
sortGrammarMethods
-
setGrammarMethodList
-
clearAdditionalAttributes
public void clearAdditionalAttributes() -
addAdditionalAttribute
-
addAllAdditionalAttributes
-
removeAdditionalAttribute
-
removeAllAdditionalAttributes
-
retainAllAdditionalAttributes
-
removeIfAdditionalAttribute
-
forEachAdditionalAttributes
-
addAdditionalAttribute
-
addAllAdditionalAttributes
public boolean addAllAdditionalAttributes(int index, Collection<? extends ASTAdditionalAttribute> collection) -
removeAdditionalAttribute
-
setAdditionalAttribute
-
replaceAllAdditionalAttributes
-
sortAdditionalAttributes
-
setAdditionalAttributeList
-
accept
Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.- Specified by:
acceptin interfaceASTGrammarNode- Parameters:
visitor- the visitor to dispatch to
-
accept
Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.- Parameters:
visitor- the visitor to dispatch to
-
accept
Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.- Parameters:
visitor- the visitor to dispatch to
-
accept
Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.- Parameters:
visitor- the visitor to dispatch to
-
accept
Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.- Parameters:
visitor- the visitor to dispatch to
-
accept
Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.- Parameters:
visitor- the visitor to dispatch to
-
accept
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:
acceptin interfacede.monticore.ast.ASTNode- Parameters:
visitor- the visitor to dispatch to
-
_construct
-
getEnclosingScope
- Specified by:
getEnclosingScopein interfacede.monticore.ast.ASTNode
-
setEnclosingScope
-
setEnclosingScope
-
setEnclosingScope
-
setEnclosingScope
-
setEnclosingScope
-
setEnclosingScope
-
setEnclosingScope
-
evaluate
-
evaluate
public de.monticore.interpreter.Value evaluate(de.monticore.interpreter.ModelInterpreter interpreter) - Specified by:
evaluatein interfacede.monticore.ast.ASTNode
-