Class ConstraintType
java.lang.Object
net.ssehub.easy.varModel.model.datatypes.BasisDatatype
net.ssehub.easy.varModel.model.datatypes.ConstraintType
- All Implemented Interfaces:
IDatatype,IDatatypeVisitable
Defines the basis datatype for holding constraints. This datatype
allows to define varying constraints (required by HIS).
- Author:
- Holger Eichelberger
-
Field Summary
Fields -
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.static booleanisConstraint(IDatatype type) Returns whethertypeis a constraint.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
-
TYPE
-
TYPE_OF
-
EQUALS
-
UNEQUALS
-
UNEQUALS_ALIAS
-
ASSIGNMENT
-
IS_DEFINED
-
IF_DEFINED
-
-
Constructor Details
-
ConstraintType
private ConstraintType()Constructor for a new ConstraintType.
-
-
Method Details
-
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
-
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
-
isConstraint
Returns whethertypeis a constraint. This method is required as constraints are assignable to Boolean.- Parameters:
type- the type- Returns:
truein case of a constraintfalseelse
-