Class AnyType
java.lang.Object
net.ssehub.easy.varModel.model.datatypes.BasisDatatype
net.ssehub.easy.varModel.model.datatypes.AnyType
- All Implemented Interfaces:
IDatatype,IDatatypeVisitable
The AnyType is the "Object" of OCL, a type to which all types are compatible.
We need this type to specify generic operations (return values)
- Author:
- Holger Eichelberger
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Operationstatic final Operation(package private) static final DelegatingType(package private) static final DelegatingType(package private) static final DelegatingType(package private) static final DelegatingTypestatic final Operationstatic final Operationstatic final Operationstatic final Operation(package private) static final DelegatingTypestatic final Operationstatic final Operation(package private) static final DelegatingTypestatic final Operation(package private) static final DelegatingType(package private) static final DelegatingTypestatic final IDatatype -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(IDatatypeVisitor visitor) Accepts a specialized visitor for creating a textual representation of the identity of this type.booleanisAssignableFrom(IDatatype type) Determines if the data type represented by this object is either the same as, or is a supertype oftype.Methods inherited from class net.ssehub.easy.varModel.model.datatypes.BasisDatatype
getGenericType, getGenericTypeCount, getName, getNameSpace, getOperation, getOperationCount, getQualifiedName, getType, getTypeClass, getUniqueName, isPrimitive, isPseudoType
-
Field Details
-
DTYPE
-
TYPE
-
META_TYPE
-
BOOLEAN_TYPE
-
STRING_TYPE
-
CONSTRAINT_TYPE
-
CONTAINER_TYPE
-
SEQUENCE_TYPE
-
SET_TYPE
-
IS_TYPE_OF
-
IS_KIND_OF
-
SET_LOCALE
-
GET_LOCALE
-
AS_TYPE
-
ASSIGNMENT
-
EQUALS
-
NOTEQUALS
-
NOTEQUALS_ALIAS
-
-
Constructor Details
-
AnyType
private AnyType()Constructor for a new BooleanType.
-
-
Method Details
-
isAssignableFrom
Description copied from class:BasisDatatypeDetermines if the data type represented by this object is either the same as, or is a supertype oftype.- Specified by:
isAssignableFromin interfaceIDatatype- Overrides:
isAssignableFromin classBasisDatatype- Parameters:
type- the type being checked- Returns:
trueif this type is either the same or a supertype oftype,trueelse
-
accept
Description copied from interface:IDatatypeVisitableAccepts a specialized visitor for creating a textual representation of the identity of this type.- Specified by:
acceptin interfaceIDatatypeVisitable- Specified by:
acceptin classBasisDatatype- Parameters:
visitor- the visitor to accept
-