Class Annotation
java.lang.Object
io.lionweb.lioncore.java.model.impl.AbstractClassifierInstance<Concept>
io.lionweb.lioncore.java.model.impl.M3Node<T>
io.lionweb.lioncore.java.language.LanguageEntity<T>
io.lionweb.lioncore.java.language.Classifier<Annotation>
io.lionweb.lioncore.java.language.Annotation
- All Implemented Interfaces:
IKeyed<Annotation>
,INamed
,NamespacedEntity
,NamespaceProvider
,ClassifierInstance<Concept>
,HasFeatureValues
,Node
This represents additional metadata relative to some orthogonal concern.
While an AnnotationInstance implements HasFeatureValues, it is forbidden to hold any Containment links. This is checked during validation.
A DocumentationComment could be specified as an annotation.
- See Also:
-
Ecore equivalent EAnnotation
- MPS equivalent Attribute in documentation
- MPS equivalent NodeAttribute in local MPS
-
Field Summary
Fields inherited from class io.lionweb.lioncore.java.model.impl.AbstractClassifierInstance
annotations
-
Constructor Summary
ConstructorsConstructorDescriptionAnnotation
(Language language, String name) Annotation
(Language language, String name, String id) Annotation
(Language language, String name, String id, String key) Annotation
(LionWebVersion lionWebVersion) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addImplementedInterface
(Interface iface) List<Classifier<?>>
Classifier<?>
The concept of which this Node is an instance.Classifier<?>
An Annotation extending another annotation should not redefine annotates.void
setAnnotates
(Classifier<?> target) void
setExtendedAnnotation
(Annotation extended) Methods inherited from class io.lionweb.lioncore.java.language.Classifier
addFeature, allAncestors, allContainments, allFeatures, allLinks, allProperties, allReferences, combineFeatures, getContainmentByID, getContainmentByMetaPointer, getContainmentByName, getFeatureByName, getFeatures, getLinkByName, getPropertyByID, getPropertyByMetaPointer, getPropertyByName, getReferenceByID, getReferenceByMetaPointer, getReferenceByName, namespaceQualifier, requireContainmentByName, requireReferenceByName
Methods inherited from class io.lionweb.lioncore.java.language.LanguageEntity
getContainer, getKey, getLanguage, getName, setKey, setName, toString
Methods inherited from class io.lionweb.lioncore.java.model.impl.M3Node
addChild, addContainmentMultipleValue, addReferenceMultipleValue, addReferenceValue, equals, getChildren, getContainmentFeature, getContainmentMultipleValue, getContainmentSingleValue, getID, getLionWebVersion, getParent, getPropertyValue, getPropertyValue, getPropertyValue, getReferenceMultipleValue, getReferenceSingleValue, getReferenceValues, getRoot, hashCode, removeChild, setID, setParent, setPropertyValue, setPropertyValue, setReferenceSingleValue, setReferenceValues
Methods inherited from class io.lionweb.lioncore.java.model.impl.AbstractClassifierInstance
addAnnotation, getAnnotations, getAnnotations, removeAnnotation, removeChild, removeReferenceValue, removeReferenceValue
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.lionweb.lioncore.java.model.ClassifierInstance
addAnnotation, getAnnotations, getAnnotations, removeAnnotation
Methods inherited from interface io.lionweb.lioncore.java.model.HasFeatureValues
removeChild, removeReferenceValue, removeReferenceValue
Methods inherited from interface io.lionweb.lioncore.java.language.NamespacedEntity
qualifiedName
Methods inherited from interface io.lionweb.lioncore.java.model.Node
isRoot, thisAndAllDescendants
-
Constructor Details
-
Annotation
-
Annotation
public Annotation() -
Annotation
-
Annotation
-
Annotation
-
-
Method Details
-
getAnnotates
-
getEffectivelyAnnotated
An Annotation extending another annotation should not redefine annotates. So the value is effectively inherited from the super annotation. -
getExtendedAnnotation
-
getImplemented
-
addImplementedInterface
-
setExtendedAnnotation
-
setAnnotates
-
directAncestors
- Specified by:
directAncestors
in classClassifier<Annotation>
-
inheritedFeatures
- Specified by:
inheritedFeatures
in classClassifier<Annotation>
-
getClassifier
Description copied from interface:Node
The concept of which this Node is an instance. The Concept should not be abstract.
-