Modifier and Type | Class and Description |
---|---|
private static class |
ConstantUtf8.CACHE_HOLDER |
Modifier and Type | Field and Description |
---|---|
private static boolean |
BCEL_STATISTICS |
private java.lang.String |
bytes |
private static int |
considered |
private static int |
created |
private static int |
hits |
private static int |
MAX_CACHED_SIZE |
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.
|
(package private) static void |
clearStats() |
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.DataInput input) |
static ConstantUtf8 |
getInstance(java.lang.String s) |
(package private) static void |
printStats() |
void |
setBytes(java.lang.String bytes)
Deprecated.
(since 6.0)
|
java.lang.String |
toString() |
clone, copy, equals, getComparator, getTag, hashCode, readConstant, setComparator
private final java.lang.String bytes
private static volatile int considered
private static volatile int hits
private static volatile int skipped
private static volatile int created
private static final int MAX_CACHED_SIZE
private static final boolean BCEL_STATISTICS
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
- Datastatic void printStats()
static void clearStats()
public static ConstantUtf8 getCachedInstance(java.lang.String s)
public static ConstantUtf8 getInstance(java.lang.String s)
public static ConstantUtf8 getInstance(java.io.DataInput input) 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()
@Deprecated public final void setBytes(java.lang.String bytes)
bytes
- the raw bytes of this Utf-8