public class ShortMemberValue extends MemberValue
Constructor | Description |
---|---|
ShortMemberValue(int index,
ConstPool cp) |
Constructs a short constant value.
|
ShortMemberValue(short s,
ConstPool cp) |
Constructs a short constant value.
|
ShortMemberValue(ConstPool cp) |
Constructs a short constant value.
|
Modifier and Type | Method | Description |
---|---|---|
void |
accept(MemberValueVisitor visitor) |
Accepts a visitor.
|
short |
getValue() |
Obtains the value of the member.
|
void |
setValue(short newValue) |
Sets the value of the member.
|
String |
toString() |
Obtains the string representation of this object.
|
void |
write(AnnotationsWriter writer) |
Writes the value.
|
public ShortMemberValue(int index, ConstPool cp)
index
- the index of a CONSTANT_Integer_info structure.public ShortMemberValue(short s, ConstPool cp)
s
- the initial value.public ShortMemberValue(ConstPool cp)
public short getValue()
public void setValue(short newValue)
public String toString()
public void write(AnnotationsWriter writer) throws IOException
write
in class MemberValue
IOException
public void accept(MemberValueVisitor visitor)
accept
in class MemberValue
Copyright © 2018 Shigeru Chiba, www.javassist.org. All rights reserved.