Class ASTLexAlt
- java.lang.Object
-
- de.monticore.ast.ASTCNode
-
- de.monticore.grammar.grammar._ast.ASTLexAlt
-
- All Implemented Interfaces:
de.monticore.ast.ASTNode,ASTGrammarNode,java.lang.Cloneable
public class ASTLexAlt extends de.monticore.ast.ASTCNode implements ASTGrammarNode
-
-
Field Summary
Fields Modifier and Type Field Description protected IGrammarScopeenclosingScopeprotected java.util.List<ASTLexComponent>lexComponent
-
Constructor Summary
Constructors Modifier Constructor Description protectedASTLexAlt()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ASTLexAlt_construct()voidaccept(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.booleanaddAllLexComponent(int index, java.util.Collection<? extends ASTLexComponent> collection)booleanaddAllLexComponent(java.util.Collection<? extends ASTLexComponent> collection)voidaddLexComponent(int index, ASTLexComponent element)booleanaddLexComponent(ASTLexComponent element)voidclearLexComponent()booleancontainsAllLexComponent(java.util.Collection<?> collection)booleancontainsLexComponent(java.lang.Object element)ASTLexAltdeepClone()ASTLexAltdeepClone(ASTLexAlt result)booleandeepEquals(java.lang.Object o)booleandeepEquals(java.lang.Object o, boolean forceSameOrder)booleandeepEqualsWithComments(java.lang.Object o)booleandeepEqualsWithComments(java.lang.Object o, boolean forceSameOrder)booleanequalAttributes(java.lang.Object o)booleanequalsLexComponent(java.lang.Object o)booleanequalsWithComments(java.lang.Object o)de.monticore.interpreter.Valueevaluate(IGrammarInterpreter interpreter)de.monticore.interpreter.Valueevaluate(de.monticore.interpreter.ModelInterpreter interpreter)voidforEachLexComponent(java.util.function.Consumer<? super ASTLexComponent> action)IGrammarScopegetEnclosingScope()ASTLexComponentgetLexComponent(int index)java.util.List<ASTLexComponent>getLexComponentList()inthashCodeLexComponent()intindexOfLexComponent(java.lang.Object element)booleanisEmptyLexComponent()java.util.Iterator<ASTLexComponent>iteratorLexComponent()intlastIndexOfLexComponent(java.lang.Object element)java.util.ListIterator<ASTLexComponent>listIteratorLexComponent()java.util.ListIterator<ASTLexComponent>listIteratorLexComponent(int index)java.util.stream.Stream<ASTLexComponent>parallelStreamLexComponent()booleanremoveAllLexComponent(java.util.Collection<?> collection)booleanremoveIfLexComponent(java.util.function.Predicate<? super ASTLexComponent> filter)ASTLexComponentremoveLexComponent(int index)booleanremoveLexComponent(java.lang.Object element)voidreplaceAllLexComponent(java.util.function.UnaryOperator<ASTLexComponent> operator)booleanretainAllLexComponent(java.util.Collection<?> collection)voidsetEnclosingScope(IGrammarScope enclosingScope)voidsetEnclosingScope(IMCCommonLiteralsScope enclosingScope)voidsetEnclosingScope(IMCLiteralsBasisScope enclosingScope)voidsetEnclosingScope(IMCBasicsScope enclosingScope)voidsetEnclosingScope(IMCBasicTypesScope enclosingScope)voidsetEnclosingScope(IMCCollectionTypesScope enclosingScope)voidsetEnclosingScope(IMCSimpleGenericTypesScope enclosingScope)ASTLexComponentsetLexComponent(int index, ASTLexComponent element)voidsetLexComponentList(java.util.List<ASTLexComponent> lexComponent)intsizeLexComponent()voidsortLexComponent(java.util.Comparator<? super ASTLexComponent> comparator)java.util.Spliterator<ASTLexComponent>spliteratorLexComponent()java.util.stream.Stream<ASTLexComponent>streamLexComponent()java.util.List<ASTLexComponent>subListLexComponent(int start, int end)java.lang.Object[]toArrayLexComponent()ASTLexComponent[]toArrayLexComponent(ASTLexComponent[] 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_PreComments
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods 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 Detail
-
lexComponent
protected java.util.List<ASTLexComponent> lexComponent
-
enclosingScope
protected IGrammarScope enclosingScope
-
-
Method Detail
-
deepEquals
public boolean deepEquals(java.lang.Object o)
- Specified by:
deepEqualsin interfacede.monticore.ast.ASTNode
-
deepEquals
public boolean deepEquals(java.lang.Object o, boolean forceSameOrder)- Specified by:
deepEqualsin interfacede.monticore.ast.ASTNode
-
deepEqualsWithComments
public boolean deepEqualsWithComments(java.lang.Object o)
- Specified by:
deepEqualsWithCommentsin interfacede.monticore.ast.ASTNode
-
deepEqualsWithComments
public boolean deepEqualsWithComments(java.lang.Object o, boolean forceSameOrder)- Specified by:
deepEqualsWithCommentsin interfacede.monticore.ast.ASTNode
-
equalAttributes
public boolean equalAttributes(java.lang.Object o)
- Specified by:
equalAttributesin interfacede.monticore.ast.ASTNode
-
equalsWithComments
public boolean equalsWithComments(java.lang.Object o)
- Specified by:
equalsWithCommentsin interfacede.monticore.ast.ASTNode
-
deepClone
public ASTLexAlt deepClone()
- Specified by:
deepClonein interfacede.monticore.ast.ASTNode- Specified by:
deepClonein classde.monticore.ast.ASTCNode
-
containsLexComponent
public boolean containsLexComponent(java.lang.Object element)
-
containsAllLexComponent
public boolean containsAllLexComponent(java.util.Collection<?> collection)
-
isEmptyLexComponent
public boolean isEmptyLexComponent()
-
iteratorLexComponent
public java.util.Iterator<ASTLexComponent> iteratorLexComponent()
-
sizeLexComponent
public int sizeLexComponent()
-
toArrayLexComponent
public ASTLexComponent[] toArrayLexComponent(ASTLexComponent[] array)
-
toArrayLexComponent
public java.lang.Object[] toArrayLexComponent()
-
spliteratorLexComponent
public java.util.Spliterator<ASTLexComponent> spliteratorLexComponent()
-
streamLexComponent
public java.util.stream.Stream<ASTLexComponent> streamLexComponent()
-
parallelStreamLexComponent
public java.util.stream.Stream<ASTLexComponent> parallelStreamLexComponent()
-
getLexComponent
public ASTLexComponent getLexComponent(int index)
-
indexOfLexComponent
public int indexOfLexComponent(java.lang.Object element)
-
lastIndexOfLexComponent
public int lastIndexOfLexComponent(java.lang.Object element)
-
equalsLexComponent
public boolean equalsLexComponent(java.lang.Object o)
-
hashCodeLexComponent
public int hashCodeLexComponent()
-
listIteratorLexComponent
public java.util.ListIterator<ASTLexComponent> listIteratorLexComponent()
-
listIteratorLexComponent
public java.util.ListIterator<ASTLexComponent> listIteratorLexComponent(int index)
-
subListLexComponent
public java.util.List<ASTLexComponent> subListLexComponent(int start, int end)
-
getLexComponentList
public java.util.List<ASTLexComponent> getLexComponentList()
-
clearLexComponent
public void clearLexComponent()
-
addLexComponent
public boolean addLexComponent(ASTLexComponent element)
-
addAllLexComponent
public boolean addAllLexComponent(java.util.Collection<? extends ASTLexComponent> collection)
-
removeLexComponent
public boolean removeLexComponent(java.lang.Object element)
-
removeAllLexComponent
public boolean removeAllLexComponent(java.util.Collection<?> collection)
-
retainAllLexComponent
public boolean retainAllLexComponent(java.util.Collection<?> collection)
-
removeIfLexComponent
public boolean removeIfLexComponent(java.util.function.Predicate<? super ASTLexComponent> filter)
-
forEachLexComponent
public void forEachLexComponent(java.util.function.Consumer<? super ASTLexComponent> action)
-
addLexComponent
public void addLexComponent(int index, ASTLexComponent element)
-
addAllLexComponent
public boolean addAllLexComponent(int index, java.util.Collection<? extends ASTLexComponent> collection)
-
removeLexComponent
public ASTLexComponent removeLexComponent(int index)
-
setLexComponent
public ASTLexComponent setLexComponent(int index, ASTLexComponent element)
-
replaceAllLexComponent
public void replaceAllLexComponent(java.util.function.UnaryOperator<ASTLexComponent> operator)
-
sortLexComponent
public void sortLexComponent(java.util.Comparator<? super ASTLexComponent> comparator)
-
setLexComponentList
public void setLexComponentList(java.util.List<ASTLexComponent> lexComponent)
-
accept
public void accept(GrammarTraverser visitor)
Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.- Specified by:
acceptin interfaceASTGrammarNode- Parameters:
visitor- the visitor to dispatch to
-
accept
public void accept(MCCommonLiteralsTraverser visitor)
Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.- Parameters:
visitor- the visitor to dispatch to
-
accept
public void accept(MCSimpleGenericTypesTraverser visitor)
Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.- Parameters:
visitor- the visitor to dispatch to
-
accept
public void accept(MCBasicsTraverser visitor)
Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.- Parameters:
visitor- the visitor to dispatch to
-
accept
public void accept(MCLiteralsBasisTraverser visitor)
Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.- Parameters:
visitor- the visitor to dispatch to
-
accept
public void accept(MCCollectionTypesTraverser visitor)
Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.- Parameters:
visitor- the visitor to dispatch to
-
accept
public void accept(MCBasicTypesTraverser visitor)
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
protected ASTLexAlt _construct()
-
getEnclosingScope
public IGrammarScope getEnclosingScope()
- Specified by:
getEnclosingScopein interfacede.monticore.ast.ASTNode
-
setEnclosingScope
public void setEnclosingScope(IGrammarScope enclosingScope)
-
setEnclosingScope
public void setEnclosingScope(IMCCommonLiteralsScope enclosingScope)
-
setEnclosingScope
public void setEnclosingScope(IMCSimpleGenericTypesScope enclosingScope)
-
setEnclosingScope
public void setEnclosingScope(IMCBasicsScope enclosingScope)
-
setEnclosingScope
public void setEnclosingScope(IMCLiteralsBasisScope enclosingScope)
-
setEnclosingScope
public void setEnclosingScope(IMCCollectionTypesScope enclosingScope)
-
setEnclosingScope
public void setEnclosingScope(IMCBasicTypesScope enclosingScope)
-
evaluate
public de.monticore.interpreter.Value evaluate(IGrammarInterpreter interpreter)
-
evaluate
public de.monticore.interpreter.Value evaluate(de.monticore.interpreter.ModelInterpreter interpreter)
- Specified by:
evaluatein interfacede.monticore.ast.ASTNode
-
-