|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.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 _pairs
public AAnnotationsAttributeInfo.Annotation(ConstantPool cp,
byte[] data,
int start)
cp - constant pooldata - data arraystart - start index in data array| Method Detail |
|---|
public int getSize()
public void writeToByteArrayOutputStream(ConstantPool cp,
java.io.ByteArrayOutputStream baos)
throws java.io.IOException
cp - constant poolbaos - stream
java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic 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.Objecto - 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 | |||||||||