edu.rice.cs.cunit.classFile.attributes
Class AAnnotationsAttributeInfo

java.lang.Object
  extended by edu.rice.cs.cunit.classFile.attributes.AAttributeInfo
      extended by 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

Nested Class Summary
static class AAnnotationsAttributeInfo.Annotation
          Storage class for annotations.
 
Field Summary
 
Fields inherited from class edu.rice.cs.cunit.classFile.attributes.AAttributeInfo
_constantPool, _data, _name
 
Constructor Summary
AAnnotationsAttributeInfo(AUTFPoolInfo name, byte[] data, ConstantPool cp)
          Creates a new abstract 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.
 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, toString, write
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AAnnotationsAttributeInfo

public AAnnotationsAttributeInfo(AUTFPoolInfo name,
                                 byte[] data,
                                 ConstantPool cp)
Creates a new abstract annotations attribute.

Parameters:
name - name of attribute
data - data array
cp - constant pool
Method Detail

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 at
deltaPC - 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 point
oldLnt - old line number table
newLnt - 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