Class TypeReferenceExtension
java.lang.Object
tools.mdsd.jamopp.model.java.extensions.types.TypeReferenceExtension
-
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getBoundTarget
(TypeReference typeReference, Reference reference) Returns the type referenced by thisTypeReference
considering all concrete subclasses ofTypeReference
used by the Java metamodel.static ClassifierReference
getPureClassifierReference
(TypeReference typeReference) Extracts the (possibly nested) classifier reference (if any) from this type references.static Type
getTarget
(TypeReference typeReference) Returns the type referenced by thisTypeReference
considering all concrete subclasses ofTypeReference
used by the Java metamodel.static void
setTarget
(TypeReference typeReference, Classifier type) Sets the type targeted by this type reference
-
Method Details
-
getTarget
Returns the type referenced by thisTypeReference
considering all concrete subclasses ofTypeReference
used by the Java metamodel.- Returns:
- the referenced type
-
setTarget
Sets the type targeted by this type reference- Parameters:
type
- the new type to set as target.
-
getBoundTarget
Returns the type referenced by thisTypeReference
considering all concrete subclasses ofTypeReference
used by the Java metamodel. If type parameters are bound in the given reference, the bound type will be returned instead of the parameter.- Parameters:
reference
- .- Returns:
- the referenced type.
-
getPureClassifierReference
Extracts the (possibly nested) classifier reference (if any) from this type references.- Returns:
-