org.objectweb.medor.type.lib
Class QTypeTuple
java.lang.Object
QType
org.objectweb.medor.type.lib.QTypeTuple
- public class QTypeTuple
- extends QType
This class defines the extension of PType for Tuples.
- See Also:
- Serialized Form
Constructor Summary |
QTypeTuple(PType[] types,
PTypeSpace typespace)
It constructs the types that represent tuples. |
Method Summary |
boolean |
isa(PType pt)
Checks whether the current QTypeTuple is a subtype of another PType.
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TYPECODE_TUPLE
public static final short TYPECODE_TUPLE
- See Also:
- Constant Field Values
attributeTypes
protected PType[] attributeTypes
QTypeTuple
public QTypeTuple(PType[] types,
PTypeSpace typespace)
- It constructs the types that represent tuples.
- Parameters:
types
- The array of PTypes for the tuple attributes.typespace
- The type space to which the constructed PType belongs.
isa
public boolean isa(PType pt)
- Checks whether the current QTypeTuple is a subtype of another PType.
The other PType must be a QTypeTuple.
- Parameters:
pt
- The other PType to be compared to.
- Returns:
- It return true if this PType conforms to the one passed as
parameter.