Public Methods | |
ConstantPoolGen () | |
ConstantPoolGen (Constant[] cs) | |
ConstantPoolGen (ConstantPool cp) | |
int | addArrayClass (ArrayType type) |
int | addClass (ObjectType type) |
int | addClass (String str) |
int | addDouble (double n) |
int | addFieldref (String class_name, String field_name, String signature) |
int | addFloat (float n) |
int | addInteger (int n) |
int | addInterfaceMethodref (MethodGen method) |
int | addInterfaceMethodref (String class_name, String method_name, String signature) |
int | addLong (long n) |
int | addMethodref (MethodGen method) |
int | addMethodref (String class_name, String method_name, String signature) |
int | addNameAndType (String name, String signature) |
int | addString (String str) |
int | addUtf8 (String n) |
Constant | getConstant (int i) |
ConstantPool | getConstantPool () |
ConstantPool | getFinalConstantPool () |
int | getSize () |
int | lookupClass (String str) |
int | lookupDouble (double n) |
int | lookupFieldref (String class_name, String field_name, String signature) |
int | lookupFloat (float n) |
int | lookupInteger (int n) |
int | lookupInterfaceMethodref (MethodGen method) |
int | lookupInterfaceMethodref (String class_name, String method_name, String signature) |
int | lookupLong (long n) |
int | lookupMethodref (MethodGen method) |
int | lookupMethodref (String class_name, String method_name, String signature) |
int | lookupNameAndType (String name, String signature) |
int | lookupString (String str) |
int | lookupUtf8 (String n) |
void | setConstant (int i, Constant c) |
String | toString () |
ConstantPoolGen () | |
ConstantPoolGen (Constant[] cs) | |
ConstantPoolGen (ConstantPool cp) | |
int | addArrayClass (ArrayType type) |
int | addClass (ObjectType type) |
int | addClass (String str) |
int | addDouble (double n) |
int | addFieldref (String class_name, String field_name, String signature) |
int | addFloat (float n) |
int | addInteger (int n) |
int | addInterfaceMethodref (MethodGen method) |
int | addInterfaceMethodref (String class_name, String method_name, String signature) |
int | addLong (long n) |
int | addMethodref (MethodGen method) |
int | addMethodref (String class_name, String method_name, String signature) |
int | addNameAndType (String name, String signature) |
int | addString (String str) |
int | addUtf8 (String n) |
Constant | getConstant (int i) |
ConstantPool | getConstantPool () |
ConstantPool | getFinalConstantPool () |
int | getSize () |
int | lookupClass (String str) |
int | lookupDouble (double n) |
int | lookupFieldref (String class_name, String field_name, String signature) |
int | lookupFloat (float n) |
int | lookupInteger (int n) |
int | lookupInterfaceMethodref (MethodGen method) |
int | lookupInterfaceMethodref (String class_name, String method_name, String signature) |
int | lookupLong (long n) |
int | lookupMethodref (MethodGen method) |
int | lookupMethodref (String class_name, String method_name, String signature) |
int | lookupNameAndType (String name, String signature) |
int | lookupString (String str) |
int | lookupUtf8 (String n) |
void | setConstant (int i, Constant c) |
String | toString () |
Protected Methods | |
void | adjustSize () |
void | adjustSize () |
Protected Attributes | |
int | size = 1024 |
Constant[] | constants = new Constant[size] |
int | index = 1 |
Constant[] | constants = new Constant[size] |
Private Methods | |
int | addClass_ (String clazz) |
int | addClass_ (String clazz) |
Private Attributes | |
Hashtable | string_table = new Hashtable() |
Hashtable | class_table = new Hashtable() |
Hashtable | n_a_t_table = new Hashtable() |
Hashtable | cp_table = new Hashtable() |
Static Private Attributes | |
final String | METHODREF_DELIM = ":" |
final String | IMETHODREF_DELIM = "#" |
final String | FIELDREF_DELIM = "&" |
final String | NAT_DELIM = "%" |
Definition at line 21 of file lib/jpf/de/fub/bytecode/generic/ConstantPoolGen.java.
|
Create empty constant pool. Definition at line 42 of file lib/jpf/de/fub/bytecode/generic/ConstantPoolGen.java. |
|
Initialize with given array of constants.
Definition at line 48 of file lib/jpf/de/fub/bytecode/generic/ConstantPoolGen.java. |
|
Initialize with given constant pool. Definition at line 99 of file lib/jpf/de/fub/bytecode/generic/ConstantPoolGen.java. |
|
Create empty constant pool. Definition at line 47 of file src/de/fub/bytecode/generic/ConstantPoolGen.java. |
|
Initialize with given array of constants.
Definition at line 53 of file src/de/fub/bytecode/generic/ConstantPoolGen.java. |
|
Initialize with given constant pool. Definition at line 111 of file src/de/fub/bytecode/generic/ConstantPoolGen.java. |
|
Add a reference to an array class (e.g. String[][]) as needed by MULTIANEWARRAY instruction, e.g. to the ConstantPool.
Definition at line 121 of file src/de/fub/bytecode/generic/ConstantPoolGen.java. |
|
Add a reference to an array class (e.g. String[][]) as needed by MULTIANEWARRAY instruction, e.g. to the ConstantPool.
Definition at line 109 of file lib/jpf/de/fub/bytecode/generic/ConstantPoolGen.java. Referenced by InstructionFactory::createCast(), and InstructionFactory::createNewArray().
|
|
Add a new Class reference to the ConstantPool, if it is not already in there.
Definition at line 139 of file src/de/fub/bytecode/generic/ConstantPoolGen.java. |
|
Add a new Class reference to the ConstantPool for a given type.
Definition at line 130 of file src/de/fub/bytecode/generic/ConstantPoolGen.java. |
|
Add a new Class reference to the ConstantPool, if it is not already in there.
Definition at line 127 of file lib/jpf/de/fub/bytecode/generic/ConstantPoolGen.java. |
|
Add a new Class reference to the ConstantPool for a given type.
Definition at line 118 of file lib/jpf/de/fub/bytecode/generic/ConstantPoolGen.java. Referenced by ClassGen::ClassGen(), addClass(), addFieldref(), ClassGen::addInterface(), addInterfaceMethodref(), addMethodref(), InstructionFactory::createCast(), InstructionFactory::createNewArray(), CodeExceptionGen::getCodeException(), and MethodGen::getExceptionTable().
|
|
Add a new double constant to the ConstantPool, if it is not already in there.
Definition at line 165 of file src/de/fub/bytecode/generic/ConstantPoolGen.java. |
|
Add a new double constant to the ConstantPool, if it is not already in there.
Definition at line 155 of file lib/jpf/de/fub/bytecode/generic/ConstantPoolGen.java. Referenced by PUSH::PUSH().
|
|
Add a new Fieldref constant to the ConstantPool, if it is not already in there.
Definition at line 186 of file src/de/fub/bytecode/generic/ConstantPoolGen.java. |
|
Add a new Fieldref constant to the ConstantPool, if it is not already in there.
Definition at line 176 of file lib/jpf/de/fub/bytecode/generic/ConstantPoolGen.java. Referenced by InstructionFactory::createFieldAccess().
|
|
Add a new Float constant to the ConstantPool, if it is not already in there.
Definition at line 210 of file src/de/fub/bytecode/generic/ConstantPoolGen.java. |
|
Add a new Float constant to the ConstantPool, if it is not already in there.
Definition at line 201 of file lib/jpf/de/fub/bytecode/generic/ConstantPoolGen.java. Referenced by PUSH::PUSH().
|
|
Add a new Integer constant to the ConstantPool, if it is not already in there.
Definition at line 229 of file src/de/fub/bytecode/generic/ConstantPoolGen.java. |
|
Add a new Integer constant to the ConstantPool, if it is not already in there.
Definition at line 234 of file lib/jpf/de/fub/bytecode/generic/ConstantPoolGen.java. Referenced by PUSH::PUSH().
|
|
Add a new InterfaceMethodref constant to the ConstantPool, if it is not already in there.
Definition at line 253 of file src/de/fub/bytecode/generic/ConstantPoolGen.java. |
|
Add a new InterfaceMethodref constant to the ConstantPool, if it is not already in there.
Definition at line 258 of file lib/jpf/de/fub/bytecode/generic/ConstantPoolGen.java. Referenced by InstructionFactory::createInvoke().
|
|
Add a new long constant to the ConstantPool, if it is not already in there.
Definition at line 277 of file src/de/fub/bytecode/generic/ConstantPoolGen.java. |
|
Add a new long constant to the ConstantPool, if it is not already in there.
Definition at line 281 of file lib/jpf/de/fub/bytecode/generic/ConstantPoolGen.java. Referenced by PUSH::PUSH().
|
|
Add a new Methodref constant to the ConstantPool, if it is not already in there.
Definition at line 302 of file src/de/fub/bytecode/generic/ConstantPoolGen.java. |
|
Add a new Methodref constant to the ConstantPool, if it is not already in there.
Definition at line 306 of file lib/jpf/de/fub/bytecode/generic/ConstantPoolGen.java. Referenced by ClassGen::addEmptyConstructor(), and InstructionFactory::createInvoke().
|
|
Add a new NameAndType constant to the ConstantPool if it is not already in there.
Definition at line 327 of file src/de/fub/bytecode/generic/ConstantPoolGen.java. |
|
Add a new NameAndType constant to the ConstantPool if it is not already in there.
Definition at line 330 of file lib/jpf/de/fub/bytecode/generic/ConstantPoolGen.java. Referenced by addFieldref(), addInterfaceMethodref(), and addMethodref().
|
|
Add a new String constant to the ConstantPool, if it is not already in there.
Definition at line 350 of file src/de/fub/bytecode/generic/ConstantPoolGen.java. |
|
Add a new String constant to the ConstantPool, if it is not already in there.
Definition at line 353 of file lib/jpf/de/fub/bytecode/generic/ConstantPoolGen.java. Referenced by PUSH::PUSH(), and FieldGen::setInitValue().
|
|
Add a new Utf8 constant to the ConstantPool, if it is not already in there.
Definition at line 375 of file src/de/fub/bytecode/generic/ConstantPoolGen.java. |
|
Add a new Utf8 constant to the ConstantPool, if it is not already in there.
Definition at line 378 of file lib/jpf/de/fub/bytecode/generic/ConstantPoolGen.java. Referenced by ClassGen::ClassGen(), addNameAndType(), MethodGen::getExceptionTable(), FieldGen::getField(), MethodGen::getLineNumberTable(), LocalVariableGen::getLocalVariable(), MethodGen::getLocalVariableTable(), and MethodGen::getMethod().
|
|
Resize internal array of constants. Definition at line 390 of file src/de/fub/bytecode/generic/ConstantPoolGen.java. |
|
Resize internal array of constants. Definition at line 393 of file lib/jpf/de/fub/bytecode/generic/ConstantPoolGen.java. Referenced by addDouble(), addFieldref(), addFloat(), addInteger(), addInterfaceMethodref(), addLong(), addMethodref(), addNameAndType(), addString(), and addUtf8().
|
|
Definition at line 403 of file src/de/fub/bytecode/generic/ConstantPoolGen.java. |
|
Definition at line 406 of file lib/jpf/de/fub/bytecode/generic/ConstantPoolGen.java. |
|
Definition at line 407 of file src/de/fub/bytecode/generic/ConstantPoolGen.java. |
|
Definition at line 410 of file lib/jpf/de/fub/bytecode/generic/ConstantPoolGen.java. Referenced by ClassGen::ClassGen(), MethodGen::MethodGen(), FieldOrMethod::getClassName(), MethodGen::getExceptionTable(), FieldGen::getField(), MethodGen::getLineNumberTable(), LocalVariableGen::getLocalVariable(), MethodGen::getLocalVariableTable(), MethodGen::getMethod(), FieldOrMethod::getName(), FieldOrMethod::getSignature(), LDC2_W::getType(), LDC::getType(), and CPInstruction::getType().
|
|
Definition at line 413 of file src/de/fub/bytecode/generic/ConstantPoolGen.java. |
|
Definition at line 416 of file lib/jpf/de/fub/bytecode/generic/ConstantPoolGen.java. Referenced by ClassGen::getJavaClass().
|
|
Definition at line 423 of file src/de/fub/bytecode/generic/ConstantPoolGen.java. |
|
Definition at line 426 of file lib/jpf/de/fub/bytecode/generic/ConstantPoolGen.java. |
|
Look for ConstantClass in ConstantPool named `str'.
Definition at line 432 of file src/de/fub/bytecode/generic/ConstantPoolGen.java. |
|
Look for ConstantClass in ConstantPool named `str'.
Definition at line 435 of file lib/jpf/de/fub/bytecode/generic/ConstantPoolGen.java. |
|
Look for ConstantDouble in ConstantPool.
Definition at line 442 of file src/de/fub/bytecode/generic/ConstantPoolGen.java. |
|
Look for ConstantDouble in ConstantPool.
Definition at line 445 of file lib/jpf/de/fub/bytecode/generic/ConstantPoolGen.java. Referenced by addDouble().
|
|
Look for ConstantFieldref in ConstantPool.
Definition at line 462 of file src/de/fub/bytecode/generic/ConstantPoolGen.java. |
|
Look for ConstantFieldref in ConstantPool.
Definition at line 465 of file lib/jpf/de/fub/bytecode/generic/ConstantPoolGen.java. Referenced by addFieldref().
|
|
Look for ConstantFloat in ConstantPool.
Definition at line 473 of file src/de/fub/bytecode/generic/ConstantPoolGen.java. |
|
Look for ConstantFloat in ConstantPool.
Definition at line 475 of file lib/jpf/de/fub/bytecode/generic/ConstantPoolGen.java. Referenced by addFloat().
|
|
Look for ConstantInteger in ConstantPool.
Definition at line 491 of file src/de/fub/bytecode/generic/ConstantPoolGen.java. |
|
Look for ConstantInteger in ConstantPool.
Definition at line 493 of file lib/jpf/de/fub/bytecode/generic/ConstantPoolGen.java. Referenced by addInteger().
|
|
Look for ConstantInterfaceMethodref in ConstantPool.
Definition at line 515 of file src/de/fub/bytecode/generic/ConstantPoolGen.java. |
|
Look for ConstantInterfaceMethodref in ConstantPool.
Definition at line 517 of file lib/jpf/de/fub/bytecode/generic/ConstantPoolGen.java. Referenced by addInterfaceMethodref().
|
|
Look for ConstantLong in ConstantPool.
Definition at line 526 of file src/de/fub/bytecode/generic/ConstantPoolGen.java. |
|
Look for ConstantLong in ConstantPool.
Definition at line 527 of file lib/jpf/de/fub/bytecode/generic/ConstantPoolGen.java. Referenced by addLong().
|
|
Look for ConstantMethodref in ConstantPool.
Definition at line 550 of file src/de/fub/bytecode/generic/ConstantPoolGen.java. |
|
Look for ConstantMethodref in ConstantPool.
Definition at line 551 of file lib/jpf/de/fub/bytecode/generic/ConstantPoolGen.java. Referenced by addMethodref().
|
|
Look for ConstantNameAndType in ConstantPool.
Definition at line 562 of file src/de/fub/bytecode/generic/ConstantPoolGen.java. |
|
Look for ConstantNameAndType in ConstantPool.
Definition at line 562 of file lib/jpf/de/fub/bytecode/generic/ConstantPoolGen.java. Referenced by addNameAndType().
|
|
Look for ConstantString in ConstantPool containing String `str'.
Definition at line 572 of file src/de/fub/bytecode/generic/ConstantPoolGen.java. |
|
Look for ConstantString in ConstantPool containing String `str'.
Definition at line 572 of file lib/jpf/de/fub/bytecode/generic/ConstantPoolGen.java. Referenced by addString().
|
|
Look for ConstantUtf8 in ConstantPool.
Definition at line 582 of file src/de/fub/bytecode/generic/ConstantPoolGen.java. |
|
Look for ConstantUtf8 in ConstantPool.
Definition at line 582 of file lib/jpf/de/fub/bytecode/generic/ConstantPoolGen.java. Referenced by addUtf8().
|
|
Use with care!
Definition at line 600 of file src/de/fub/bytecode/generic/ConstantPoolGen.java. |
|
Use with care!
Definition at line 600 of file lib/jpf/de/fub/bytecode/generic/ConstantPoolGen.java. |
|
Definition at line 604 of file src/de/fub/bytecode/generic/ConstantPoolGen.java. |
|
Definition at line 604 of file lib/jpf/de/fub/bytecode/generic/ConstantPoolGen.java. |