Class ASTLexProdBuilder
java.lang.Object
de.monticore.ast.ASTNodeBuilder<ASTLexProdBuilder>
de.monticore.grammar.grammar._ast.ASTLexProdBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Optional<ASTActionExt> protected booleanprotected Optional<ASTActionExt> protected booleanprotected List<ASTGrammarAnnotation> protected Optional<ASTActionExt> protected Optional<ASTLexOption> protected Stringprotected ASTLexProdBuilderFields inherited from class de.monticore.ast.ASTNodeBuilder
postcomments, precomments, sourcePositionEnd, sourcePositionStart -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd_PostComment(int index, de.monticore.ast.Comment postcomment) add_PostComment(de.monticore.ast.Comment postcomment) add_PreComment(int index, de.monticore.ast.Comment precomment) add_PreComment(de.monticore.ast.Comment precomment) addAll_PostComments(int index, Collection<de.monticore.ast.Comment> postcomments) addAll_PostComments(Collection<de.monticore.ast.Comment> postcomments) addAll_PreComments(int index, Collection<de.monticore.ast.Comment> precomments) addAll_PreComments(Collection<de.monticore.ast.Comment> precomments) addAllAlt(int index, Collection<? extends ASTLexAlt> collection) addAllAlt(Collection<? extends ASTLexAlt> collection) addAllGrammarAnnotations(int index, Collection<? extends ASTGrammarAnnotation> collection) addAllGrammarAnnotations(Collection<? extends ASTGrammarAnnotation> collection) addAllParameter(int index, Collection<? extends String> collection) addAllParameter(Collection<? extends String> collection) addAllType(int index, Collection<? extends String> collection) addAllType(Collection<? extends String> collection) addGrammarAnnotation(int index, ASTGrammarAnnotation element) addGrammarAnnotation(ASTGrammarAnnotation element) addParameter(int index, String element) addParameter(String element) build()clearAlt()booleancontainsAllAlt(Collection<?> collection) booleancontainsAllGrammarAnnotations(Collection<?> collection) booleancontainsAllParameter(Collection<?> collection) booleancontainsAllType(Collection<?> collection) booleancontainsAlt(Object element) booleancontainsGrammarAnnotation(Object element) booleancontainsParameter(Object element) booleancontainsType(Object element) booleanbooleanbooleanbooleanequalsType(Object o) forEach_PostComments(Consumer<? super de.monticore.ast.Comment> action) forEach_PreComments(Consumer<? super de.monticore.ast.Comment> action) forEachAlt(Consumer<? super ASTLexAlt> action) forEachGrammarAnnotations(Consumer<? super ASTGrammarAnnotation> action) forEachParameter(Consumer<? super String> action) forEachType(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) booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanisValid()intlastIndexOfAlt(Object element) intlastIndexOfGrammarAnnotation(Object element) intlastIndexOfParameter(Object element) intlastIndexOfType(Object element) listIteratorAlt(int index) listIteratorGrammarAnnotations(int index) listIteratorParameter(int index) listIteratorType(int index) remove_PostComment(int index) remove_PostComment(Object element) remove_PreComment(int index) remove_PreComment(Object element) removeAll_PostComments(Collection<?> element) removeAll_PreComments(Collection<?> element) removeAllAlt(Collection<?> collection) removeAllGrammarAnnotations(Collection<?> collection) removeAllParameter(Collection<?> collection) removeAllType(Collection<?> collection) removeAlt(int index) removeGrammarAnnotation(int index) removeGrammarAnnotation(Object element) removeIf_PostComment(Predicate<? super de.monticore.ast.Comment> filter) removeIf_PreComment(Predicate<? super de.monticore.ast.Comment> filter) removeIfAlt(Predicate<? super ASTLexAlt> filter) removeIfGrammarAnnotation(Predicate<? super ASTGrammarAnnotation> filter) removeIfParameter(Predicate<? super String> filter) removeIfType(Predicate<? super String> filter) removeParameter(int index) removeParameter(Object element) removeType(int index) removeType(Object element) replaceAll_PostComments(UnaryOperator<de.monticore.ast.Comment> operator) replaceAll_PreComments(UnaryOperator<de.monticore.ast.Comment> operator) replaceAllAlt(UnaryOperator<ASTLexAlt> operator) replaceAllParameter(UnaryOperator<String> operator) replaceAllType(UnaryOperator<String> operator) retainAll_PostComments(Collection<?> element) retainAll_PreComments(Collection<?> element) retainAllAlt(Collection<?> collection) retainAllGrammarAnnotations(Collection<?> collection) retainAllParameter(Collection<?> collection) retainAllType(Collection<?> collection) set_PostComment(int index, de.monticore.ast.Comment postcomment) set_PostCommentList(List<de.monticore.ast.Comment> postComments) set_PreComment(int index, de.monticore.ast.Comment precomment) set_PreCommentList(List<de.monticore.ast.Comment> preComments) set_SourcePositionEnd(de.se_rwth.commons.SourcePosition end) set_SourcePositionStart(de.se_rwth.commons.SourcePosition start) setAltList(List<ASTLexAlt> alt) setBlock(ASTActionExt block) setComment(boolean comment) setEndAction(ASTActionExt endAction) setFragment(boolean fragment) setGrammarAnnotation(int index, ASTGrammarAnnotation element) setGrammarAnnotationsList(List<ASTGrammarAnnotation> grammarAnnotations) setInitAction(ASTActionExt initAction) setLexerCommand(String lexerCommand) setLexOption(ASTLexOption lexOption) setParameter(int index, String element) setParameterList(List<String> parameter) setTypeList(List<String> type) setVariable(String variable) intsizeAlt()intintintsizeType()sort_PostComments(Comparator<? super de.monticore.ast.Comment> comparator) sort_PreComments(Comparator<? super de.monticore.ast.Comment> comparator) sortAlt(Comparator<? super ASTLexAlt> comparator) sortGrammarAnnotations(Comparator<? super ASTGrammarAnnotation> comparator) sortParameter(Comparator<? super String> comparator) sortType(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.ASTNodeBuilder
contains_PostComment, contains_PreComment, containsAll_PostComments, containsAll_PreComments, equals_PostComments, equals_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, size_PostComments, size_PreComments, spliterator_PostComments, spliterator_PreComments, stream_PostComments, stream_PreComments, subList_PostComments, subList_PreComments, toArray_PostComments, toArray_PostComments, toArray_PreComments, toArray_PreComments
-
Field Details
-
realBuilder
-
grammarAnnotations
-
name
-
mode
-
lexOption
-
initAction
-
alt
-
lexerCommand
-
parameter
-
endAction
-
variable
-
type
-
block
-
fragment
protected boolean fragment -
comment
protected boolean comment
-
-
Constructor Details
-
ASTLexProdBuilder
public ASTLexProdBuilder()
-
-
Method Details
-
build
-
isValid
public boolean isValid() -
containsGrammarAnnotation
-
containsAllGrammarAnnotations
-
isEmptyGrammarAnnotations
public boolean isEmptyGrammarAnnotations() -
iteratorGrammarAnnotations
-
sizeGrammarAnnotations
public int sizeGrammarAnnotations() -
toArrayGrammarAnnotations
-
toArrayGrammarAnnotations
-
spliteratorGrammarAnnotations
-
streamGrammarAnnotations
-
parallelStreamGrammarAnnotations
-
getGrammarAnnotation
-
indexOfGrammarAnnotation
-
lastIndexOfGrammarAnnotation
-
equalsGrammarAnnotations
-
hashCodeGrammarAnnotations
public int hashCodeGrammarAnnotations() -
listIteratorGrammarAnnotations
-
listIteratorGrammarAnnotations
-
subListGrammarAnnotations
-
getGrammarAnnotationList
-
getName
-
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
-
addGrammarAnnotation
-
addAllGrammarAnnotations
public ASTLexProdBuilder addAllGrammarAnnotations(Collection<? extends ASTGrammarAnnotation> collection) -
removeGrammarAnnotation
-
removeAllGrammarAnnotations
-
retainAllGrammarAnnotations
-
removeIfGrammarAnnotation
-
forEachGrammarAnnotations
-
addGrammarAnnotation
-
addAllGrammarAnnotations
public ASTLexProdBuilder addAllGrammarAnnotations(int index, Collection<? extends ASTGrammarAnnotation> collection) -
removeGrammarAnnotation
-
setGrammarAnnotation
-
replaceAllGrammarAnnotations
-
sortGrammarAnnotations
public ASTLexProdBuilder sortGrammarAnnotations(Comparator<? super ASTGrammarAnnotation> comparator) -
setGrammarAnnotationsList
-
setName
-
setMode
-
setModeAbsent
-
setLexOption
-
setLexOptionAbsent
-
setInitAction
-
setInitActionAbsent
-
clearAlt
-
addAlt
-
addAllAlt
-
removeAlt
-
removeAllAlt
-
retainAllAlt
-
removeIfAlt
-
forEachAlt
-
addAlt
-
addAllAlt
-
removeAlt
-
setAlt
-
replaceAllAlt
-
sortAlt
-
setAltList
-
setLexerCommand
-
setLexerCommandAbsent
-
clearParameter
-
addParameter
-
addAllParameter
-
removeParameter
-
removeAllParameter
-
retainAllParameter
-
removeIfParameter
-
forEachParameter
-
addParameter
-
addAllParameter
-
removeParameter
-
setParameter
-
replaceAllParameter
-
sortParameter
-
setParameterList
-
setEndAction
-
setEndActionAbsent
-
setVariable
-
setVariableAbsent
-
clearType
-
addType
-
addAllType
-
removeType
-
removeAllType
-
retainAllType
-
removeIfType
-
forEachType
-
addType
-
addAllType
-
removeType
-
setType
-
replaceAllType
-
sortType
-
setTypeList
-
setBlock
-
setBlockAbsent
-
setFragment
-
setComment
-
set_SourcePositionEnd
- Overrides:
set_SourcePositionEndin classde.monticore.ast.ASTNodeBuilder<ASTLexProdBuilder>
-
set_SourcePositionEndAbsent
- Overrides:
set_SourcePositionEndAbsentin classde.monticore.ast.ASTNodeBuilder<ASTLexProdBuilder>
-
set_SourcePositionStart
- Overrides:
set_SourcePositionStartin classde.monticore.ast.ASTNodeBuilder<ASTLexProdBuilder>
-
set_SourcePositionStartAbsent
- Overrides:
set_SourcePositionStartAbsentin classde.monticore.ast.ASTNodeBuilder<ASTLexProdBuilder>
-
clear_PreComments
- Overrides:
clear_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTLexProdBuilder>
-
add_PreComment
- Overrides:
add_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTLexProdBuilder>
-
add_PreComment
- Overrides:
add_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTLexProdBuilder>
-
addAll_PreComments
- Overrides:
addAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTLexProdBuilder>
-
addAll_PreComments
public ASTLexProdBuilder addAll_PreComments(int index, Collection<de.monticore.ast.Comment> precomments) - Overrides:
addAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTLexProdBuilder>
-
remove_PreComment
- Overrides:
remove_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTLexProdBuilder>
-
remove_PreComment
- Overrides:
remove_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTLexProdBuilder>
-
removeAll_PreComments
- Overrides:
removeAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTLexProdBuilder>
-
retainAll_PreComments
- Overrides:
retainAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTLexProdBuilder>
-
removeIf_PreComment
- Overrides:
removeIf_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTLexProdBuilder>
-
forEach_PreComments
- Overrides:
forEach_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTLexProdBuilder>
-
replaceAll_PreComments
- Overrides:
replaceAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTLexProdBuilder>
-
sort_PreComments
- Overrides:
sort_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTLexProdBuilder>
-
set_PreCommentList
- Overrides:
set_PreCommentListin classde.monticore.ast.ASTNodeBuilder<ASTLexProdBuilder>
-
set_PreComment
- Overrides:
set_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTLexProdBuilder>
-
clear_PostComments
- Overrides:
clear_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTLexProdBuilder>
-
add_PostComment
- Overrides:
add_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTLexProdBuilder>
-
add_PostComment
- Overrides:
add_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTLexProdBuilder>
-
addAll_PostComments
- Overrides:
addAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTLexProdBuilder>
-
addAll_PostComments
public ASTLexProdBuilder addAll_PostComments(int index, Collection<de.monticore.ast.Comment> postcomments) - Overrides:
addAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTLexProdBuilder>
-
remove_PostComment
- Overrides:
remove_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTLexProdBuilder>
-
remove_PostComment
- Overrides:
remove_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTLexProdBuilder>
-
removeAll_PostComments
- Overrides:
removeAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTLexProdBuilder>
-
retainAll_PostComments
- Overrides:
retainAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTLexProdBuilder>
-
removeIf_PostComment
- Overrides:
removeIf_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTLexProdBuilder>
-
forEach_PostComments
- Overrides:
forEach_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTLexProdBuilder>
-
replaceAll_PostComments
- Overrides:
replaceAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTLexProdBuilder>
-
sort_PostComments
- Overrides:
sort_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTLexProdBuilder>
-
set_PostCommentList
- Overrides:
set_PostCommentListin classde.monticore.ast.ASTNodeBuilder<ASTLexProdBuilder>
-
set_PostComment
- Overrides:
set_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTLexProdBuilder>
-
uncheckedBuild
-