|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectsysModel.classFile.attributes.AAttributeInfo
public abstract class AAttributeInfo
Abstract class file attribute.
| Field Summary | |
|---|---|
protected ConstantPool |
_constantPool
Constant pool. |
protected byte[] |
_data
Attribute _data. |
private static java.lang.Class[] |
_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(short startPC,
short deltaPC)
Adjust program counter values contained in this attribute, starting at startPC, by adding deltaPC to them. |
|
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. |
|
java.lang.Object |
lone()
Creates and returns a copy of this object. |
|
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(short index,
short 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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected AUTFPoolInfo _name
protected byte[] _data
protected ConstantPool _constantPool
private static java.lang.Class[] _knownAttributes
| Constructor Detail |
|---|
public AAttributeInfo(AUTFPoolInfo name,
byte[] data,
ConstantPool cp)
name - attrobite namedata - attribute datacp - constant pool| 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.ClassFormatErrorpublic AUTFPoolInfo getName()
public void setName(AUTFPoolInfo name)
name - _name informationpublic byte[] getData()
public void setData(byte[] data)
data - data
public void write(java.io.DataOutputStream dos)
throws java.io.IOException
dos - output stream
java.io.IOExceptionpublic 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(short startPC,
short deltaPC)
startPC - program counter to start atdeltaPC - change in program counter values
public abstract void translatePC(short index,
short 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 table
public java.lang.Object lone()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException - if the object's class does not support the Cloneable interface.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||