junc.types
Class JUnCBaseType

java.lang.Object
  |
  +--junc.types.JUnCBaseType
Direct Known Subclasses:
MethodType, PrimitiveType, ReferenceType

public abstract class JUnCBaseType
extends java.lang.Object


Field Summary
static junc.types.JUnCBaseType Boolean
           
protected static java.lang.String BooleanRep
           
static junc.types.JUnCBaseType Byte
           
protected static java.lang.String ByteRep
           
static junc.types.JUnCBaseType Char
           
protected static java.lang.String CharRep
           
static junc.types.JUnCBaseType Double
           
protected static java.lang.String DoubleRep
           
static junc.types.JUnCBaseType Error
           
static junc.types.JUnCBaseType Exception
           
static junc.types.JUnCBaseType Float
           
protected static java.lang.String FloatRep
           
static junc.types.JUnCBaseType Int
           
protected static java.lang.String IntRep
           
static junc.types.JUnCBaseType Long
           
protected static java.lang.String LongRep
           
static junc.types.JUnCBaseType Null
           
protected static java.lang.String NullRep
           
static junc.types.JUnCBaseType RuntimeException
           
static junc.types.JUnCBaseType Short
           
protected static java.lang.String ShortRep
           
static junc.types.JUnCBaseType Throwable
           
static junc.types.JUnCBaseType Void
           
protected static java.lang.String VoidRep
           
 
Method Summary
 org.apache.bcel.generic.Instruction ADD()
           
 void ADDSTRING(org.apache.bcel.generic.ClassGen classGen, org.apache.bcel.generic.MethodGen methodGen, boolean top)
           
 org.apache.bcel.generic.Instruction ALOAD()
           
 org.apache.bcel.generic.Instruction AND()
           
 org.apache.bcel.generic.Instruction APPENDSTB(org.apache.bcel.generic.ConstantPoolGen cpg)
           
 org.apache.bcel.generic.Instruction ASTORE()
           
 org.apache.bcel.generic.InstructionList CAST(junc.types.JUnCBaseType other)
           
 org.apache.bcel.generic.Instruction CMP(boolean less)
           
static junc.types.ClassType createClassType(java.lang.String rep)
          Search for class types without 'L' and ';'.
static junc.types.ClassType createClassType(junc.symtab.Symbol rep)
           
static junc.types.JUnCBaseType createType(java.lang.String rep)
           
static junc.types.JUnCBaseType createType(junc.symtab.Symbol rep)
           
abstract  int distanceTo(junc.types.JUnCBaseType other)
           
 org.apache.bcel.generic.Instruction DIV()
           
 org.apache.bcel.generic.Instruction DUP()
           
 org.apache.bcel.generic.Instruction DUPX1()
           
 org.apache.bcel.generic.Instruction DUPX2()
           
abstract  boolean floatingPointType()
           
abstract  boolean identicalTo(junc.types.JUnCBaseType other)
           
 org.apache.bcel.generic.Instruction IFEQ(boolean tozero)
           
 org.apache.bcel.generic.Instruction IFGE(boolean tozero)
           
 org.apache.bcel.generic.Instruction IFGT(boolean tozero)
           
 org.apache.bcel.generic.Instruction IFLE(boolean tozero)
           
 org.apache.bcel.generic.Instruction IFLT(boolean tozero)
           
 org.apache.bcel.generic.Instruction IFNE(boolean tozero)
           
abstract  boolean integralType()
           
 org.apache.bcel.generic.Instruction LOAD(int slot)
           
 org.apache.bcel.generic.Instruction MUL()
           
 junc.symtab.Symbol name()
           
 org.apache.bcel.generic.Instruction NEG()
           
 org.apache.bcel.generic.Instruction NEWARRAY(int index)
           
abstract  boolean numericType()
           
 boolean oneWord()
          Determines if vars of this type fit in one word.
 org.apache.bcel.generic.Instruction OR()
           
 org.apache.bcel.generic.Instruction POP()
           
abstract  boolean primitiveType()
           
 org.apache.bcel.generic.Instruction PUSH(org.apache.bcel.generic.ConstantPoolGen cpg, java.math.BigDecimal value)
           
abstract  boolean referenceType()
           
 boolean relatedTo(junc.types.JUnCBaseType other)
          Determines if two ref types belong to the same branch of the subtype relation hierarchy.
 org.apache.bcel.generic.Instruction REM()
           
 org.apache.bcel.generic.Instruction RETURN()
           
 org.apache.bcel.generic.Instruction SHL()
           
 org.apache.bcel.generic.Instruction SHR()
           
 org.apache.bcel.generic.Instruction STORE(int slot)
           
 org.apache.bcel.generic.Instruction SUB()
           
abstract  boolean subTypeOf(junc.types.JUnCBaseType other)
           
abstract  boolean superTypeOf(junc.types.JUnCBaseType other)
           
 boolean throwable()
          Determines if this type can be thrown as an exception.
abstract  org.apache.bcel.generic.Type toClassFileType()
           
 java.lang.String toInternalString()
           
abstract  java.lang.String toString()
           
 boolean twoWords()
          Determines if vars of this type need two words.
 org.apache.bcel.generic.Instruction USHR()
           
 org.apache.bcel.generic.InstructionList VALUEOF(org.apache.bcel.generic.ConstantPoolGen&owColor"> clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VoidRep

protected static final java.lang.String VoidRep
See Also:
Constant Field Values

ByteRep

protected static final java.lang.String ByteRep
See Also:
Constant Field Values

CharRep

protected static final java.lang.String CharRep
See Also:
Constant Field Values

DoubleRep

protected static final java.lang.String DoubleRep
See Also:
Constant Field Values

FloatRep

protected static final java.lang.String FloatRep
See Also:
Constant Field Values

IntRep

protected static final java.lang.String IntRep
See Also:
Constant Field Values

LongRep

protected static final java.lang.String LongRep
See Also:
Constant Field Values

ShortRep

protected static final java.lang.String ShortRep
See Also:
Constant Field Values

BooleanRep

protected static final java.lang.String BooleanRep
See Also:
Constant Field Values

NullRep

protected static final java.lang.String NullRep
See Also:
Constant Field Values

Throwable

public static final junc.types.JUnCBaseType Throwable

Exception

public static final junc.types.JUnCBaseType Exception

Error

public static final junc.types.JUnCBaseType Error

RuntimeException

public static final junc.types.JUnCBaseType RuntimeException

Null

public static final junc.types.JUnCBaseType Null

Void

public static final junc.types.JUnCBaseType Void

Byte

public static final junc.types.JUnCBaseType Byte

Char

public static final junc.types.JUnCBaseType Char

Double

public static final junc.types.JUnCBaseType Double

Float

public static final junc.types.JUnCBaseType Float

Int

public static final junc.types.JUnCBaseType Int

Long

public static final junc.types.JUnCBaseType Long

Short

public static final junc.types.JUnCBaseType Short

Boolean

public static final junc.types.JUnCBaseType Boolean
Method Detail

subTypeOf

public abstract boolean subTypeOf(junc.types.JUnCBaseType other)

superTypeOf

public abstract boolean superTypeOf(junc.types.JUnCBaseType other)

identicalTo

public abstract boolean identicalTo(junc.types.JUnCBaseType other)

distanceTo

public abstract int distanceTo(junc.types.JUnCBaseType 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 java.lang.String toString()
Overrides:
toString in class java.lang.Object

toInternalString

public java.lang.String toInternalString()

toClassFileType

public abstract org.apache.bcel.generic.Type toClassFileType()

relatedTo

public boolean relatedTo(junc.types.JUnCBaseType other)
Determines if two ref types belong to the same branch of the subtype relation hierarchy.


createType

public static junc.types.JUnCBaseType createType(junc.symtab.Symbol rep)

createType

public static junc.types.JUnCBaseType createType(java.lang.String rep)

createClassType

public static junc.types.ClassType createClassType(java.lang.String rep)
Search for class types without 'L' and ';'. This is useful to use the cache after types have been parsed.


createClassType

public static junc.types.ClassType createClassType(junc.symtab.Symbol rep)

name

public junc.symtab.Symbol name()

throwable

public boolean throwable()
Determines if this type can be thrown as an exception. Defaults to false but overridden in ClassType


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 org.apache.bcel.generic.Instruction DUP()

DUPX1

public org.apache.bcel.generic.Instruction DUPX1()

DUPX2

public org.apache.bcel.generic.Instruction DUPX2()

RETURN

public org.apache.bcel.generic.Instruction RETURN()

LOAD

public org.apache.bcel.generic.Instruction LOAD(int slot)

STORE

public org.apache.bcel.generic.Instruction STORE(int slot)

ALOAD

public org.apache.bcel.generic.Instruction ALOAD()

ASTORE

public org.apache.bcel.generic.Instruction ASTORE()

CMP

public org.apache.bcel.generic.Instruction CMP(boolean less)

IFGT

public org.apache.bcel.generic.Instruction IFGT(boolean tozero)

IFLT

public org.apache.bcel.generic.Instruction IFLT(boolean tozero)

IFGE

public org.apache.bcel.generic.Instruction IFGE(boolean tozero)

IFLE

public org.apache.bcel.generic.Instruction IFLE(boolean tozero)

IFEQ

public org.apache.bcel.generic.Instruction IFEQ(boolean tozero)

IFNE

public org.apache.bcel.generic.Instruction IFNE(boolean tozero)

POP

public org.apache.bcel.generic.Instruction POP()

PUSH

public org.apache.bcel.generic.Instruction PUSH(org.apache.bcel.generic.ConstantPoolGen cpg,
                                                java.math.BigDecimal value)

ADD

public org.apache.bcel.generic.Instruction ADD()

SUB

public org.apache.bcel.generic.Instruction SUB()

MUL

public org.apache.bcel.generic.Instruction MUL()

DIV

public org.apache.bcel.generic.Instruction DIV()

REM

public org.apache.bcel.generic.Instruction REM()

NEG

public org.apache.bcel.generic.Instruction NEG()

AND

public org.apache.bcel.generic.Instruction AND()

OR

public org.apache.bcel.generic.Instruction OR()

XOR

public org.apache.bcel.generic.Instruction XOR()

SHL

public org.apache.bcel.generic.Instruction SHL()

SHR

public org.apache.bcel.generic.Instruction SHR()

USHR

public org.apache.bcel.generic.Instruction USHR()

NEWARRAY

public org.apache.bcel.generic.Instruction NEWARRAY(int index)

CAST

public org.apache.bcel.generic.InstructionList CAST(junc.types.JUnCBaseType other)

VALUEOF

public org.apache.bcel.generic.InstructionList VALUEOF(org.apache.bcel.generic.ConstantPoolGen cpg)

APPENDSTB

public org.apache.bcel.generic.Instruction APPENDSTB(org.apache.bcel.generic.ConstantPoolGen cpg)

ADDSTRING

public void ADDSTRING(org.apache.bcel.generic.ClassGen classGen,
                      org.apache.bcel.generic.MethodGen methodGen,
                      boolean top)