public final class ConstantUtf8 extends Constant
Constant
,
Serialized FormModifier and Type | Field and Description |
---|---|
(package private) static boolean |
BCEL_DONT_CACHE |
(package private) static boolean |
BCEL_STATISTICS |
private java.lang.String |
bytes |
private static java.util.HashMap<java.lang.String,ConstantUtf8> |
cache |
private static int |
considered |
private static int |
created |
private static int |
hits |
private static int |
INITIAL_CACHE_CAPACITY |
private static int |
MAX_CACHE_ENTRIES |
private static long |
serialVersionUID |
private static int |
skipped |
Constructor and Description |
---|
ConstantUtf8(ConstantUtf8 c)
Initialize from another object.
|
ConstantUtf8(java.io.DataInput file)
Initialize instance from file data.
|
ConstantUtf8(java.lang.String bytes) |
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor v)
Called by objects that are traversing the nodes of the tree implicitely
defined by the contents of a Java class.
|
void |
dump(java.io.DataOutputStream file)
Dump String in Utf8 format to file stream.
|
java.lang.String |
getBytes() |
static ConstantUtf8 |
getCachedInstance(java.lang.String s) |
static ConstantUtf8 |
getInstance(java.io.DataInputStream file) |
static ConstantUtf8 |
getInstance(java.lang.String s) |
void |
setBytes(java.lang.String bytes)
Deprecated.
|
java.lang.String |
toString() |
clone, copy, equals, getComparator, getTag, hashCode, readConstant, setComparator
private static final long serialVersionUID
private final java.lang.String bytes
private static final int MAX_CACHE_ENTRIES
private static final int INITIAL_CACHE_CAPACITY
private static java.util.HashMap<java.lang.String,ConstantUtf8> cache
private static int considered
private static int hits
private static int skipped
private static int created
static final boolean BCEL_STATISTICS
static final boolean BCEL_DONT_CACHE
public ConstantUtf8(ConstantUtf8 c)
ConstantUtf8(java.io.DataInput file) throws java.io.IOException
file
- Input streamjava.io.IOException
public ConstantUtf8(java.lang.String bytes)
bytes
- Datapublic static ConstantUtf8 getCachedInstance(java.lang.String s)
public static ConstantUtf8 getInstance(java.lang.String s)
public static ConstantUtf8 getInstance(java.io.DataInputStream file) throws java.io.IOException
java.io.IOException
public void accept(Visitor v)
public final void dump(java.io.DataOutputStream file) throws java.io.IOException
public final java.lang.String getBytes()
public final void setBytes(java.lang.String bytes)
bytes
- the raw bytes of this Utf-8