| Modifier and Type | Field and Description |
|---|---|
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| public | IntegerMemberValue(int
the index of a CONSTANT_Integer_info structure. index, ConstPool cp)Constructs an int constant value. |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(MemberValueVisitor visitor)
Implements abstract javassist. Accepts a visitor. |
| pack-priv Class | |
| pack-priv Object | getValue(ClassLoader cl, ClassPool cp, Method m)
Implements abstract javassist. Returns the value. |
| public int | |
| public void | |
| public String | |
| public void | write(AnnotationsWriter writer)
Implements abstract javassist. Writes the value. |
| valueIndex | back to summary |
|---|---|
| pack-priv int valueIndex | |
| IntegerMemberValue | back to summary |
|---|---|
| public IntegerMemberValue(int index, ConstPool cp) Constructs an int constant value. The initial value is specified by the constant pool entry at the given index.
| |
| IntegerMemberValue | back to summary |
|---|---|
| public IntegerMemberValue(ConstPool cp, int value) Constructs an int constant value. Note that this constructor receives the initial value as the second parameter unlike the corresponding constructors in the sibling classes. This is for making a difference from the constructor that receives an index into the constant pool table as the first parameter. Note that the index is also int type.
| |
| IntegerMemberValue | back to summary |
|---|---|
| public IntegerMemberValue(ConstPool cp) Constructs an int constant value. The initial value is 0. | |
| accept | back to summary |
|---|---|
| public void accept(MemberValueVisitor visitor) Implements abstract javassist. Accepts a visitor.
| |
| getType | back to summary |
|---|---|
| pack-priv Class Implements abstract javassist.
| |
| getValue | back to summary |
|---|---|
| pack-priv Object getValue(ClassLoader cl, ClassPool cp, Method m) Implements abstract javassist. Doc from javassist. Returns the value. If the value type is a primitive type, the returned value is boxed.
| |
| getValue | back to summary |
|---|---|
| public int getValue() Obtains the value of the member. | |
| setValue | back to summary |
|---|---|
| public void setValue(int newValue) Sets the value of the member. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Obtains the string representation of this object.
| |
| write | back to summary |
|---|---|
| public void write(AnnotationsWriter writer) throws IOException Implements abstract javassist. Writes the value.
| |