edu.rice.cs.cunit.classFile.attributes
Class AAnnotationsAttributeInfo
java.lang.Object
edu.rice.cs.cunit.classFile.attributes.AAttributeInfo
edu.rice.cs.cunit.classFile.attributes.AAnnotationsAttributeInfo
- All Implemented Interfaces:
- java.lang.Cloneable
- Direct Known Subclasses:
- AMultipleAnnotationsAttributeInfo, AMultipleNamedAnnotationsAttributeInfo, ASingleAnnotationsAttributeInfo
public abstract class AAnnotationsAttributeInfo
- extends AAttributeInfo
Represents an abstract Annotations attribute in a class file.
- Author:
- Mathias Ricken
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. |
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 java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
AAnnotationsAttributeInfo
public AAnnotationsAttributeInfo(AUTFPoolInfo name,
byte[] data,
ConstantPool cp)
- Creates a new abstract annotations attribute.
- Parameters:
name
- name of attributedata
- data arraycp
- constant pool
adjustPC
public void adjustPC(int startPC,
int deltaPC)
- Adjust program counter values contained in this attribute, starting at startPC, by adding deltaPC to them.
- Specified by:
adjustPC
in class AAttributeInfo
- Parameters:
startPC
- program counter to start atdeltaPC
- change in program counter values
translatePC
public 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.
- Specified by:
translatePC
in class AAttributeInfo
- Parameters:
index
- 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
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Creates and returns a copy of this object.
- Overrides:
clone
in class AAttributeInfo
- Throws:
java.lang.CloneNotSupportedException