public abstract class ExecutableStandardLibrary extends AbstractExecutorElement implements CompleteEnvironment, StandardLibrary.StandardLibraryExtension
StandardLibrary.StandardLibraryExtension
Constructor and Description |
---|
ExecutableStandardLibrary() |
Modifier and Type | Method and Description |
---|---|
protected java.util.HashMap<java.lang.Object,StatusCodes.Severity> |
createValidationKey2severityMap() |
java.lang.Iterable<? extends CompletePackage> |
getAllCompletePackages() |
Class |
getBagType()
Obtains the generic instance of the BagType metatype, named
Bag(T).
|
CollectionType |
getBagType(Type elementType,
boolean isNullFree,
IntegerValue lower,
UnlimitedNaturalValue upper)
Return the instance of the Bag metatype whose elements are of elementType.
|
CollectionType |
getBagType(Type elementType,
IntegerValue lower,
UnlimitedNaturalValue upper) |
Class |
getBooleanType()
Obtains the instance of the PrimitiveType metatype, named
Boolean.
|
Class |
getCollectionType()
Obtains the generic instance of the CollectionType metatype, named
Collection(T).
|
CollectionType |
getCollectionType(Class genericType,
Type elementType,
boolean isNullFree,
IntegerValue lower,
UnlimitedNaturalValue upper)
Return the specialized collection type for the containerType for elementType.
|
CollectionType |
getCollectionType(Class genericType,
Type elementType,
IntegerValue lower,
UnlimitedNaturalValue upper) |
Class |
getIntegerType()
Obtains the instance of the PrimitiveType metatype, named
Integer.
|
LambdaType |
getLambdaType(java.lang.String typeName,
Type contextType,
java.util.List<? extends Type> parameterTypes,
Type resultType,
TemplateParameterSubstitutions bindings) |
Class |
getMapType() |
MapType |
getMapType(Class genericType,
Type keyType,
Type valueType) |
Class |
getMetaclass(Type classType)
Return the instance of the Metaclass metatype whose class is classType.
|
Type |
getMetaType(Type instanceType)
Returns the meta-type of a given type.
|
Package |
getNestedPackage(Package parentPackage,
java.lang.String name) |
Class |
getNestedType(Package parentPackage,
java.lang.String name) |
Class |
getOclAnyType()
Obtains the single instance of the AnyType metatype, named
OclAny.
|
Class |
getOclComparableType()
Obtains the single instance of the OclComparable metatype, named
OclAny.
|
Class |
getOclElementType()
Obtains the single instance of the Class metatype, named
OclElement.
|
Class |
getOclEnumerationType()
Obtains the single instance of the Class metatype, named
OclEnumeration.
|
Class |
getOclInvalidType()
Obtains the single instance of the InvalidType metatype, named
OclInvalid.
|
Class |
getOclMessageType()
Obtains the generic instance of the MessageType metatype, named
OclMessage.
|
Class |
getOclSelfType()
Obtains the single instance of the OclSelf pseudo-metatype, named
OclSelf.
|
Class |
getOclStereotypeType()
Obtains the single instance of the OclStereotype metatype, named
OclStereotype.
|
Class |
getOclSummableType()
Obtains the single instance of the OclSummable metatype, named
OclAny.
|
Class |
getOclTupleType()
Obtains the single instance of the OclTupleType metatype, named
OclVoid.
|
Class |
getOclVoidType()
Obtains the single instance of the VoidType metatype, named
OclVoid.
|
Element |
getOperationTemplateParameter(Operation anOperation,
int index) |
Class |
getOrderedCollectionType()
Obtains the generic instance of the OrderedCollection metatype, named
OrderedCollection(T).
|
Class |
getOrderedSetType()
Obtains the generic instance of the OrderedSetType metatype, named
OrderedSet(T).
|
CollectionType |
getOrderedSetType(Type elementType,
boolean isNullFree,
IntegerValue lower,
UnlimitedNaturalValue upper)
Return the instance of the OrderedSet metatype whose elements are of elementType.
|
CollectionType |
getOrderedSetType(Type elementType,
IntegerValue lower,
UnlimitedNaturalValue upper) |
CompleteModel |
getOwnedCompleteModel()
Returns the value of the 'Owned Complete Model' containment reference.
|
StandardLibrary |
getOwnedStandardLibrary()
Returns the value of the 'Owned Standard Library' containment reference.
|
CompleteEnvironment |
getOwningCompleteEnvironment()
Returns the value of the 'Owning Complete Environment' container reference.
|
Package |
getPackage()
Obtains the package containing the library types
|
Class |
getPivotType(java.lang.String className) |
Type |
getPrimitiveType(PrimitiveTypeId typeId) |
Class |
getRealType()
Obtains the instance of the PrimitiveType metatype, named
Real.
|
Package |
getRootPackage(java.lang.String name) |
Class |
getSequenceType()
Obtains the generic instance of the SequenceType metatype, named
Sequence(T).
|
CollectionType |
getSequenceType(Type elementType,
boolean isNullFree,
IntegerValue lower,
UnlimitedNaturalValue upper)
Return the instance of the Sequence metatype whose elements are of elementType.
|
CollectionType |
getSequenceType(Type elementType,
IntegerValue lower,
UnlimitedNaturalValue upper) |
Class |
getSetType()
Obtains the generic instance of the SetType metatype, named
Set(T).
|
CollectionType |
getSetType(Type elementType,
boolean isNullFree,
IntegerValue lower,
UnlimitedNaturalValue upper)
Return the instance of the Set metatype whose elements are of elementType.
|
CollectionType |
getSetType(Type elementType,
IntegerValue lower,
UnlimitedNaturalValue upper) |
StatusCodes.Severity |
getSeverity(java.lang.Object validationKey) |
Type |
getSpecializedType(Type type,
TemplateParameterSubstitutions substitutions) |
Class |
getStringType()
Obtains the instance of the PrimitiveType metatype, named
String.
|
Element |
getTemplateParameter(TemplateParameterId id,
Element context) |
TupleType |
getTupleType(java.lang.String typeName,
java.util.Collection<? extends TypedElement> parts,
TemplateParameterSubstitutions bindings) |
TupleType |
getTupleType(TupleTypeId typeId) |
Class |
getUniqueCollectionType()
Obtains the generic instance of the UniqueCollection metatype, named
Set(T).
|
Class |
getUnlimitedNaturalType()
Obtains the instance of the PrimitiveType metatype,
named UnlimitedNatural.
|
void |
resetSeverities() |
void |
setOwnedCompleteModel(CompleteModel value)
Sets the value of the '
Owned Complete Model ' containment reference. |
void |
setOwnedStandardLibrary(StandardLibrary value)
Sets the value of the '
Owned Standard Library ' containment reference. |
void |
setOwningCompleteEnvironment(CompleteEnvironment value)
Sets the value of the '
Owning Complete Environment ' container reference. |
protected <K,V> V |
weakGet(java.util.Map<K,java.lang.ref.WeakReference<V>> map,
K key)
Return the map.get(key).get() entry if there is one or null if not, removing any stale
entry that may be encountered.
|
accept, allOwnedElements, eAdapters, eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eDeliver, eGet, eGet, eInvoke, eIsProxy, eIsSet, eNotify, eResource, eSet, eSetDeliver, eUnset, getAnnotatingComments, getESObject, getETarget, getOwnedAnnotations, getOwnedComments, getOwnedExtensions, getValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getClassType, getEnumerationType, getInheritance, getNsURIPackage, getOclInvalidOperation, getOclType
accept, allOwnedElements, getAnnotatingComments, getESObject, getETarget, getOwnedAnnotations, getOwnedComments, getOwnedExtensions, getValue
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
@NonNull protected java.util.HashMap<java.lang.Object,StatusCodes.Severity> createValidationKey2severityMap()
@NonNull public java.lang.Iterable<? extends CompletePackage> getAllCompletePackages()
getAllCompletePackages
in interface StandardLibrary
public Class getBagType()
StandardLibrary
getBagType
in interface StandardLibrary
@NonNull public CollectionType getBagType(@NonNull Type elementType, @Nullable IntegerValue lower, @Nullable UnlimitedNaturalValue upper)
getBagType
in interface CompleteEnvironment
@NonNull public CollectionType getBagType(@NonNull Type elementType, boolean isNullFree, @Nullable IntegerValue lower, @Nullable UnlimitedNaturalValue upper)
CompleteEnvironment
getBagType
in interface CompleteEnvironment
public Class getBooleanType()
StandardLibrary
getBooleanType
in interface StandardLibrary
public Class getCollectionType()
StandardLibrary
getCollectionType
in interface StandardLibrary
@NonNull public CollectionType getCollectionType(Class genericType, @NonNull Type elementType, @Nullable IntegerValue lower, @Nullable UnlimitedNaturalValue upper)
getCollectionType
in interface CompleteEnvironment
getCollectionType
in interface StandardLibrary
@NonNull public CollectionType getCollectionType(Class genericType, @NonNull Type elementType, boolean isNullFree, @Nullable IntegerValue lower, @Nullable UnlimitedNaturalValue upper)
CompleteEnvironment
getCollectionType
in interface CompleteEnvironment
getCollectionType
in interface StandardLibrary
public Class getIntegerType()
StandardLibrary
getIntegerType
in interface StandardLibrary
@NonNull public LambdaType getLambdaType(@NonNull java.lang.String typeName, @NonNull Type contextType, @NonNull java.util.List<? extends Type> parameterTypes, @NonNull Type resultType, @Nullable TemplateParameterSubstitutions bindings)
getLambdaType
in interface CompleteEnvironment
public Class getMapType()
getMapType
in interface StandardLibrary
@NonNull public MapType getMapType(Class genericType, @NonNull Type keyType, @NonNull Type valueType)
getMapType
in interface CompleteEnvironment
getMapType
in interface StandardLibrary
public Class getMetaclass(@NonNull Type classType)
StandardLibrary
getMetaclass
in interface StandardLibrary
public Type getMetaType(@NonNull Type instanceType)
StandardLibrary
getMetaType
in interface StandardLibrary
public Package getNestedPackage(Package parentPackage, @NonNull java.lang.String name)
getNestedPackage
in interface CompleteEnvironment
public Class getNestedType(Package parentPackage, @NonNull java.lang.String name)
getNestedType
in interface CompleteEnvironment
public Class getOclAnyType()
StandardLibrary
getOclAnyType
in interface StandardLibrary
public Class getOclComparableType()
StandardLibrary
getOclComparableType
in interface StandardLibrary
public Class getOclElementType()
StandardLibrary
getOclElementType
in interface StandardLibrary
public Class getOclEnumerationType()
StandardLibrary.StandardLibraryExtension
getOclEnumerationType
in interface StandardLibrary.StandardLibraryExtension
public Class getOclInvalidType()
StandardLibrary
getOclInvalidType
in interface StandardLibrary
public Class getOclMessageType()
StandardLibrary
getOclMessageType
in interface StandardLibrary
public Class getOclSelfType()
StandardLibrary
getOclSelfType
in interface StandardLibrary
@NonNull public Class getOclStereotypeType()
StandardLibrary
getOclStereotypeType
in interface StandardLibrary
public Class getOclSummableType()
StandardLibrary
getOclSummableType
in interface StandardLibrary
public Class getOclTupleType()
StandardLibrary
getOclTupleType
in interface StandardLibrary
public Class getOclVoidType()
StandardLibrary
getOclVoidType
in interface StandardLibrary
@Nullable public Element getOperationTemplateParameter(@NonNull Operation anOperation, int index)
getOperationTemplateParameter
in interface StandardLibrary
public Class getOrderedCollectionType()
StandardLibrary
getOrderedCollectionType
in interface StandardLibrary
public Class getOrderedSetType()
StandardLibrary
getOrderedSetType
in interface StandardLibrary
@NonNull public CollectionType getOrderedSetType(@NonNull Type elementType, @Nullable IntegerValue lower, @Nullable UnlimitedNaturalValue upper)
getOrderedSetType
in interface CompleteEnvironment
@NonNull public CollectionType getOrderedSetType(@NonNull Type elementType, boolean isNullFree, @Nullable IntegerValue lower, @Nullable UnlimitedNaturalValue upper)
CompleteEnvironment
getOrderedSetType
in interface CompleteEnvironment
@NonNull public CompleteModel getOwnedCompleteModel()
CompleteEnvironment
Owning Complete Environment
'.
If the meaning of the 'Owned Complete Model' containment reference isn't clear, there really should be more of a description here...
getOwnedCompleteModel
in interface CompleteEnvironment
CompleteEnvironment.setOwnedCompleteModel(CompleteModel)
,
PivotPackage.getCompleteEnvironment_OwnedCompleteModel()
,
CompleteModel.getOwningCompleteEnvironment()
@NonNull public StandardLibrary getOwnedStandardLibrary()
CompleteEnvironment
Owning Complete Environment
'.
If the meaning of the 'Owned Standard Library' containment reference isn't clear, there really should be more of a description here...
getOwnedStandardLibrary
in interface CompleteEnvironment
CompleteEnvironment.setOwnedStandardLibrary(StandardLibrary)
,
PivotPackage.getCompleteEnvironment_OwnedStandardLibrary()
,
StandardLibrary.getOwningCompleteEnvironment()
public CompleteEnvironment getOwningCompleteEnvironment()
StandardLibrary
Owned Standard Library
'.
If the meaning of the 'Owning Complete Environment' container reference isn't clear, there really should be more of a description here...
getOwningCompleteEnvironment
in interface StandardLibrary
StandardLibrary.setOwningCompleteEnvironment(CompleteEnvironment)
,
PivotPackage.getStandardLibrary_OwningCompleteEnvironment()
,
CompleteEnvironment.getOwnedStandardLibrary()
public Package getPackage()
StandardLibrary
getPackage
in interface StandardLibrary
public Class getPivotType(@NonNull java.lang.String className)
@Nullable public Type getPrimitiveType(@NonNull PrimitiveTypeId typeId)
getPrimitiveType
in interface StandardLibrary
public Class getRealType()
StandardLibrary
getRealType
in interface StandardLibrary
public Package getRootPackage(@NonNull java.lang.String name)
getRootPackage
in interface StandardLibrary
public Class getSequenceType()
StandardLibrary
getSequenceType
in interface StandardLibrary
@NonNull public CollectionType getSequenceType(@NonNull Type elementType, @Nullable IntegerValue lower, @Nullable UnlimitedNaturalValue upper)
getSequenceType
in interface CompleteEnvironment
@NonNull public CollectionType getSequenceType(@NonNull Type elementType, boolean isNullFree, @Nullable IntegerValue lower, @Nullable UnlimitedNaturalValue upper)
CompleteEnvironment
getSequenceType
in interface CompleteEnvironment
public Class getSetType()
StandardLibrary
getSetType
in interface StandardLibrary
@NonNull public CollectionType getSetType(@NonNull Type elementType, @Nullable IntegerValue lower, @Nullable UnlimitedNaturalValue upper)
getSetType
in interface CompleteEnvironment
@NonNull public CollectionType getSetType(@NonNull Type elementType, boolean isNullFree, @Nullable IntegerValue lower, @Nullable UnlimitedNaturalValue upper)
CompleteEnvironment
getSetType
in interface CompleteEnvironment
public StatusCodes.Severity getSeverity(@Nullable java.lang.Object validationKey)
@NonNull public Type getSpecializedType(@NonNull Type type, @Nullable TemplateParameterSubstitutions substitutions)
getSpecializedType
in interface CompleteEnvironment
public Class getStringType()
StandardLibrary
getStringType
in interface StandardLibrary
@NonNull public Element getTemplateParameter(@NonNull TemplateParameterId id, Element context)
@NonNull public TupleType getTupleType(@NonNull TupleTypeId typeId)
@NonNull public TupleType getTupleType(@NonNull java.lang.String typeName, @NonNull java.util.Collection<? extends TypedElement> parts, @Nullable TemplateParameterSubstitutions bindings)
getTupleType
in interface CompleteEnvironment
public Class getUniqueCollectionType()
StandardLibrary
getUniqueCollectionType
in interface StandardLibrary
public Class getUnlimitedNaturalType()
StandardLibrary
getUnlimitedNaturalType
in interface StandardLibrary
public void resetSeverities()
public void setOwnedCompleteModel(CompleteModel value)
CompleteEnvironment
Owned Complete Model
' containment reference.
setOwnedCompleteModel
in interface CompleteEnvironment
value
- the new value of the 'Owned Complete Model' containment reference.CompleteEnvironment.getOwnedCompleteModel()
public void setOwnedStandardLibrary(StandardLibrary value)
CompleteEnvironment
Owned Standard Library
' containment reference.
setOwnedStandardLibrary
in interface CompleteEnvironment
value
- the new value of the 'Owned Standard Library' containment reference.CompleteEnvironment.getOwnedStandardLibrary()
public void setOwningCompleteEnvironment(CompleteEnvironment value)
StandardLibrary
Owning Complete Environment
' container reference.
setOwningCompleteEnvironment
in interface StandardLibrary
value
- the new value of the 'Owning Complete Environment' container reference.StandardLibrary.getOwningCompleteEnvironment()
@Nullable protected <K,V> V weakGet(@NonNull java.util.Map<K,java.lang.ref.WeakReference<V>> map, @NonNull K key)