Package | Description |
---|---|
serp.bytecode.lowlevel |
Lowlevel Bytecode Manipuation
|
serp.bytecode.visitor |
Bytecode Visitor
|
Modifier and Type | Class and Description |
---|---|
class |
ClassEntry
A constant pool entry describing a class.
|
class |
ComplexEntry
Base class for field, method, and interface method constant pool
entries.
|
class |
DoubleEntry
A constant double value in the constant pool.
|
class |
FieldEntry
A reference to a class field.
|
class |
FloatEntry
A constant float value in the constant pool.
|
class |
IntEntry
A constant int value in the constant pool.
|
class |
InterfaceMethodEntry
A reference to an interface method.
|
class |
LongEntry
A long constant in the constant pool.
|
class |
MethodEntry
A reference to a class method.
|
class |
NameAndTypeEntry
Entry containing indexes referencing a name and a descriptor.
|
class |
StringEntry
A String constant in the constant pool.
|
class |
UTF8Entry
A unicode string value in the constant pool.
|
Modifier and Type | Method and Description |
---|---|
static Entry |
Entry.create(int type)
Create an entry based on its type code.
|
Entry[] |
ConstantPool.getEntries()
Return all the entries in the pool.
|
Entry |
ConstantPool.getEntry(int index)
Retrieve the entry at the specified 1-based index.
|
static Entry |
Entry.read(DataInput in)
Read a single entry from the given bytecode stream and returns it.
|
Modifier and Type | Method and Description |
---|---|
int |
ConstantPool.addEntry(Entry entry)
Add an entry to the pool.
|
int |
ConstantPool.indexOf(Entry entry)
Return the index of the given entry, or 0 if it is not in the pool.
|
boolean |
ConstantPool.removeEntry(Entry entry)
Remove the given entry from the pool.
|
static void |
Entry.write(Entry entry,
DataOutput out)
Write the given entry to the given bytecode stream.
|
Modifier and Type | Method and Description |
---|---|
void |
PrettyPrintVisitor.enterEntry(Entry obj) |
void |
BCVisitor.enterEntry(Entry obj) |
void |
PrettyPrintVisitor.exitEntry(Entry obj) |
void |
BCVisitor.exitEntry(Entry obj) |
Copyright © 2002-2012. All Rights Reserved.