|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object serp.bytecode.lowlevel.Entry
public abstract class Entry
Base type for all constant pool entries. Entries should generally be considered immutable; modifying an entry directly can have dire consequences, and often renders the resulting class file invalid.
Entries cannot be shared among constant pools.
Field Summary | |
---|---|
static int |
CLASS
|
static int |
DOUBLE
|
static int |
FIELD
|
static int |
FLOAT
|
static int |
INT
|
static int |
INTERFACEMETHOD
|
static int |
LONG
|
static int |
METHOD
|
static int |
NAMEANDTYPE
|
static int |
STRING
|
static int |
UTF8
|
Constructor Summary | |
---|---|
Entry()
|
Method Summary | |
---|---|
static Entry |
create(int type)
Create an entry based on its type code. |
int |
getIndex()
Returns the index of the entry in the owning constant pool, or 0. |
ConstantPool |
getPool()
Returns the constant pool containing this entry, or null if none. |
abstract int |
getType()
Return the type code for this entry type. |
boolean |
isWide()
Return true if this is a wide entry -- i.e. |
static Entry |
read(DataInput in)
Read a single entry from the given bytecode stream and returns it. |
static void |
write(Entry entry,
DataOutput out)
Write the given entry to the given bytecode stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface serp.bytecode.visitor.VisitAcceptor |
---|
acceptVisit |
Field Detail |
---|
public static final int UTF8
public static final int INT
public static final int FLOAT
public static final int LONG
public static final int DOUBLE
public static final int CLASS
public static final int STRING
public static final int FIELD
public static final int METHOD
public static final int INTERFACEMETHOD
public static final int NAMEANDTYPE
Constructor Detail |
---|
public Entry()
Method Detail |
---|
public static Entry read(DataInput in) throws IOException
IOException
public static void write(Entry entry, DataOutput out) throws IOException
IOException
public static Entry create(int type)
public abstract int getType()
public boolean isWide()
public ConstantPool getPool()
public int getIndex()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |