Class AnyType
- java.lang.Object
-
- net.ssehub.easy.varModel.model.datatypes.BasisDatatype
-
- net.ssehub.easy.varModel.model.datatypes.AnyType
-
- All Implemented Interfaces:
IDatatype,IDatatypeVisitable
public class AnyType extends BasisDatatype
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
Fields Modifier and Type Field Description static OperationAS_TYPEstatic OperationASSIGNMENT(package private) static DelegatingTypeBOOLEAN_TYPE(package private) static DelegatingTypeCONSTRAINT_TYPE(package private) static DelegatingTypeCONTAINER_TYPE(package private) static DelegatingTypeDTYPEstatic OperationEQUALSstatic OperationGET_LOCALEstatic OperationIS_KIND_OFstatic OperationIS_TYPE_OF(package private) static DelegatingTypeMETA_TYPEstatic OperationNOTEQUALSstatic OperationNOTEQUALS_ALIAS(package private) static DelegatingTypeSEQUENCE_TYPEstatic OperationSET_LOCALE(package private) static DelegatingTypeSET_TYPE(package private) static DelegatingTypeSTRING_TYPEstatic IDatatypeTYPE
-
Constructor Summary
Constructors Modifier Constructor Description privateAnyType()Constructor for a new BooleanType.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(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 Detail
-
DTYPE
static final DelegatingType DTYPE
-
TYPE
public static final IDatatype TYPE
-
META_TYPE
static final DelegatingType META_TYPE
-
BOOLEAN_TYPE
static final DelegatingType BOOLEAN_TYPE
-
STRING_TYPE
static final DelegatingType STRING_TYPE
-
CONSTRAINT_TYPE
static final DelegatingType CONSTRAINT_TYPE
-
CONTAINER_TYPE
static final DelegatingType CONTAINER_TYPE
-
SEQUENCE_TYPE
static final DelegatingType SEQUENCE_TYPE
-
SET_TYPE
static final DelegatingType SET_TYPE
-
IS_TYPE_OF
public static final Operation IS_TYPE_OF
-
IS_KIND_OF
public static final Operation IS_KIND_OF
-
SET_LOCALE
public static final Operation SET_LOCALE
-
GET_LOCALE
public static final Operation GET_LOCALE
-
AS_TYPE
public static final Operation AS_TYPE
-
ASSIGNMENT
public static final Operation ASSIGNMENT
-
EQUALS
public static final Operation EQUALS
-
NOTEQUALS
public static final Operation NOTEQUALS
-
NOTEQUALS_ALIAS
public static final Operation NOTEQUALS_ALIAS
-
-
Method Detail
-
isAssignableFrom
public boolean isAssignableFrom(IDatatype type)
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
public void accept(IDatatypeVisitor visitor)
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
-
-