|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.cunit.classFile.attributes.AAttributeInfo
edu.rice.cs.cunit.classFile.attributes.AAnnotationsAttributeInfo
edu.rice.cs.cunit.classFile.attributes.AMultipleAnnotationsAttributeInfo
public abstract class AMultipleAnnotationsAttributeInfo
Represents an abstract annotations attribute in a class file that can contain annotations for multiple entities, like for method parameters or local variables.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class edu.rice.cs.cunit.classFile.attributes.AAnnotationsAttributeInfo |
|---|
AAnnotationsAttributeInfo.Annotation |
| Field Summary |
|---|
| Fields inherited from class edu.rice.cs.cunit.classFile.attributes.AAttributeInfo |
|---|
_constantPool, _data, _name |
| Constructor Summary | |
|---|---|
AMultipleAnnotationsAttributeInfo(AUTFPoolInfo name,
byte[] data,
ConstantPool cp)
Creates a new abstract multiple annotations attribute. |
|
| Method Summary | |
|---|---|
void |
adjustPC(int startPC,
int deltaPC)
Adjust program counter values contained in this attribute, starting at startPC, by adding deltaPC to them. |
java.lang.Object |
clone()
Creates and returns a copy of this object. |
java.util.List<AAnnotationsAttributeInfo.Annotation[]> |
getEntityAnnotations()
Return the list of entity annotations arrays. |
short |
getEntityCount()
Return the number of entities. |
abstract java.lang.String |
getEntityName()
Return the name of the entity, e.g. |
void |
setEntityAnnotations(java.util.List<AAnnotationsAttributeInfo.Annotation[]> entityAnnots)
Set the entity annotations list. |
java.lang.String |
toString()
Return a human-readable version of this attribute. |
void |
translatePC(int index,
int deltaIndex,
LineNumberTable oldLnt,
LineNumberTable newLnt)
Translate the program counter values contained in this attribute from an old line number table to a new one. |
| Methods inherited from class edu.rice.cs.cunit.classFile.attributes.AAttributeInfo |
|---|
equals, execute, getData, getName, hashCode, read, setData, setName, write |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AMultipleAnnotationsAttributeInfo(AUTFPoolInfo name,
byte[] data,
ConstantPool cp)
name - name of attributedata - data arraycp - constant pool| Method Detail |
|---|
public short getEntityCount()
throws java.lang.ClassFormatError
java.lang.ClassFormatError
public java.util.List<AAnnotationsAttributeInfo.Annotation[]> getEntityAnnotations()
throws java.lang.ClassFormatError
java.lang.ClassFormatError
public void setEntityAnnotations(java.util.List<AAnnotationsAttributeInfo.Annotation[]> entityAnnots)
throws java.io.IOException
entityAnnots - list of arrays of entity anotations
java.lang.ClassFormatError
java.io.IOExceptionpublic java.lang.String toString()
toString in class AAttributeInfopublic abstract java.lang.String getEntityName()
public void adjustPC(int startPC,
int deltaPC)
adjustPC in class AAnnotationsAttributeInfostartPC - program counter to start atdeltaPC - change in program counter values
public void translatePC(int index,
int deltaIndex,
LineNumberTable oldLnt,
LineNumberTable newLnt)
translatePC in class AAnnotationsAttributeInfoindex - critical point (insertion or deletion point)deltaIndex - delta value to add to all old line numbers greater than the critical pointoldLnt - old line number tablenewLnt - new line number table
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class AAnnotationsAttributeInfojava.lang.CloneNotSupportedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||