Class ASTMatchingObject
- java.lang.Object
-
- de.monticore.ast.ASTCNode
-
- de.monticore.tf.odrulegeneration._ast.ASTMatchingObject
-
- All Implemented Interfaces:
de.monticore.ast.ASTNode,ASTODRuleGenerationNode,java.lang.Cloneable
public class ASTMatchingObject extends de.monticore.ast.ASTCNode implements ASTODRuleGenerationNode
-
-
Field Summary
Fields Modifier and Type Field Description protected IODRuleGenerationScopeenclosingScopeprotected java.util.List<java.lang.String>innerLinkObjectNamesprotected booleanlHSObjectprotected java.util.Optional<java.lang.String>listimpltypeprotected booleanlistObjectprotected java.util.Optional<java.lang.String>listtypeprotected booleannotObjectprotected java.lang.StringobjectNameprotected booleanoptObjectprotected java.lang.Stringtype
-
Constructor Summary
Constructors Modifier Constructor Description protectedASTMatchingObject()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ASTMatchingObject_construct()voidaccept(MCBasicsTraverser visitor)Entry point for the Visitor pattern.voidaccept(ODRuleGenerationTraverser 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(MCFullGenericTypesTraverser 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.booleanaddAllInnerLinkObjectNames(int index, java.util.Collection<? extends java.lang.String> collection)booleanaddAllInnerLinkObjectNames(java.util.Collection<? extends java.lang.String> collection)voidaddInnerLinkObjectNames(int index, java.lang.String element)booleanaddInnerLinkObjectNames(java.lang.String element)voidclearInnerLinkObjectNames()booleancontainsAllInnerLinkObjectNames(java.util.Collection<?> collection)booleancontainsInnerLinkObjectNames(java.lang.Object element)ASTMatchingObjectdeepClone()ASTMatchingObjectdeepClone(ASTMatchingObject 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)booleanequalsInnerLinkObjectNames(java.lang.Object o)booleanequalsWithComments(java.lang.Object o)de.monticore.interpreter.Valueevaluate(de.monticore.interpreter.ModelInterpreter interpreter)de.monticore.interpreter.Valueevaluate(IODRuleGenerationInterpreter interpreter)voidforEachInnerLinkObjectNames(java.util.function.Consumer<? super java.lang.String> action)IODRuleGenerationScopegetEnclosingScope()java.lang.StringgetInnerLinkObjectNames(int index)java.util.List<java.lang.String>getInnerLinkObjectNamesList()java.lang.StringgetListimpltype()java.lang.StringgetListtype()java.lang.StringgetObjectName()java.lang.StringgetType()inthashCodeInnerLinkObjectNames()intindexOfInnerLinkObjectNames(java.lang.Object element)booleanisEmptyInnerLinkObjectNames()booleanisLHSObject()booleanisListObject()booleanisNotObject()booleanisOptObject()booleanisPresentListimpltype()booleanisPresentListtype()java.util.Iterator<java.lang.String>iteratorInnerLinkObjectNames()intlastIndexOfInnerLinkObjectNames(java.lang.Object element)java.util.ListIterator<java.lang.String>listIteratorInnerLinkObjectNames()java.util.ListIterator<java.lang.String>listIteratorInnerLinkObjectNames(int index)java.util.stream.Stream<java.lang.String>parallelStreamInnerLinkObjectNames()booleanremoveAllInnerLinkObjectNames(java.util.Collection<?> collection)booleanremoveIfInnerLinkObjectNames(java.util.function.Predicate<? super java.lang.String> filter)java.lang.StringremoveInnerLinkObjectNames(int index)booleanremoveInnerLinkObjectNames(java.lang.Object element)voidreplaceAllInnerLinkObjectNames(java.util.function.UnaryOperator<java.lang.String> operator)booleanretainAllInnerLinkObjectNames(java.util.Collection<?> collection)voidsetEnclosingScope(IMCBasicsScope enclosingScope)voidsetEnclosingScope(IODRuleGenerationScope enclosingScope)voidsetEnclosingScope(IMCBasicTypesScope enclosingScope)voidsetEnclosingScope(IMCCollectionTypesScope enclosingScope)voidsetEnclosingScope(IMCFullGenericTypesScope enclosingScope)voidsetEnclosingScope(IMCSimpleGenericTypesScope enclosingScope)java.lang.StringsetInnerLinkObjectNames(int index, java.lang.String element)voidsetInnerLinkObjectNamesList(java.util.List<java.lang.String> innerLinkObjectNames)voidsetLHSObject(boolean lHSObject)voidsetListimpltype(java.lang.String listimpltype)voidsetListimpltypeAbsent()voidsetListObject(boolean listObject)voidsetListtype(java.lang.String listtype)voidsetListtypeAbsent()voidsetNotObject(boolean notObject)voidsetObjectName(java.lang.String objectName)voidsetOptObject(boolean optObject)voidsetType(java.lang.String type)intsizeInnerLinkObjectNames()voidsortInnerLinkObjectNames(java.util.Comparator<? super java.lang.String> comparator)java.util.Spliterator<java.lang.String>spliteratorInnerLinkObjectNames()java.util.stream.Stream<java.lang.String>streamInnerLinkObjectNames()java.util.List<java.lang.String>subListInnerLinkObjectNames(int start, int end)java.lang.Object[]toArrayInnerLinkObjectNames()java.lang.String[]toArrayInnerLinkObjectNames(java.lang.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_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
-
objectName
protected java.lang.String objectName
-
type
protected java.lang.String type
-
listtype
protected java.util.Optional<java.lang.String> listtype
-
listimpltype
protected java.util.Optional<java.lang.String> listimpltype
-
innerLinkObjectNames
protected java.util.List<java.lang.String> innerLinkObjectNames
-
lHSObject
protected boolean lHSObject
-
notObject
protected boolean notObject
-
optObject
protected boolean optObject
-
listObject
protected boolean listObject
-
enclosingScope
protected IODRuleGenerationScope 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 ASTMatchingObject deepClone()
- Specified by:
deepClonein interfacede.monticore.ast.ASTNode- Specified by:
deepClonein classde.monticore.ast.ASTCNode
-
deepClone
public ASTMatchingObject deepClone(ASTMatchingObject result)
-
getObjectName
public java.lang.String getObjectName()
-
getType
public java.lang.String getType()
-
getListtype
public java.lang.String getListtype()
-
isPresentListtype
public boolean isPresentListtype()
-
getListimpltype
public java.lang.String getListimpltype()
-
isPresentListimpltype
public boolean isPresentListimpltype()
-
containsInnerLinkObjectNames
public boolean containsInnerLinkObjectNames(java.lang.Object element)
-
containsAllInnerLinkObjectNames
public boolean containsAllInnerLinkObjectNames(java.util.Collection<?> collection)
-
isEmptyInnerLinkObjectNames
public boolean isEmptyInnerLinkObjectNames()
-
iteratorInnerLinkObjectNames
public java.util.Iterator<java.lang.String> iteratorInnerLinkObjectNames()
-
sizeInnerLinkObjectNames
public int sizeInnerLinkObjectNames()
-
toArrayInnerLinkObjectNames
public java.lang.String[] toArrayInnerLinkObjectNames(java.lang.String[] array)
-
toArrayInnerLinkObjectNames
public java.lang.Object[] toArrayInnerLinkObjectNames()
-
spliteratorInnerLinkObjectNames
public java.util.Spliterator<java.lang.String> spliteratorInnerLinkObjectNames()
-
streamInnerLinkObjectNames
public java.util.stream.Stream<java.lang.String> streamInnerLinkObjectNames()
-
parallelStreamInnerLinkObjectNames
public java.util.stream.Stream<java.lang.String> parallelStreamInnerLinkObjectNames()
-
getInnerLinkObjectNames
public java.lang.String getInnerLinkObjectNames(int index)
-
indexOfInnerLinkObjectNames
public int indexOfInnerLinkObjectNames(java.lang.Object element)
-
lastIndexOfInnerLinkObjectNames
public int lastIndexOfInnerLinkObjectNames(java.lang.Object element)
-
equalsInnerLinkObjectNames
public boolean equalsInnerLinkObjectNames(java.lang.Object o)
-
hashCodeInnerLinkObjectNames
public int hashCodeInnerLinkObjectNames()
-
listIteratorInnerLinkObjectNames
public java.util.ListIterator<java.lang.String> listIteratorInnerLinkObjectNames()
-
listIteratorInnerLinkObjectNames
public java.util.ListIterator<java.lang.String> listIteratorInnerLinkObjectNames(int index)
-
subListInnerLinkObjectNames
public java.util.List<java.lang.String> subListInnerLinkObjectNames(int start, int end)
-
getInnerLinkObjectNamesList
public java.util.List<java.lang.String> getInnerLinkObjectNamesList()
-
isLHSObject
public boolean isLHSObject()
-
isNotObject
public boolean isNotObject()
-
isOptObject
public boolean isOptObject()
-
isListObject
public boolean isListObject()
-
setObjectName
public void setObjectName(java.lang.String objectName)
-
setType
public void setType(java.lang.String type)
-
setListtype
public void setListtype(java.lang.String listtype)
-
setListtypeAbsent
public void setListtypeAbsent()
-
setListimpltype
public void setListimpltype(java.lang.String listimpltype)
-
setListimpltypeAbsent
public void setListimpltypeAbsent()
-
clearInnerLinkObjectNames
public void clearInnerLinkObjectNames()
-
addInnerLinkObjectNames
public boolean addInnerLinkObjectNames(java.lang.String element)
-
addAllInnerLinkObjectNames
public boolean addAllInnerLinkObjectNames(java.util.Collection<? extends java.lang.String> collection)
-
removeInnerLinkObjectNames
public boolean removeInnerLinkObjectNames(java.lang.Object element)
-
removeAllInnerLinkObjectNames
public boolean removeAllInnerLinkObjectNames(java.util.Collection<?> collection)
-
retainAllInnerLinkObjectNames
public boolean retainAllInnerLinkObjectNames(java.util.Collection<?> collection)
-
removeIfInnerLinkObjectNames
public boolean removeIfInnerLinkObjectNames(java.util.function.Predicate<? super java.lang.String> filter)
-
forEachInnerLinkObjectNames
public void forEachInnerLinkObjectNames(java.util.function.Consumer<? super java.lang.String> action)
-
addInnerLinkObjectNames
public void addInnerLinkObjectNames(int index, java.lang.String element)
-
addAllInnerLinkObjectNames
public boolean addAllInnerLinkObjectNames(int index, java.util.Collection<? extends java.lang.String> collection)
-
removeInnerLinkObjectNames
public java.lang.String removeInnerLinkObjectNames(int index)
-
setInnerLinkObjectNames
public java.lang.String setInnerLinkObjectNames(int index, java.lang.String element)
-
replaceAllInnerLinkObjectNames
public void replaceAllInnerLinkObjectNames(java.util.function.UnaryOperator<java.lang.String> operator)
-
sortInnerLinkObjectNames
public void sortInnerLinkObjectNames(java.util.Comparator<? super java.lang.String> comparator)
-
setInnerLinkObjectNamesList
public void setInnerLinkObjectNamesList(java.util.List<java.lang.String> innerLinkObjectNames)
-
setLHSObject
public void setLHSObject(boolean lHSObject)
-
setNotObject
public void setNotObject(boolean notObject)
-
setOptObject
public void setOptObject(boolean optObject)
-
setListObject
public void setListObject(boolean listObject)
-
accept
public void accept(ODRuleGenerationTraverser visitor)
Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.- Specified by:
acceptin interfaceASTODRuleGenerationNode- Parameters:
visitor- the visitor to dispatch to
-
accept
public void accept(MCFullGenericTypesTraverser 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(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(MCBasicsTraverser 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 ASTMatchingObject _construct()
-
getEnclosingScope
public IODRuleGenerationScope getEnclosingScope()
- Specified by:
getEnclosingScopein interfacede.monticore.ast.ASTNode
-
setEnclosingScope
public void setEnclosingScope(IODRuleGenerationScope enclosingScope)
-
setEnclosingScope
public void setEnclosingScope(IMCFullGenericTypesScope enclosingScope)
-
setEnclosingScope
public void setEnclosingScope(IMCSimpleGenericTypesScope enclosingScope)
-
setEnclosingScope
public void setEnclosingScope(IMCCollectionTypesScope enclosingScope)
-
setEnclosingScope
public void setEnclosingScope(IMCBasicTypesScope enclosingScope)
-
setEnclosingScope
public void setEnclosingScope(IMCBasicsScope enclosingScope)
-
evaluate
public de.monticore.interpreter.Value evaluate(IODRuleGenerationInterpreter interpreter)
-
evaluate
public de.monticore.interpreter.Value evaluate(de.monticore.interpreter.ModelInterpreter interpreter)
- Specified by:
evaluatein interfacede.monticore.ast.ASTNode
-
-