|
||||||||||
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.AAttributeInfo
public abstract class AAttributeInfo
Field Summary | |
---|---|
protected ConstantPool |
_constantPool
Constant pool. |
protected byte[] |
_data
Attribute _data. |
private static java.lang.Class<AAttributeInfo>[] |
_knownAttributes
Array with registered attributes. |
protected AUTFPoolInfo |
_name
Attribute _name information. |
Constructor Summary | |
---|---|
AAttributeInfo(AUTFPoolInfo name,
byte[] data,
ConstantPool cp)
Constructor. |
Method Summary | ||
---|---|---|
abstract 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. |
|
boolean |
equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one. |
|
abstract
|
execute(IAttributeVisitor<R,D> visitor,
D param)
Execute a visitor on this attribute. |
|
byte[] |
getData()
Accessor for data. |
|
AUTFPoolInfo |
getName()
Accessor for _name information. |
|
int |
hashCode()
|
|
static AAttributeInfo |
read(java.io.DataInputStream di,
ConstantPool pool)
Read from stream and return unresolved constant pool object. |
|
void |
setData(byte[] data)
Mutator for data. |
|
void |
setName(AUTFPoolInfo name)
Mutator for _name information. |
|
java.lang.String |
toString()
Return a human-readable version of this attribute. |
|
abstract 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. |
|
void |
write(java.io.DataOutputStream dos)
Write this attribute into a stream |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected AUTFPoolInfo _name
protected byte[] _data
protected ConstantPool _constantPool
private static java.lang.Class<AAttributeInfo>[] _knownAttributes
Constructor Detail |
---|
public AAttributeInfo(AUTFPoolInfo name, byte[] data, ConstantPool cp)
name
- attrobite namedata
- attribute datacp
- Method Detail |
---|
public static AAttributeInfo read(java.io.DataInputStream di, ConstantPool pool) throws java.io.IOException, java.lang.ClassFormatError
di
- streampool
- constant pool
java.io.IOException
java.lang.ClassFormatError
public AUTFPoolInfo getName()
public void setName(AUTFPoolInfo name)
name
- _name informationpublic byte[] getData()
public void setData(byte[] data)
data
- datapublic void write(java.io.DataOutputStream dos) throws java.io.IOException
dos
- output stream
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
public abstract <R,D> R execute(IAttributeVisitor<R,D> visitor, D param)
visitor
- visitorparam
- visitor-specific parameter
public abstract void adjustPC(int startPC, int deltaPC)
startPC
- program counter to start atdeltaPC
- change in program counter valuespublic abstract void translatePC(int index, int deltaIndex, LineNumberTable oldLnt, LineNumberTable newLnt)
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 tablepublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
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 |