|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--jreversepro.parser.JAttribute
JAttribute has the ability to read the 'ATTRIBUTES' of the Field , Method and the Class as a whole.
| Field Summary | |
static java.lang.String |
CODE
Code attribute of a Method. |
static java.lang.String |
CONSTANT_VALUE
ConstantValue attribute of a Method. |
static java.lang.String |
DEPRECATED
Deprecated attribute of a Method. |
static java.lang.String |
EXCEPTIONS
Exceptions attribute of a Method. |
static java.lang.String |
LINENUMBERTABLE
LineNumberTable attribute of a Method. |
static java.lang.String |
LOCALVARIABLETABLE
LocalVariableTable attribute of a Method. |
static java.lang.String |
SOURCEFILE
SourceFile attribute of a Method. |
static java.lang.String |
SYNTHETIC
Synthetic attribute of a Method. |
| Constructor Summary | |
JAttribute()
|
|
| Method Summary | |
static void |
manipCode(java.io.DataInputStream aDis,
JMethod aLocalMethod,
JConstantPool aCpInfo)
Manipulates the 'Code' attribute of the Methods. |
static java.lang.String |
manipConstantValue(java.io.DataInputStream aDis,
JConstantPool aCpInfo)
Manipulates the 'ConstantValue' attribute of the Fields. |
static void |
manipDeprecated(java.io.DataInputStream aDis)
Manipulates the 'Deprecated' attribute of the Fields. |
static java.util.List |
manipExceptions(java.io.DataInputStream aDis,
JConstantPool aCpInfo)
Manipulates the Exceptions attribute. |
static java.lang.String |
manipSourceFile(java.io.DataInputStream aDis,
JConstantPool aCpInfo)
Manipulates the 'SourceFile' attribute of the Fields. |
static void |
manipSynthetic(java.io.DataInputStream aDis)
Manipulates the 'Synthetic' attribute of the Fields. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String CONSTANT_VALUE
public static final java.lang.String DEPRECATED
public static final java.lang.String SYNTHETIC
public static final java.lang.String CODE
public static final java.lang.String EXCEPTIONS
public static final java.lang.String LINENUMBERTABLE
public static final java.lang.String LOCALVARIABLETABLE
public static final java.lang.String SOURCEFILE
| Constructor Detail |
public JAttribute()
| Method Detail |
public static java.lang.String manipConstantValue(java.io.DataInputStream aDis,
JConstantPool aCpInfo)
throws java.io.IOException,
ClassParserException
ConstantValue attribute
u2 attribute_name_index;
u4 attribute_length;
u2 constantvalue_index;
aDis - DataInputStream containing the bytes of the class.aCpInfo - ConstantPool Information.
java.io.IOException - Error in Class Stream of bytes.
ClassParserException - Thrown in case of any wrong
constantpool reference.
public static void manipDeprecated(java.io.DataInputStream aDis)
throws java.io.IOException
Deprecated attribute
u2 attribute_name_index;
u4 attribute_length;
aDis - DataInputStream containing the bytes of the class.
java.io.IOException - Error in Class Stream of bytes.
public static void manipSynthetic(java.io.DataInputStream aDis)
throws java.io.IOException
Synthetic attribute
u2 attribute_name_index;
u4 attribute_length;
aDis - DataInputStream containing the bytes of the class.
java.io.IOException - Error in Class Stream of bytes.
public static void manipCode(java.io.DataInputStream aDis,
JMethod aLocalMethod,
JConstantPool aCpInfo)
throws java.io.IOException
Code attribute
u2 attribute_name_index;
u4 attribute_length;
u2 max_stack;
u2 max_locals;
u4 code_length;
u1 code[code_length];
u2 exception_table_length;
{
u2 start_pc; u2 end_pc; u2 handler_pc; u2 catch_type;
} exception_table[exception_table_length];
u2 attributes_count;
attribute_info attributes[attributes_count];
aDis - DataInputStream containing the bytes of the class.aCpInfo - ConstantPool Information.aLocalMethod - Reference to the current method for which the code
is to be manipulated.
java.io.IOException - Error in Class Stream of bytes.
public static java.lang.String manipSourceFile(java.io.DataInputStream aDis,
JConstantPool aCpInfo)
throws java.io.IOException
SourceFile attribute
u2 attribute_name_index;
u4 attribute_length;
u2 sourcefile_index;
aDis - DataInputStream containing the bytes of the class.aCpInfo - ConstantPool Information.
java.io.IOException - Error in Class Stream of bytes.
public static java.util.List manipExceptions(java.io.DataInputStream aDis,
JConstantPool aCpInfo)
throws java.io.IOException
Exceptions_attribute
u2 attribute_name_index;
u4 attribute_length;
u2 number_of_exceptions;
u2 exception_index_table[number_of_exceptions];
Present , if there is a throws clause in the declaration of
the method.
aDis - DataInputStream containing the bytes of the class.aCpInfo - ConstantPool Information.
java.io.IOException - Error in Class Stream of bytes.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||