Class ASTLexProd
java.lang.Object
de.monticore.ast.ASTCNode
de.monticore.grammar.grammar._ast.ASTLexProd
- All Implemented Interfaces:
de.monticore.ast.ASTNode,ASTGrammarNode,ASTProd,ASTProdTOP,Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Optional<ASTActionExt> protected booleanprotected IGrammarScopeprotected Optional<ASTActionExt> protected booleanprotected List<ASTGrammarAnnotation> protected Optional<ASTActionExt> protected Optional<ASTLexOption> 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 ASTLexProdvoidaccept(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.booleanaddAllAlt(int index, Collection<? extends ASTLexAlt> collection) booleanaddAllAlt(Collection<? extends ASTLexAlt> collection) booleanaddAllGrammarAnnotations(int index, Collection<? extends ASTGrammarAnnotation> collection) booleanaddAllGrammarAnnotations(Collection<? extends ASTGrammarAnnotation> collection) booleanaddAllParameter(int index, Collection<? extends String> collection) booleanaddAllParameter(Collection<? extends String> collection) booleanaddAllType(int index, Collection<? extends String> collection) booleanaddAllType(Collection<? extends String> collection) voidbooleanvoidaddGrammarAnnotation(int index, ASTGrammarAnnotation element) booleanaddGrammarAnnotation(ASTGrammarAnnotation element) voidaddParameter(int index, String element) booleanaddParameter(String element) voidbooleanvoidclearAlt()voidvoidvoidbooleancontainsAllAlt(Collection<?> collection) booleancontainsAllGrammarAnnotations(Collection<?> collection) booleancontainsAllParameter(Collection<?> collection) booleancontainsAllType(Collection<?> collection) booleancontainsAlt(Object element) booleancontainsGrammarAnnotation(Object element) booleancontainsParameter(Object element) booleancontainsType(Object element) deepClone(ASTLexProd result) booleandeepEquals(Object o) booleandeepEquals(Object o, boolean forceSameOrder) booleanbooleandeepEqualsWithComments(Object o, boolean forceSameOrder) booleanbooleanbooleanbooleanbooleanequalsType(Object o) booleande.monticore.interpreter.Valueevaluate(IGrammarInterpreter interpreter) de.monticore.interpreter.Valueevaluate(de.monticore.interpreter.ModelInterpreter interpreter) voidforEachAlt(Consumer<? super ASTLexAlt> action) voidforEachGrammarAnnotations(Consumer<? super ASTGrammarAnnotation> action) voidforEachParameter(Consumer<? super String> action) voidforEachType(Consumer<? super String> action) getAlt(int index) getBlock()getGrammarAnnotation(int index) getMode()getName()getParameter(int index) getType(int index) intintintintintindexOfAlt(Object element) intindexOfGrammarAnnotation(Object element) intindexOfParameter(Object element) intindexOfType(Object element) booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanintlastIndexOfAlt(Object element) intlastIndexOfGrammarAnnotation(Object element) intlastIndexOfParameter(Object element) intlastIndexOfType(Object element) listIteratorAlt(int index) listIteratorGrammarAnnotations(int index) listIteratorParameter(int index) listIteratorType(int index) booleanremoveAllAlt(Collection<?> collection) booleanremoveAllGrammarAnnotations(Collection<?> collection) booleanremoveAllParameter(Collection<?> collection) booleanremoveAllType(Collection<?> collection) removeAlt(int index) booleanremoveGrammarAnnotation(int index) booleanremoveGrammarAnnotation(Object element) booleanremoveIfAlt(Predicate<? super ASTLexAlt> filter) booleanremoveIfGrammarAnnotation(Predicate<? super ASTGrammarAnnotation> filter) booleanremoveIfParameter(Predicate<? super String> filter) booleanremoveIfType(Predicate<? super String> filter) removeParameter(int index) booleanremoveParameter(Object element) removeType(int index) booleanremoveType(Object element) voidreplaceAllAlt(UnaryOperator<ASTLexAlt> operator) voidvoidreplaceAllParameter(UnaryOperator<String> operator) voidreplaceAllType(UnaryOperator<String> operator) booleanretainAllAlt(Collection<?> collection) booleanretainAllGrammarAnnotations(Collection<?> collection) booleanretainAllParameter(Collection<?> collection) booleanretainAllType(Collection<?> collection) voidsetAltList(List<ASTLexAlt> alt) voidsetBlock(ASTActionExt block) voidvoidsetComment(boolean comment) voidsetEnclosingScope(IGrammarScope enclosingScope) voidsetEnclosingScope(IMCCommonLiteralsScope enclosingScope) voidsetEnclosingScope(IMCLiteralsBasisScope enclosingScope) voidsetEnclosingScope(IMCBasicsScope enclosingScope) voidsetEnclosingScope(IMCBasicTypesScope enclosingScope) voidsetEnclosingScope(IMCCollectionTypesScope enclosingScope) voidsetEnclosingScope(IMCSimpleGenericTypesScope enclosingScope) voidsetEndAction(ASTActionExt endAction) voidvoidsetFragment(boolean fragment) setGrammarAnnotation(int index, ASTGrammarAnnotation element) voidsetGrammarAnnotationList(List<ASTGrammarAnnotation> grammarAnnotations) voidsetInitAction(ASTActionExt initAction) voidvoidsetLexerCommand(String lexerCommand) voidvoidsetLexOption(ASTLexOption lexOption) voidvoidvoidvoidsetParameter(int index, String element) voidsetParameterList(List<String> parameter) voidsetSpannedScope(IGrammarScope spannedScope) voidsetSpannedScope(IMCCommonLiteralsScope spannedScope) voidsetSpannedScope(IMCLiteralsBasisScope spannedScope) voidsetSpannedScope(IMCBasicsScope spannedScope) voidsetSpannedScope(IMCBasicTypesScope spannedScope) voidsetSpannedScope(IMCCollectionTypesScope spannedScope) voidsetSpannedScope(IMCSimpleGenericTypesScope spannedScope) voidsetSymbol(ProdSymbol symbol) voidvoidsetTypeList(List<String> type) voidsetVariable(String variable) voidintsizeAlt()intintintsizeType()voidsortAlt(Comparator<? super ASTLexAlt> comparator) voidsortGrammarAnnotations(Comparator<? super ASTGrammarAnnotation> comparator) voidsortParameter(Comparator<? super String> comparator) voidsortType(Comparator<? super String> comparator) subListAlt(int start, int end) subListGrammarAnnotations(int start, int end) subListParameter(int start, int end) subListType(int start, int end) Object[]toArrayAlt(ASTLexAlt[] array) Object[]Object[]String[]toArrayParameter(String[] array) Object[]String[]toArrayType(String[] 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_PreCommentsMethods inherited from interface de.monticore.grammar.grammar._ast.ASTProd
getSymbolDefinitionList
-
Field Details
-
grammarAnnotations
-
name
-
mode
-
lexOption
-
initAction
-
alt
-
lexerCommand
-
parameter
-
endAction
-
variable
-
type
-
block
-
fragment
protected boolean fragment -
comment
protected boolean comment -
symbol
-
spannedScope
-
enclosingScope
-
-
Constructor Details
-
ASTLexProd
protected ASTLexProd()
-
-
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
-
getMode
-
isPresentMode
public boolean isPresentMode() -
getLexOption
-
isPresentLexOption
public boolean isPresentLexOption() -
getInitAction
-
isPresentInitAction
public boolean isPresentInitAction() -
containsAlt
-
containsAllAlt
-
isEmptyAlt
public boolean isEmptyAlt() -
iteratorAlt
-
sizeAlt
public int sizeAlt() -
toArrayAlt
-
toArrayAlt
-
spliteratorAlt
-
streamAlt
-
parallelStreamAlt
-
getAlt
-
indexOfAlt
-
lastIndexOfAlt
-
equalsAlt
-
hashCodeAlt
public int hashCodeAlt() -
listIteratorAlt
-
listIteratorAlt
-
subListAlt
-
getAltList
-
getLexerCommand
-
isPresentLexerCommand
public boolean isPresentLexerCommand() -
containsParameter
-
containsAllParameter
-
isEmptyParameter
public boolean isEmptyParameter() -
iteratorParameter
-
sizeParameter
public int sizeParameter() -
toArrayParameter
-
toArrayParameter
-
spliteratorParameter
-
streamParameter
-
parallelStreamParameter
-
getParameter
-
indexOfParameter
-
lastIndexOfParameter
-
equalsParameter
-
hashCodeParameter
public int hashCodeParameter() -
listIteratorParameter
-
listIteratorParameter
-
subListParameter
-
getParameterList
-
getEndAction
-
isPresentEndAction
public boolean isPresentEndAction() -
getVariable
-
isPresentVariable
public boolean isPresentVariable() -
containsType
-
containsAllType
-
isEmptyType
public boolean isEmptyType() -
iteratorType
-
sizeType
public int sizeType() -
toArrayType
-
toArrayType
-
spliteratorType
-
streamType
-
parallelStreamType
-
getType
-
indexOfType
-
lastIndexOfType
-
equalsType
-
hashCodeType
public int hashCodeType() -
listIteratorType
-
listIteratorType
-
subListType
-
getTypeList
-
getBlock
-
isPresentBlock
public boolean isPresentBlock() -
isFragment
public boolean isFragment() -
isComment
public boolean isComment() -
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
-
setMode
-
setModeAbsent
public void setModeAbsent() -
setLexOption
-
setLexOptionAbsent
public void setLexOptionAbsent() -
setInitAction
-
setInitActionAbsent
public void setInitActionAbsent() -
clearAlt
public void clearAlt() -
addAlt
-
addAllAlt
-
removeAlt
-
removeAllAlt
-
retainAllAlt
-
removeIfAlt
-
forEachAlt
-
addAlt
-
addAllAlt
-
removeAlt
-
setAlt
-
replaceAllAlt
-
sortAlt
-
setAltList
-
setLexerCommand
-
setLexerCommandAbsent
public void setLexerCommandAbsent() -
clearParameter
public void clearParameter() -
addParameter
-
addAllParameter
-
removeParameter
-
removeAllParameter
-
retainAllParameter
-
removeIfParameter
-
forEachParameter
-
addParameter
-
addAllParameter
-
removeParameter
-
setParameter
-
replaceAllParameter
-
sortParameter
-
setParameterList
-
setEndAction
-
setEndActionAbsent
public void setEndActionAbsent() -
setVariable
-
setVariableAbsent
public void setVariableAbsent() -
clearType
public void clearType() -
addType
-
addAllType
-
removeType
-
removeAllType
-
retainAllType
-
removeIfType
-
forEachType
-
addType
-
addAllType
-
removeType
-
setType
-
replaceAllType
-
sortType
-
setTypeList
-
setBlock
-
setBlockAbsent
public void setBlockAbsent() -
setFragment
public void setFragment(boolean fragment) -
setComment
public void setComment(boolean comment) -
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
-