Class VoidType
- java.lang.Object
-
- net.ssehub.easy.varModel.model.datatypes.BasisDatatype
-
- net.ssehub.easy.varModel.model.datatypes.VoidType
-
- All Implemented Interfaces:
IDatatype,IDatatypeVisitable
public class VoidType 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 (package private) static DelegatingTypeDTYPEstatic IDatatypeTYPE
-
Constructor Summary
Constructors Modifier Constructor Description privateVoidType()Constructor for a new VoidType.
-
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
-
-
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
-
-