public abstract class Entry extends Object implements VisitAcceptor
Entries cannot be shared among constant pools.
Modifier and Type | Field and Description |
---|---|
static int |
CLASS |
static int |
DOUBLE |
static int |
FIELD |
static int |
FLOAT |
static int |
INT |
static int |
INTERFACEMETHOD |
static int |
INVOKEDYNAMIC |
static int |
LONG |
static int |
METHOD |
static int |
METHODHANDLE |
static int |
METHODTYPE |
static int |
NAMEANDTYPE |
static int |
STRING |
static int |
UTF8 |
Constructor and Description |
---|
Entry() |
Modifier and Type | Method and Description |
---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
acceptVisit
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
public static final int METHODHANDLE
public static final int METHODTYPE
public static final int INVOKEDYNAMIC
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()
Copyright © 2002–2019. All rights reserved.