All Packages Class Hierarchy This Package Previous Next Index
Class espresso.util.Type
java.lang.Object
|
+----espresso.util.Type
- public abstract class Type
- extends Object
-
Boolean
-
-
BooleanRep
-
-
Byte
-
-
ByteRep
-
-
cache_d
-
-
CACHE_SIZE
-
-
Char
-
-
CharRep
-
-
Double
-
-
DoubleRep
-
-
Float
-
-
FloatRep
-
-
Int
-
-
IntRep
-
-
Long
-
-
LongRep
-
-
Null
-
-
NullRep
-
-
Short
-
-
ShortRep
-
-
Void
-
-
VoidRep
-
-
Type()
-
-
()
-
-
ADD()
-
-
ALOAD()
-
-
AND()
-
-
ASTORE()
-
-
CAST(Type)
-
-
CMP(boolean)
-
-
createClassType(String)
- Search for class types without 'L' and ';'.
-
createClassType(Symbol)
-
-
createType(String)
-
-
createType(Symbol)
-
-
distanceTo(Type)
-
-
DIV()
-
-
DUP()
-
-
DUPX1()
-
-
DUPX2()
-
-
floatingPointType()
-
-
identicalTo(Type)
-
-
IFEQ(boolean)
-
-
IFGE(boolean)
-
-
IFGT(boolean)
-
-
IFLE(boolean)
-
-
IFLT(boolean)
-
-
IFNE(boolean)
-
-
integralType()
-
-
LOAD(int)
-
-
MUL()
-
-
NEG()
-
-
NEWARRAY(int)
-
-
numericType()
-
-
oneWord()
- Determines if vars of this type fit in one word.
-
OR()
-
-
parseType(StringReader)
-
-
POP()
-
-
primitiveType()
-
-
PUSH(ConstantPoolGen, BigDecimal)
-
-
referenceType()
-
-
relatedTo(Type)
- Determines if two ref types belong to the same branch of the
subtype relation hierarchy.
-
REM()
-
-
RETURN()
-
-
SHL()
-
-
SHR()
-
-
STORE(int)
-
-
SUB()
-
-
subTypeOf(Type)
-
-
superTypeOf(Type)
-
-
toClassFileType()
-
-
toInternalString()
-
-
toString()
-
-
twoWords()
- Determines if vars of this type need two words.
-
USHR()
-
-
XOR()
-
CACHE_SIZE
static final int CACHE_SIZE
VoidRep
protected static final String VoidRep
ByteRep
protected static final String ByteRep
CharRep
protected static final String CharRep
DoubleRep
protected static final String DoubleRep
FloatRep
protected static final String FloatRep
IntRep
protected static final String IntRep
LongRep
protected static final String LongRep
ShortRep
protected static final String ShortRep
BooleanRep
protected static final String BooleanRep
NullRep
protected static final String NullRep
Null
public static final Type Null
Void
public static final Type Void
Byte
public static final Type Byte
Char
public static final Type Char
Double
public static final Type Double
Float
public static final Type Float
Int
public static final Type Int
Long
public static final Type Long
Short
public static final Type Short
Boolean
public static final Type Boolean
cache_d
static Hashtable cache_d
Type
Type()
subTypeOf
public abstract boolean subTypeOf(Type other)
superTypeOf
public abstract boolean superTypeOf(Type other)
identicalTo
public abstract boolean identicalTo(Type other)
distanceTo
public abstract int distanceTo(Type other)
referenceType
public abstract boolean referenceType()
primitiveType
public abstract boolean primitiveType()
numericType
public abstract boolean numericType()
integralType
public abstract boolean integralType()
floatingPointType
public abstract boolean floatingPointType()
toString
public abstract String toString()
- Overrides:
- toString in class Object
toInternalString
public String toInternalString()
toClassFileType
public abstract ClassGenType toClassFileType()
relatedTo
public boolean relatedTo(Type other)
- Determines if two ref types belong to the same branch of the
subtype relation hierarchy.
createType
public static Type createType(Symbol rep)
createType
public static Type createType(String rep)
createClassType
public static ClassType createClassType(String rep)
- Search for class types without 'L' and ';'. This is useful
to use the cache after types have been parsed.
createClassType
public static ClassType createClassType(Symbol rep)
static void ()
parseType
static Type parseType(StringReader buffer) throws IOException
oneWord
public boolean oneWord()
- Determines if vars of this type fit in one word. Defaults to true
but overriden at DoubleType and LongType.
twoWords
public boolean twoWords()
- Determines if vars of this type need two words. Defaults to false
but overriden at DoubleType and LongType.
DUP
public Instruction DUP()
DUPX1
public Instruction DUPX1()
DUPX2
public Instruction DUPX2()
RETURN
public Instruction RETURN()
LOAD
public Instruction LOAD(int slot)
STORE
public Instruction STORE(int slot)
ALOAD
public Instruction ALOAD()
ASTORE
public Instruction ASTORE()
CMP
public Instruction CMP(boolean less)
IFGT
public Instruction IFGT(boolean tozero)
IFLT
public Instruction IFLT(boolean tozero)
IFGE
public Instruction IFGE(boolean tozero)
IFLE
public Instruction IFLE(boolean tozero)
IFEQ
public Instruction IFEQ(boolean tozero)
IFNE
public Instruction IFNE(boolean tozero)
POP
public Instruction POP()
PUSH
public Instruction PUSH(ConstantPoolGen cpg,
BigDecimal value)
ADD
public Instruction ADD()
SUB
public Instruction SUB()
MUL
public Instruction MUL()
DIV
public Instruction DIV()
REM
public Instruction REM()
NEG
public Instruction NEG()
AND
public Instruction AND()
OR
public Instruction OR()
XOR
public Instruction XOR()
SHL
public Instruction SHL()
SHR
public Instruction SHR()
USHR
public Instruction USHR()
NEWARRAY
public Instruction NEWARRAY(int index)
CAST
public InstructionList CAST(Type other)
All Packages Class Hierarchy This Package Previous Next Index