|
||||||||||
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.ArrayMemberValue
public static class AAnnotationsAttributeInfo.Annotation.ArrayMemberValue
Storage class for an array.
Field Summary | |
---|---|
(package private) AAnnotationsAttributeInfo.Annotation.AMemberValue[] |
entries
Array of values. |
(package private) int |
numEntries
Number of entries in array. |
Fields inherited from class edu.rice.cs.cunit.classFile.attributes.AAnnotationsAttributeInfo.Annotation.AMemberValue |
---|
tag |
Constructor Summary | |
---|---|
AAnnotationsAttributeInfo.Annotation.ArrayMemberValue(char tag,
int numEntries,
AAnnotationsAttributeInfo.Annotation.AMemberValue[] entries)
Creates a new array. |
|
AAnnotationsAttributeInfo.Annotation.ArrayMemberValue(ConstantPool cp,
byte[] data,
int start)
Creates a new array. |
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. |
|
AAnnotationsAttributeInfo.Annotation.AMemberValue[] |
getEntries()
Accessor for the entries. |
|
int |
getSize()
Returns the size of this value. |
|
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 |
---|
int numEntries
AAnnotationsAttributeInfo.Annotation.AMemberValue[] entries
Constructor Detail |
---|
public AAnnotationsAttributeInfo.Annotation.ArrayMemberValue(char tag, int numEntries, AAnnotationsAttributeInfo.Annotation.AMemberValue[] entries)
tag
- _type tagnumEntries
- number of entriesentries
- array of entriespublic AAnnotationsAttributeInfo.Annotation.ArrayMemberValue(ConstantPool cp, byte[] data, int start)
cp
- constant pooldata
- data arratstart
- start index in arrayMethod 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 AAnnotationsAttributeInfo.Annotation.AMemberValue[] getEntries()
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 |