|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectproguard.classfile.constant.Constant
proguard.classfile.constant.Utf8Constant
public class Utf8Constant
This Constant represents a UTF-8 constant in the constant pool.
| Field Summary |
|---|
| Fields inherited from class proguard.classfile.constant.Constant |
|---|
visitorInfo |
| Constructor Summary | |
|---|---|
Utf8Constant()
Creates an uninitialized Utf8Constant. |
|
Utf8Constant(java.lang.String string)
Creates a Utf8Constant containing the given string. |
|
| Method Summary | |
|---|---|
void |
accept(Clazz clazz,
ConstantVisitor constantVisitor)
Accepts the given visitor. |
byte[] |
getBytes()
Returns the UTF-8 data as an array of bytes. |
java.lang.String |
getString()
Returns the UTF-8 data as a String. |
int |
getTag()
Returns the constant pool info tag that specifies the entry type. |
void |
setBytes(byte[] bytes)
Initializes the UTF-8 data with an array of bytes. |
void |
setString(java.lang.String utf8String)
Initializes the UTF-8 data with a String. |
| Methods inherited from class proguard.classfile.constant.Constant |
|---|
getVisitorInfo, setVisitorInfo |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Utf8Constant()
public Utf8Constant(java.lang.String string)
| Method Detail |
|---|
public void setBytes(byte[] bytes)
public byte[] getBytes()
public void setString(java.lang.String utf8String)
public java.lang.String getString()
public int getTag()
Constant
getTag in class Constant
public void accept(Clazz clazz,
ConstantVisitor constantVisitor)
Constant
accept in class Constant
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||