|
||||||||||
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
public static class AAnnotationsAttributeInfo.Annotation
Storage class for annotations.
Field Summary | |
---|---|
private int |
_pairCount
Number of stored name-value _pairs. |
private AAnnotationsAttributeInfo.Annotation.NameValuePair[] |
_pairs
Name-value _pairs. |
private AUTFPoolInfo |
_type
Type name of annotation. |
Constructor Summary | |
---|---|
AAnnotationsAttributeInfo.Annotation(AUTFPoolInfo type,
short pairCount,
AAnnotationsAttributeInfo.Annotation.NameValuePair[] pairs)
Creates a new annotation. |
|
AAnnotationsAttributeInfo.Annotation(ConstantPool cp,
byte[] data,
int start)
Creates a new annotation. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one. |
java.util.List<AAnnotationsAttributeInfo.Annotation.NameValuePair> |
getPairs()
Returns a list of the pairs. |
int |
getSize()
Returns the size of this annotation. |
java.lang.String |
getType()
Returns the type of the annotation. |
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 annotation into the stream. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private AUTFPoolInfo _type
private int _pairCount
private AAnnotationsAttributeInfo.Annotation.NameValuePair[] _pairs
Constructor Detail |
---|
public AAnnotationsAttributeInfo.Annotation(AUTFPoolInfo type, short pairCount, AAnnotationsAttributeInfo.Annotation.NameValuePair[] pairs)
type
- name of _typepairCount
- number of name-value _pairspairs
- array of name-value _pairspublic AAnnotationsAttributeInfo.Annotation(ConstantPool cp, byte[] data, int start)
cp
- constant pooldata
- data arraystart
- start index in data arrayMethod Detail |
---|
public int getSize()
public void writeToByteArrayOutputStream(ConstantPool cp, java.io.ByteArrayOutputStream baos) throws java.io.IOException
cp
- constant poolbaos
- stream
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringJava()
public java.lang.String getType()
public java.util.List<AAnnotationsAttributeInfo.Annotation.NameValuePair> getPairs()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
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 java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |