|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.rice.cs.cunit.classFile.attributes.AAnnotationsAttributeInfo.Annotation.AMemberValue edu.rice.cs.cunit.classFile.attributes.AAnnotationsAttributeInfo.Annotation.EnumMemberValue
public static class AAnnotationsAttributeInfo.Annotation.EnumMemberValue
Storage class for an enum.
Field Summary | |
---|---|
(package private) AUTFPoolInfo |
constValue
Name of the enum member. |
(package private) AUTFPoolInfo |
typeName
Name of the enum class. |
Fields inherited from class edu.rice.cs.cunit.classFile.attributes.AAnnotationsAttributeInfo.Annotation.AMemberValue |
---|
tag |
Constructor Summary | |
---|---|
AAnnotationsAttributeInfo.Annotation.EnumMemberValue(char tag,
AUTFPoolInfo typeName,
AUTFPoolInfo constValue)
Creates a new enum value. |
Method Summary | ||
---|---|---|
boolean |
equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one. |
|
|
execute(AAnnotationsAttributeInfo.Annotation.IMemberValueVisitor<R,P> v,
P param)
Execute a visitor. |
|
AUTFPoolInfo |
getConstValue()
Accessor for the constant value. |
|
int |
getSize()
Returns the size of this value. |
|
AUTFPoolInfo |
getTypeName()
Accessor for the type name. |
|
int |
hashCode()
Returns a hash code value for the object. |
|
java.lang.String |
toString()
Returns a string representation of the object. |
|
java.lang.String |
toStringJava()
Returns a string representation of the object like it would be seen in a Java listing. |
|
void |
writeToByteArrayOutputStream(ConstantPool cp,
java.io.ByteArrayOutputStream baos)
Writes this value into the stream. |
Methods inherited from class edu.rice.cs.cunit.classFile.attributes.AAnnotationsAttributeInfo.Annotation.AMemberValue |
---|
getTag, read |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
AUTFPoolInfo typeName
AUTFPoolInfo constValue
Constructor Detail |
---|
public AAnnotationsAttributeInfo.Annotation.EnumMemberValue(char tag, AUTFPoolInfo typeName, AUTFPoolInfo constValue)
tag
- _type tagtypeName
- name of enum classconstValue
- name of enum memberMethod Detail |
---|
public int getSize()
getSize
in class AAnnotationsAttributeInfo.Annotation.AMemberValue
public void writeToByteArrayOutputStream(ConstantPool cp, java.io.ByteArrayOutputStream baos) throws java.io.IOException
writeToByteArrayOutputStream
in class AAnnotationsAttributeInfo.Annotation.AMemberValue
cp
- constant poolbaos
- stream
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringJava()
toStringJava
in class AAnnotationsAttributeInfo.Annotation.AMemberValue
public <R,P> R execute(AAnnotationsAttributeInfo.Annotation.IMemberValueVisitor<R,P> v, P param)
execute
in class AAnnotationsAttributeInfo.Annotation.AMemberValue
v
- visitorparam
- visitor-specific parameter
public AUTFPoolInfo getTypeName()
public AUTFPoolInfo getConstValue()
public boolean equals(java.lang.Object o)
equals
in class AAnnotationsAttributeInfo.Annotation.AMemberValue
o
- the reference object with which to compare.
true
if this object is the same as the obj argument; false
otherwise.public int hashCode()
hashCode
in class AAnnotationsAttributeInfo.Annotation.AMemberValue
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |