Class ASTEnumProd
java.lang.Object
de.monticore.ast.ASTCNode
de.monticore.grammar.grammar._ast.ASTEnumProd
- All Implemented Interfaces:
de.monticore.ast.ASTNode,ASTGrammarNode,ASTProd,ASTProdTOP,Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<ASTConstant> protected IGrammarScopeprotected List<ASTGrammarAnnotation> protected Stringprotected IGrammarScopeprotected Optional<ProdSymbol> Fields inherited from class de.monticore.ast.ASTCNode
end, postcomments, precomments, start -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ASTEnumProdvoidaccept(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.booleanaddAllConstants(int index, Collection<? extends ASTConstant> collection) booleanaddAllConstants(Collection<? extends ASTConstant> collection) booleanaddAllGrammarAnnotations(int index, Collection<? extends ASTGrammarAnnotation> collection) booleanaddAllGrammarAnnotations(Collection<? extends ASTGrammarAnnotation> collection) voidaddConstant(int index, ASTConstant element) booleanaddConstant(ASTConstant element) voidaddGrammarAnnotation(int index, ASTGrammarAnnotation element) booleanaddGrammarAnnotation(ASTGrammarAnnotation element) voidvoidbooleancontainsAllConstants(Collection<?> collection) booleancontainsAllGrammarAnnotations(Collection<?> collection) booleancontainsConstant(Object element) booleancontainsGrammarAnnotation(Object element) deepClone(ASTEnumProd result) booleandeepEquals(Object o) booleandeepEquals(Object o, boolean forceSameOrder) booleanbooleandeepEqualsWithComments(Object o, boolean forceSameOrder) booleanbooleanbooleanbooleande.monticore.interpreter.Valueevaluate(IGrammarInterpreter interpreter) de.monticore.interpreter.Valueevaluate(de.monticore.interpreter.ModelInterpreter interpreter) voidforEachConstants(Consumer<? super ASTConstant> action) voidforEachGrammarAnnotations(Consumer<? super ASTGrammarAnnotation> action) getConstant(int index) getGrammarAnnotation(int index) getName()intintintindexOfConstant(Object element) intindexOfGrammarAnnotation(Object element) booleanbooleanbooleanintlastIndexOfConstant(Object element) intlastIndexOfGrammarAnnotation(Object element) listIteratorConstants(int index) listIteratorGrammarAnnotations(int index) booleanremoveAllConstants(Collection<?> collection) booleanremoveAllGrammarAnnotations(Collection<?> collection) removeConstant(int index) booleanremoveConstant(Object element) removeGrammarAnnotation(int index) booleanremoveGrammarAnnotation(Object element) booleanremoveIfConstant(Predicate<? super ASTConstant> filter) booleanremoveIfGrammarAnnotation(Predicate<? super ASTGrammarAnnotation> filter) voidreplaceAllConstants(UnaryOperator<ASTConstant> operator) voidbooleanretainAllConstants(Collection<?> collection) booleanretainAllGrammarAnnotations(Collection<?> collection) setConstant(int index, ASTConstant element) voidsetConstantList(List<ASTConstant> constants) voidsetEnclosingScope(IGrammarScope enclosingScope) voidsetEnclosingScope(IMCCommonLiteralsScope enclosingScope) voidsetEnclosingScope(IMCLiteralsBasisScope enclosingScope) voidsetEnclosingScope(IMCBasicsScope enclosingScope) voidsetEnclosingScope(IMCBasicTypesScope enclosingScope) voidsetEnclosingScope(IMCCollectionTypesScope enclosingScope) voidsetEnclosingScope(IMCSimpleGenericTypesScope enclosingScope) setGrammarAnnotation(int index, ASTGrammarAnnotation element) voidsetGrammarAnnotationList(List<ASTGrammarAnnotation> grammarAnnotations) voidvoidsetSpannedScope(IGrammarScope spannedScope) voidsetSpannedScope(IMCCommonLiteralsScope spannedScope) voidsetSpannedScope(IMCLiteralsBasisScope spannedScope) voidsetSpannedScope(IMCBasicsScope spannedScope) voidsetSpannedScope(IMCBasicTypesScope spannedScope) voidsetSpannedScope(IMCCollectionTypesScope spannedScope) voidsetSpannedScope(IMCSimpleGenericTypesScope spannedScope) voidsetSymbol(ProdSymbol symbol) voidintintvoidsortConstants(Comparator<? super ASTConstant> comparator) voidsortGrammarAnnotations(Comparator<? super ASTGrammarAnnotation> comparator) subListConstants(int start, int end) subListGrammarAnnotations(int start, int end) Object[]toArrayConstants(ASTConstant[] array) Object[]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_PreCommentsMethods inherited from interface de.monticore.grammar.grammar._ast.ASTProd
getSymbolDefinitionList
-
Field Details
-
grammarAnnotations
-
name
-
constants
-
symbol
-
spannedScope
-
enclosingScope
-
-
Constructor Details
-
ASTEnumProd
protected ASTEnumProd()
-
-
Method Details
-
deepEquals
- Specified by:
deepEqualsin interfacede.monticore.ast.ASTNode- Specified by:
deepEqualsin interfaceASTProdTOP
-
deepEquals
- Specified by:
deepEqualsin interfacede.monticore.ast.ASTNode- Specified by:
deepEqualsin interfaceASTProdTOP
-
deepEqualsWithComments
- Specified by:
deepEqualsWithCommentsin interfacede.monticore.ast.ASTNode- Specified by:
deepEqualsWithCommentsin interfaceASTProdTOP
-
deepEqualsWithComments
- Specified by:
deepEqualsWithCommentsin interfacede.monticore.ast.ASTNode- Specified by:
deepEqualsWithCommentsin interfaceASTProdTOP
-
equalAttributes
- Specified by:
equalAttributesin interfacede.monticore.ast.ASTNode- Specified by:
equalAttributesin interfaceASTProdTOP
-
equalsWithComments
- Specified by:
equalsWithCommentsin interfacede.monticore.ast.ASTNode- Specified by:
equalsWithCommentsin interfaceASTProdTOP
-
deepClone
- Specified by:
deepClonein interfacede.monticore.ast.ASTNode- Specified by:
deepClonein interfaceASTProdTOP- Specified by:
deepClonein classde.monticore.ast.ASTCNode
-
deepClone
-
containsGrammarAnnotation
- Specified by:
containsGrammarAnnotationin interfaceASTProdTOP
-
containsAllGrammarAnnotations
- Specified by:
containsAllGrammarAnnotationsin interfaceASTProdTOP
-
isEmptyGrammarAnnotations
public boolean isEmptyGrammarAnnotations()- Specified by:
isEmptyGrammarAnnotationsin interfaceASTProdTOP
-
iteratorGrammarAnnotations
- Specified by:
iteratorGrammarAnnotationsin interfaceASTProdTOP
-
sizeGrammarAnnotations
public int sizeGrammarAnnotations()- Specified by:
sizeGrammarAnnotationsin interfaceASTProdTOP
-
toArrayGrammarAnnotations
- Specified by:
toArrayGrammarAnnotationsin interfaceASTProdTOP
-
toArrayGrammarAnnotations
- Specified by:
toArrayGrammarAnnotationsin interfaceASTProdTOP
-
spliteratorGrammarAnnotations
- Specified by:
spliteratorGrammarAnnotationsin interfaceASTProdTOP
-
streamGrammarAnnotations
- Specified by:
streamGrammarAnnotationsin interfaceASTProdTOP
-
parallelStreamGrammarAnnotations
- Specified by:
parallelStreamGrammarAnnotationsin interfaceASTProdTOP
-
getGrammarAnnotation
- Specified by:
getGrammarAnnotationin interfaceASTProdTOP
-
indexOfGrammarAnnotation
- Specified by:
indexOfGrammarAnnotationin interfaceASTProdTOP
-
lastIndexOfGrammarAnnotation
- Specified by:
lastIndexOfGrammarAnnotationin interfaceASTProdTOP
-
equalsGrammarAnnotations
- Specified by:
equalsGrammarAnnotationsin interfaceASTProdTOP
-
hashCodeGrammarAnnotations
public int hashCodeGrammarAnnotations()- Specified by:
hashCodeGrammarAnnotationsin interfaceASTProdTOP
-
listIteratorGrammarAnnotations
- Specified by:
listIteratorGrammarAnnotationsin interfaceASTProdTOP
-
listIteratorGrammarAnnotations
- Specified by:
listIteratorGrammarAnnotationsin interfaceASTProdTOP
-
subListGrammarAnnotations
- Specified by:
subListGrammarAnnotationsin interfaceASTProdTOP
-
getGrammarAnnotationList
- Specified by:
getGrammarAnnotationListin interfaceASTProdTOP
-
getName
- Specified by:
getNamein interfaceASTProdTOP
-
containsConstant
-
containsAllConstants
-
isEmptyConstants
public boolean isEmptyConstants() -
iteratorConstants
-
sizeConstants
public int sizeConstants() -
toArrayConstants
-
toArrayConstants
-
spliteratorConstants
-
streamConstants
-
parallelStreamConstants
-
getConstant
-
indexOfConstant
-
lastIndexOfConstant
-
equalsConstants
-
hashCodeConstants
public int hashCodeConstants() -
listIteratorConstants
-
listIteratorConstants
-
subListConstants
-
getConstantList
-
clearGrammarAnnotations
public void clearGrammarAnnotations()- Specified by:
clearGrammarAnnotationsin interfaceASTProdTOP
-
addGrammarAnnotation
- Specified by:
addGrammarAnnotationin interfaceASTProdTOP
-
addAllGrammarAnnotations
- Specified by:
addAllGrammarAnnotationsin interfaceASTProdTOP
-
removeGrammarAnnotation
- Specified by:
removeGrammarAnnotationin interfaceASTProdTOP
-
removeAllGrammarAnnotations
- Specified by:
removeAllGrammarAnnotationsin interfaceASTProdTOP
-
retainAllGrammarAnnotations
- Specified by:
retainAllGrammarAnnotationsin interfaceASTProdTOP
-
removeIfGrammarAnnotation
- Specified by:
removeIfGrammarAnnotationin interfaceASTProdTOP
-
forEachGrammarAnnotations
- Specified by:
forEachGrammarAnnotationsin interfaceASTProdTOP
-
addGrammarAnnotation
- Specified by:
addGrammarAnnotationin interfaceASTProdTOP
-
addAllGrammarAnnotations
public boolean addAllGrammarAnnotations(int index, Collection<? extends ASTGrammarAnnotation> collection) - Specified by:
addAllGrammarAnnotationsin interfaceASTProdTOP
-
removeGrammarAnnotation
- Specified by:
removeGrammarAnnotationin interfaceASTProdTOP
-
setGrammarAnnotation
- Specified by:
setGrammarAnnotationin interfaceASTProdTOP
-
replaceAllGrammarAnnotations
- Specified by:
replaceAllGrammarAnnotationsin interfaceASTProdTOP
-
sortGrammarAnnotations
- Specified by:
sortGrammarAnnotationsin interfaceASTProdTOP
-
setGrammarAnnotationList
- Specified by:
setGrammarAnnotationListin interfaceASTProdTOP
-
setName
- Specified by:
setNamein interfaceASTProdTOP
-
clearConstants
public void clearConstants() -
addConstant
-
addAllConstants
-
removeConstant
-
removeAllConstants
-
retainAllConstants
-
removeIfConstant
-
forEachConstants
-
addConstant
-
addAllConstants
-
removeConstant
-
setConstant
-
replaceAllConstants
-
sortConstants
-
setConstantList
-
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
-
getSymbol
- Specified by:
getSymbolin interfaceASTProdTOP
-
isPresentSymbol
public boolean isPresentSymbol()- Specified by:
isPresentSymbolin interfaceASTProdTOP
-
setSymbol
-
setSymbolAbsent
public void setSymbolAbsent() -
getSpannedScope
- Specified by:
getSpannedScopein interfaceASTProdTOP
-
setSpannedScope
- Specified by:
setSpannedScopein interfaceASTProdTOP
-
getEnclosingScope
- Specified by:
getEnclosingScopein interfacede.monticore.ast.ASTNode- Specified by:
getEnclosingScopein interfaceASTProdTOP
-
setEnclosingScope
- Specified by:
setEnclosingScopein interfaceASTProdTOP
-
setEnclosingScope
- Specified by:
setEnclosingScopein interfaceASTProdTOP
-
setSpannedScope
-
setEnclosingScope
- Specified by:
setEnclosingScopein interfaceASTProdTOP
-
setSpannedScope
-
setEnclosingScope
- Specified by:
setEnclosingScopein interfaceASTProdTOP
-
setSpannedScope
-
setEnclosingScope
- Specified by:
setEnclosingScopein interfaceASTProdTOP
-
setSpannedScope
-
setEnclosingScope
- Specified by:
setEnclosingScopein interfaceASTProdTOP
-
setSpannedScope
-
setEnclosingScope
- Specified by:
setEnclosingScopein interfaceASTProdTOP
-
setSpannedScope
-
evaluate
-
evaluate
public de.monticore.interpreter.Value evaluate(de.monticore.interpreter.ModelInterpreter interpreter) - Specified by:
evaluatein interfacede.monticore.ast.ASTNode
-