org.inxar.jenesis
Interface Type

All Superinterfaces:
Codeable
All Known Subinterfaces:
ArrayType, ClassType, PrimitiveType

public interface Type
extends Codeable

The Type superinterface.


Field Summary
static int ARRAY
          Constant for the array type.
static int BOOLEAN
          Constant for the boolean type.
static int BYTE
          Constant for the byte type.
static int CHAR
          Constant for the char type.
static int CLASS
          Constant for the class type.
static int DOUBLE
          Constant for the double type.
static int FLOAT
          Constant for the float type.
static int INT
          Constant for the int type.
static int LONG
          Constant for the long type.
static int NULL
          Constant for the null type.
static int SHORT
          Constant for the short type.
static int VOID
          Constant for the void type.
 
Method Summary
 boolean isArray()
          Returns true if this is an array, false otherwise.
 boolean isPrimitive()
          Returns true if this is one of the primitive types, false otherwise.
 int type()
          Returns the integer type as one of the constants in the type interface.
 
Methods inherited from interface org.inxar.jenesis.Codeable
getComment, setComment, toCode, vm
 

Field Detail

VOID

public static final int VOID
Constant for the void type.

NULL

public static final int NULL
Constant for the null type.

BOOLEAN

public static final int BOOLEAN
Constant for the boolean type.

BYTE

public static final int BYTE
Constant for the byte type.

SHORT

public static final int SHORT
Constant for the short type.

INT

public static final int INT
Constant for the int type.

LONG

public static final int LONG
Constant for the long type.

FLOAT

public static final int FLOAT
Constant for the float type.

DOUBLE

public static final int DOUBLE
Constant for the double type.

CHAR

public static final int CHAR
Constant for the char type.

CLASS

public static final int CLASS
Constant for the class type.

ARRAY

public static final int ARRAY
Constant for the array type.
Method Detail

type

public int type()
Returns the integer type as one of the constants in the type interface.

isPrimitive

public boolean isPrimitive()
Returns true if this is one of the primitive types, false otherwise.

isArray

public boolean isArray()
Returns true if this is an array, false otherwise.