public class ByteMemberValue extends MemberValue
| Constructor and Description |
|---|
ByteMemberValue(byte b,
ConstPool cp)
Constructs a byte constant value.
|
ByteMemberValue(ConstPool cp)
Constructs a byte constant value.
|
ByteMemberValue(int index,
ConstPool cp)
Constructs a byte constant value.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(MemberValueVisitor visitor)
Accepts a visitor.
|
byte |
getValue()
Obtains the value of the member.
|
void |
setValue(byte newValue)
Sets the value of the member.
|
java.lang.String |
toString()
Obtains the string representation of this object.
|
void |
write(AnnotationsWriter writer)
Writes the value.
|
public ByteMemberValue(int index,
ConstPool cp)
index - the index of a CONSTANT_Integer_info structure.public ByteMemberValue(byte b,
ConstPool cp)
b - the initial value.public ByteMemberValue(ConstPool cp)
public byte getValue()
public void setValue(byte newValue)
public java.lang.String toString()
toString in class java.lang.Objectpublic void write(AnnotationsWriter writer) throws java.io.IOException
write in class MemberValuejava.io.IOExceptionpublic void accept(MemberValueVisitor visitor)
accept in class MemberValueJavassist, a Java-bytecode translator toolkit.
Copyright (C) 1999- Shigeru Chiba. All Rights Reserved.