Class ASTScopeRule
java.lang.Object
de.monticore.ast.ASTCNode
de.monticore.grammar.grammar._ast.ASTScopeRule
- All Implemented Interfaces:
de.monticore.ast.ASTNode,ASTGrammarNode,Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<ASTAdditionalAttribute> protected IGrammarScopeprotected List<ASTGrammarMethod> Fields inherited from class de.monticore.ast.ASTCNode
end, postcomments, precomments, start -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ASTScopeRulevoidaccept(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) booleanaddAllGrammarMethods(int index, Collection<? extends ASTGrammarMethod> collection) booleanaddAllGrammarMethods(Collection<? extends ASTGrammarMethod> collection) booleanaddAllSuperClass(int index, Collection<? extends ASTMCType> collection) booleanaddAllSuperClass(Collection<? extends ASTMCType> collection) booleanaddAllSuperInterface(int index, Collection<? extends ASTMCType> collection) booleanaddAllSuperInterface(Collection<? extends ASTMCType> collection) voidaddGrammarMethod(int index, ASTGrammarMethod element) booleanaddGrammarMethod(ASTGrammarMethod element) voidaddSuperClass(int index, ASTMCType element) booleanaddSuperClass(ASTMCType element) voidaddSuperInterface(int index, ASTMCType element) booleanaddSuperInterface(ASTMCType element) voidvoidvoidvoidbooleancontainsAdditionalAttribute(Object element) booleancontainsAllAdditionalAttributes(Collection<?> collection) booleancontainsAllGrammarMethods(Collection<?> collection) booleancontainsAllSuperClass(Collection<?> collection) booleancontainsAllSuperInterface(Collection<?> collection) booleancontainsGrammarMethod(Object element) booleancontainsSuperClass(Object element) booleancontainsSuperInterface(Object element) deepClone(ASTScopeRule 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) voidforEachGrammarMethods(Consumer<? super ASTGrammarMethod> action) voidforEachSuperClass(Consumer<? super ASTMCType> action) voidforEachSuperInterface(Consumer<? super ASTMCType> action) getAdditionalAttribute(int index) getGrammarMethod(int index) getSuperClass(int index) getSuperInterface(int index) intintintintintindexOfAdditionalAttribute(Object element) intindexOfGrammarMethod(Object element) intindexOfSuperClass(Object element) intindexOfSuperInterface(Object element) booleanbooleanbooleanbooleanintlastIndexOfAdditionalAttribute(Object element) intlastIndexOfGrammarMethod(Object element) intlastIndexOfSuperClass(Object element) intlastIndexOfSuperInterface(Object element) listIteratorAdditionalAttributes(int index) listIteratorGrammarMethods(int index) listIteratorSuperClass(int index) listIteratorSuperInterface(int index) removeAdditionalAttribute(int index) booleanremoveAdditionalAttribute(Object element) booleanremoveAllAdditionalAttributes(Collection<?> collection) booleanremoveAllGrammarMethods(Collection<?> collection) booleanremoveAllSuperClass(Collection<?> collection) booleanremoveAllSuperInterface(Collection<?> collection) removeGrammarMethod(int index) booleanremoveGrammarMethod(Object element) booleanremoveIfAdditionalAttribute(Predicate<? super ASTAdditionalAttribute> filter) booleanremoveIfGrammarMethod(Predicate<? super ASTGrammarMethod> filter) booleanremoveIfSuperClass(Predicate<? super ASTMCType> filter) booleanremoveIfSuperInterface(Predicate<? super ASTMCType> filter) removeSuperClass(int index) booleanremoveSuperClass(Object element) removeSuperInterface(int index) booleanremoveSuperInterface(Object element) voidvoidvoidreplaceAllSuperClass(UnaryOperator<ASTMCType> operator) voidreplaceAllSuperInterface(UnaryOperator<ASTMCType> operator) booleanretainAllAdditionalAttributes(Collection<?> collection) booleanretainAllGrammarMethods(Collection<?> collection) booleanretainAllSuperClass(Collection<?> collection) booleanretainAllSuperInterface(Collection<?> collection) setAdditionalAttribute(int index, ASTAdditionalAttribute element) voidsetAdditionalAttributeList(List<ASTAdditionalAttribute> additionalAttributes) 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) setSuperClass(int index, ASTMCType element) voidsetSuperClassList(List<ASTMCType> superClass) setSuperInterface(int index, ASTMCType element) voidsetSuperInterfaceList(List<ASTMCType> superInterface) intintintintvoidsortAdditionalAttributes(Comparator<? super ASTAdditionalAttribute> comparator) voidsortGrammarMethods(Comparator<? super ASTGrammarMethod> comparator) voidsortSuperClass(Comparator<? super ASTMCType> comparator) voidsortSuperInterface(Comparator<? super ASTMCType> comparator) subListAdditionalAttributes(int start, int end) subListGrammarMethods(int start, int end) subListSuperClass(int start, int end) subListSuperInterface(int start, int end) Object[]Object[]toArrayGrammarMethods(ASTGrammarMethod[] array) Object[]toArraySuperClass(ASTMCType[] array) Object[]toArraySuperInterface(ASTMCType[] 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
-
superClass
-
superInterface
-
grammarMethods
-
additionalAttributes
-
enclosingScope
-
-
Constructor Details
-
ASTScopeRule
protected ASTScopeRule()
-
-
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
-
containsSuperClass
-
containsAllSuperClass
-
isEmptySuperClass
public boolean isEmptySuperClass() -
iteratorSuperClass
-
sizeSuperClass
public int sizeSuperClass() -
toArraySuperClass
-
toArraySuperClass
-
spliteratorSuperClass
-
streamSuperClass
-
parallelStreamSuperClass
-
getSuperClass
-
indexOfSuperClass
-
lastIndexOfSuperClass
-
equalsSuperClass
-
hashCodeSuperClass
public int hashCodeSuperClass() -
listIteratorSuperClass
-
listIteratorSuperClass
-
subListSuperClass
-
getSuperClassList
-
containsSuperInterface
-
containsAllSuperInterface
-
isEmptySuperInterface
public boolean isEmptySuperInterface() -
iteratorSuperInterface
-
sizeSuperInterface
public int sizeSuperInterface() -
toArraySuperInterface
-
toArraySuperInterface
-
spliteratorSuperInterface
-
streamSuperInterface
-
parallelStreamSuperInterface
-
getSuperInterface
-
indexOfSuperInterface
-
lastIndexOfSuperInterface
-
equalsSuperInterface
-
hashCodeSuperInterface
public int hashCodeSuperInterface() -
listIteratorSuperInterface
-
listIteratorSuperInterface
-
subListSuperInterface
-
getSuperInterfaceList
-
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
-
clearSuperClass
public void clearSuperClass() -
addSuperClass
-
addAllSuperClass
-
removeSuperClass
-
removeAllSuperClass
-
retainAllSuperClass
-
removeIfSuperClass
-
forEachSuperClass
-
addSuperClass
-
addAllSuperClass
-
removeSuperClass
-
setSuperClass
-
replaceAllSuperClass
-
sortSuperClass
-
setSuperClassList
-
clearSuperInterface
public void clearSuperInterface() -
addSuperInterface
-
addAllSuperInterface
-
removeSuperInterface
-
removeAllSuperInterface
-
retainAllSuperInterface
-
removeIfSuperInterface
-
forEachSuperInterface
-
addSuperInterface
-
addAllSuperInterface
-
removeSuperInterface
-
setSuperInterface
-
replaceAllSuperInterface
-
sortSuperInterface
-
setSuperInterfaceList
-
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
-