com.jeffpalm.basic.bytecode.base
Class ConstantPoolImpl

java.lang.Object
  extended by com.jeffpalm.basic.bytecode.base.ConstantPoolImpl
All Implemented Interfaces:
ICodeGenerator, IConstantPool, IDumpable

public final class ConstantPoolImpl
extends java.lang.Object
implements IConstantPool


Method Summary
 Iu2 addClass(java.lang.String className)
           
 Iu2 addDouble(double val)
           
 Iu2 addFieldRef(java.lang.String className, IField field)
           
 Iu2 addFieldRef(java.lang.String className, java.lang.String name, java.lang.String descriptor)
           
 Iu2 addFloat(float val)
           
 Iu2 addInteger(int val)
           
 Iu2 addLong(long val)
           
 Iu2 addMethodRef(java.lang.String className, IMethod method)
           
 Iu2 addMethodRef(java.lang.String className, java.lang.String name, java.lang.String descriptor)
           
 Iu2 addNameAndType(java.lang.String name, java.lang.String type)
           
 Iu2 addString(java.lang.String string)
           
 Iu2 addUtf8(java.lang.String string)
           
 int count()
           
 void dump(IAppendable out)
           
 void gen(ICodeStream code)
           
 ICONSTANT_Class_info getClass_info(int index)
           
 ICONSTANT_Class_info getClass_info(Iu2 index)
           
 ICONSTANT_Double_info getDouble_info(int index)
           
 ICONSTANT_Double_info getDouble_info(Iu2 index)
           
 ICONSTANT_Fieldref_info getFieldref_info(int index)
           
 ICONSTANT_Fieldref_info getFieldref_info(Iu2 index)
           
 ICONSTANT_Float_info getFloat_info(int index)
           
 ICONSTANT_Float_info getFloat_info(Iu2 index)
           
 ICONSTANT_Integer_info getInteger_info(int index)
           
 ICONSTANT_Integer_info getInteger_info(Iu2 index)
           
 ICONSTANT_InterfaceMethodref_info getInterfaceMethodref_info(int index)
           
 ICONSTANT_InterfaceMethodref_info getInterfaceMethodref_info(Iu2 index)
           
 ICONSTANT_Long_info getLong_info(int index)
           
 ICONSTANT_Long_info getLong_info(Iu2 index)
           
 ICONSTANT_Methodref_info getMethodref_info(int index)
           
 ICONSTANT_Methodref_info getMethodref_info(Iu2 index)
           
 ICONSTANT_NameAndType_info getNameAndType_info(int index)
           
 ICONSTANT_NameAndType_info getNameAndType_info(Iu2 index)
           
 ICONSTANT_String_info getString_info(int index)
           
 ICONSTANT_String_info getString_info(Iu2 index)
           
 ICONSTANT_Utf8_info getUtf8_info(int index)
           
 ICONSTANT_Utf8_info getUtf8_info(Iu2 index)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getClass_info

public ICONSTANT_Class_info getClass_info(Iu2 index)
Specified by:
getClass_info in interface IConstantPool

getClass_info

public ICONSTANT_Class_info getClass_info(int index)
Specified by:
getClass_info in interface IConstantPool

getFieldref_info

public ICONSTANT_Fieldref_info getFieldref_info(Iu2 index)
Specified by:
getFieldref_info in interface IConstantPool

getFieldref_info

public ICONSTANT_Fieldref_info getFieldref_info(int index)
Specified by:
getFieldref_info in interface IConstantPool

getMethodref_info

public ICONSTANT_Methodref_info getMethodref_info(Iu2 index)
Specified by:
getMethodref_info in interface IConstantPool

getMethodref_info

public ICONSTANT_Methodref_info getMethodref_info(int index)
Specified by:
getMethodref_info in interface IConstantPool

getInterfaceMethodref_info

public ICONSTANT_InterfaceMethodref_info getInterfaceMethodref_info(Iu2 index)
Specified by:
getInterfaceMethodref_info in interface IConstantPool

getInterfaceMethodref_info

public ICONSTANT_InterfaceMethodref_info getInterfaceMethodref_info(int index)
Specified by:
getInterfaceMethodref_info in interface IConstantPool

getString_info

public ICONSTANT_String_info getString_info(Iu2 index)
Specified by:
getString_info in interface IConstantPool

getString_info

public ICONSTANT_String_info getString_info(int index)
Specified by:
getString_info in interface IConstantPool

getInteger_info

public ICONSTANT_Integer_info getInteger_info(Iu2 index)
Specified by:
getInteger_info in interface IConstantPool

getInteger_info

public ICONSTANT_Integer_info getInteger_info(int index)
Specified by:
getInteger_info in interface IConstantPool

getFloat_info

public ICONSTANT_Float_info getFloat_info(Iu2 index)
Specified by:
getFloat_info in interface IConstantPool

getFloat_info

public ICONSTANT_Float_info getFloat_info(int index)
Specified by:
getFloat_info in interface IConstantPool

getLong_info

public ICONSTANT_Long_info getLong_info(Iu2 index)
Specified by:
getLong_info in interface IConstantPool

getLong_info

public ICONSTANT_Long_info getLong_info(int index)
Specified by:
getLong_info in interface IConstantPool

getDouble_info

public ICONSTANT_Double_info getDouble_info(Iu2 index)
Specified by:
getDouble_info in interface IConstantPool

getDouble_info

public ICONSTANT_Double_info getDouble_info(int index)
Specified by:
getDouble_info in interface IConstantPool

getNameAndType_info

public ICONSTANT_NameAndType_info getNameAndType_info(Iu2 index)
Specified by:
getNameAndType_info in interface IConstantPool

getNameAndType_info

public ICONSTANT_NameAndType_info getNameAndType_info(int index)
Specified by:
getNameAndType_info in interface IConstantPool

getUtf8_info

public ICONSTANT_Utf8_info getUtf8_info(Iu2 index)
Specified by:
getUtf8_info in interface IConstantPool

getUtf8_info

public ICONSTANT_Utf8_info getUtf8_info(int index)
Specified by:
getUtf8_info in interface IConstantPool

dump

public void dump(IAppendable out)
Specified by:
dump in interface IDumpable

gen

public void gen(ICodeStream code)
         throws java.io.IOException
Specified by:
gen in interface ICodeGenerator
Throws:
java.io.IOException

addClass

public Iu2 addClass(java.lang.String className)
Specified by:
addClass in interface IConstantPool

addString

public Iu2 addString(java.lang.String string)
Specified by:
addString in interface IConstantPool

addNameAndType

public Iu2 addNameAndType(java.lang.String name,
                          java.lang.String type)
Specified by:
addNameAndType in interface IConstantPool

addInteger

public Iu2 addInteger(int val)
Specified by:
addInteger in interface IConstantPool

addFloat

public Iu2 addFloat(float val)
Specified by:
addFloat in interface IConstantPool

addLong

public Iu2 addLong(long val)
Specified by:
addLong in interface IConstantPool

addDouble

public Iu2 addDouble(double val)
Specified by:
addDouble in interface IConstantPool

addFieldRef

public Iu2 addFieldRef(java.lang.String className,
                       java.lang.String name,
                       java.lang.String descriptor)
Specified by:
addFieldRef in interface IConstantPool

addFieldRef

public Iu2 addFieldRef(java.lang.String className,
                       IField field)
Specified by:
addFieldRef in interface IConstantPool

addMethodRef

public Iu2 addMethodRef(java.lang.String className,
                        java.lang.String name,
                        java.lang.String descriptor)
Specified by:
addMethodRef in interface IConstantPool

addMethodRef

public Iu2 addMethodRef(java.lang.String className,
                        IMethod method)
Specified by:
addMethodRef in interface IConstantPool

addUtf8

public Iu2 addUtf8(java.lang.String string)
Specified by:
addUtf8 in interface IConstantPool

main

public static void main(java.lang.String[] args)

count

public int count()
Specified by:
count in interface IConstantPool