public class Utf8Constant extends Constant
visitorInfo| Constructor and Description |
|---|
Utf8Constant()
Creates an uninitialized Utf8Constant.
|
Utf8Constant(String string)
Creates a Utf8Constant containing the given string.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Clazz clazz,
ConstantVisitor constantVisitor)
Accepts the given visitor.
|
byte[] |
getBytes()
Returns the UTF-8 data as an array of bytes.
|
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(String utf8String)
Initializes the UTF-8 data with a String.
|
getVisitorInfo, setVisitorInfopublic Utf8Constant()
public Utf8Constant(String string)
public void setBytes(byte[] bytes)
public byte[] getBytes()
public void setString(String utf8String)
public String getString()
public int getTag()
Constantpublic void accept(Clazz clazz, ConstantVisitor constantVisitor)
ConstantCopyright © 2015. All Rights Reserved.