|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fr.emn.reactiveinput.Enum fr.emn.reactiveinput.SlotType
Primitive types used by Value + utility methods.
Field Summary | |
static int |
ANY
|
static int |
BOOLEAN
|
static int |
DOUBLE
|
static int |
INT
|
static int |
NULL
Any type |
static int |
OBJECT
|
static int |
STRING
|
Fields inherited from class fr.emn.reactiveinput.Enum |
value |
Constructor Summary | |
SlotType(int value)
|
Method Summary | |
java.lang.String[] |
getChoices()
|
static int |
getInfType(int type1,
int type2)
Utility method |
static int |
getInfType(Slot[] slots)
Utility method used in Out.getConnectedType() |
static int |
getSupType(int type1,
int type2)
Utility method |
static int |
getSupType(Slot[] slots)
Utility method |
static int |
getType(java.lang.Class type)
Utility method to obtain SlotType constant from a class |
static boolean |
isSubtype(int subtype,
int type)
Returns true if the first argument is a subtype of the second. |
static java.lang.String |
toString(int type)
Converts a type into a string. |
static int |
toType(java.lang.String s)
Converts a string into a type. |
Methods inherited from class fr.emn.reactiveinput.Enum |
copy, create, getValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int NULL
public static final int BOOLEAN
public static final int INT
public static final int DOUBLE
public static final int STRING
public static final int OBJECT
public static final int ANY
Constructor Detail |
public SlotType(int value)
Method Detail |
public java.lang.String[] getChoices()
getChoices
in class Enum
public static int getType(java.lang.Class type)
public static int getInfType(Slot[] slots)
public static int getInfType(int type1, int type2)
public static int getSupType(Slot[] slots)
public static int getSupType(int type1, int type2)
public static boolean isSubtype(int subtype, int type)
public static java.lang.String toString(int type)
public static int toType(java.lang.String s)
Returns -1 if bad string.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |