public class IntegerMemberValue extends MemberValue
Constructor and Description |
---|
IntegerMemberValue(ConstPool cp)
Constructs an int constant value.
|
IntegerMemberValue(ConstPool cp,
int value)
Constructs an int constant value.
|
IntegerMemberValue(int index,
ConstPool cp)
Constructs an int constant value.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(MemberValueVisitor visitor)
Accepts a visitor.
|
int |
getValue()
Obtains the value of the member.
|
void |
setValue(int newValue)
Sets the value of the member.
|
String |
toString()
Obtains the string representation of this object.
|
void |
write(AnnotationsWriter writer)
Writes the value.
|
public IntegerMemberValue(int index, ConstPool cp)
index
- the index of a CONSTANT_Integer_info structure.public IntegerMemberValue(ConstPool cp, int value)
value
- the initial value.public IntegerMemberValue(ConstPool cp)
public int getValue()
public void setValue(int 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 © 2019. All rights reserved.