Package de.monticore.tf.odrules._ast
Class ASTODLink
java.lang.Object
de.monticore.ast.ASTCNode
de.monticore.tf.odrules._ast.ASTODLinkTOP
de.monticore.tf.odrules._ast.ASTODLink
- All Implemented Interfaces:
de.monticore.ast.ASTNode,ASTODRulesNode,Cloneable
-
Field Summary
Fields inherited from class de.monticore.tf.odrules._ast.ASTODLinkTOP
attributeCardinality, enclosingScope, leftReferenceName, leftRole, link, name, rightReferenceName, rightRole, stereotypeFields inherited from class de.monticore.ast.ASTCNode
end, postcomments, precomments, start -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedASTODLink(ASTStereotype stereotype, String name, List<ASTMCQualifiedName> leftReferenceNames, String leftRole, String rightRole, ASTCardinality attributeCardinality, List<ASTMCQualifiedName> rightReferenceNames, boolean link) -
Method Summary
Modifier and TypeMethodDescriptiongetStereotypeValue(String name) booleanhasStereotype(String name) booleanhasStereotype(String name, String value) booleanbooleanbooleanisLink()Returns the left role of the according association of this link.Methods inherited from class de.monticore.tf.odrules._ast.ASTODLinkTOP
_construct, accept, accept, accept, accept, accept, accept, accept, accept, accept, accept, accept, accept, accept, accept, accept, accept, accept, accept, accept, accept, accept, accept, accept, accept, accept, accept, addAllLeftReferenceName, addAllLeftReferenceName, addAllRightReferenceName, addAllRightReferenceName, addLeftReferenceName, addLeftReferenceName, addRightReferenceName, addRightReferenceName, clearLeftReferenceName, clearRightReferenceName, containsAllLeftReferenceName, containsAllRightReferenceName, containsLeftReferenceName, containsRightReferenceName, deepClone, deepClone, deepEquals, deepEquals, deepEqualsWithComments, deepEqualsWithComments, equalAttributes, equalsLeftReferenceName, equalsRightReferenceName, equalsWithComments, evaluate, evaluate, forEachLeftReferenceName, forEachRightReferenceName, getAttributeCardinality, getEnclosingScope, getLeftReferenceName, getLeftReferenceNameList, getLeftRole, getName, getRightReferenceName, getRightReferenceNameList, getRightRole, getStereotype, hashCodeLeftReferenceName, hashCodeRightReferenceName, indexOfLeftReferenceName, indexOfRightReferenceName, isEmptyLeftReferenceName, isEmptyRightReferenceName, isPresentLeftRole, isPresentName, isPresentRightRole, isPresentStereotype, iteratorLeftReferenceName, iteratorRightReferenceName, lastIndexOfLeftReferenceName, lastIndexOfRightReferenceName, listIteratorLeftReferenceName, listIteratorLeftReferenceName, listIteratorRightReferenceName, listIteratorRightReferenceName, parallelStreamLeftReferenceName, parallelStreamRightReferenceName, removeAllLeftReferenceName, removeAllRightReferenceName, removeIfLeftReferenceName, removeIfRightReferenceName, removeLeftReferenceName, removeLeftReferenceName, removeRightReferenceName, removeRightReferenceName, replaceAllLeftReferenceName, replaceAllRightReferenceName, retainAllLeftReferenceName, retainAllRightReferenceName, setAttributeCardinality, setEnclosingScope, setEnclosingScope, setEnclosingScope, setEnclosingScope, setEnclosingScope, setEnclosingScope, setEnclosingScope, setEnclosingScope, setEnclosingScope, setEnclosingScope, setEnclosingScope, setEnclosingScope, setEnclosingScope, setEnclosingScope, setEnclosingScope, setEnclosingScope, setEnclosingScope, setEnclosingScope, setEnclosingScope, setEnclosingScope, setEnclosingScope, setEnclosingScope, setEnclosingScope, setEnclosingScope, setEnclosingScope, setLeftReferenceName, setLeftReferenceNameList, setLeftRole, setLeftRoleAbsent, setLink, setName, setNameAbsent, setRightReferenceName, setRightReferenceNameList, setRightRole, setRightRoleAbsent, setStereotype, setStereotypeAbsent, sizeLeftReferenceName, sizeRightReferenceName, sortLeftReferenceName, sortRightReferenceName, spliteratorLeftReferenceName, spliteratorRightReferenceName, streamLeftReferenceName, streamRightReferenceName, subListLeftReferenceName, subListRightReferenceName, toArrayLeftReferenceName, toArrayLeftReferenceName, toArrayRightReferenceName, toArrayRightReferenceNameMethods 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_PreComments
-
Constructor Details
-
ASTODLink
protected ASTODLink() -
ASTODLink
protected ASTODLink(ASTStereotype stereotype, String name, List<ASTMCQualifiedName> leftReferenceNames, String leftRole, String rightRole, ASTCardinality attributeCardinality, List<ASTMCQualifiedName> rightReferenceNames, boolean link)
-
-
Method Details
-
isLink
public boolean isLink()- Overrides:
isLinkin classASTODLinkTOP
-
hasStereotype
-
hasStereotype
-
getStereotypeValue
-
printName
-
printLeftRole
Returns the left role of the according association of this link. Default is the name of the association if leftRole is not set. In case the association is unnamed the type-name of the left reference (in lower-case) is used instead.- Returns:
- left role as String
-
printRightRole
-
isAttributeIterated
public boolean isAttributeIterated() -
isAttributeOptional
public boolean isAttributeOptional()
-