Typedefs | |
typedef Class_ * | class_handler |
Define class handler. | |
typedef Field_ * | field_handler |
Define field handler. | |
typedef Method_ * | method_handler |
Define method handler. | |
typedef ClassLoader_ * | classloader_handler |
Define class loader handler. | |
Enumerations | |
enum | ClassConstantPoolTags { _CONSTANT_Unknown = 0, _CONSTANT_Utf8 = 1, _CONSTANT_Integer = 3, _CONSTANT_Float = 4, _CONSTANT_Long = 5, _CONSTANT_Double = 6, _CONSTANT_Class = 7, _CONSTANT_String = 8, _CONSTANT_Fieldref = 9, _CONSTANT_Methodref = 10, _CONSTANT_InterfaceMethodref = 11, _CONSTANT_NameAndType = 12 } |
Enum of constant pool tags. More... | |
Functions | |
unsigned short | class_get_version (class_handler klass) |
Function returns class major version. | |
const char * | class_get_name (class_handler klass) |
Function returns class name. | |
classloader_handler | class_get_class_loader (class_handler klass) |
Function returns class loader. | |
class_handler | class_get_super_class (class_handler klass) |
Function returns super class of current class. | |
unsigned | class_is_same_class (class_handler klass1, class_handler klass2) |
Function checks if classes are equal. | |
unsigned | class_is_same_package (class_handler klass1, class_handler klass2) |
Function checks if classes have the same package. | |
unsigned | class_is_interface_ (class_handler klass) |
Function checks if current class is interface. | |
unsigned | class_is_array (class_handler klass) |
Function checks if current class is array. | |
unsigned | class_is_final_ (class_handler klass) |
Function checks if current class is final. | |
unsigned short | class_get_superinterface_number (class_handler klass) |
Function receives number of super interfaces of class. | |
class_handler | class_get_superinterface (class_handler klass, unsigned short index) |
Function receives super interface of class. | |
class_handler | class_get_array_element_class (class_handler klass) |
Function receives element class of array class. | |
class_handler | class_is_extending_class (class_handler klass, const char *super_name) |
Function checks if class extends current class with given name. | |
unsigned short | class_get_method_number (class_handler klass) |
Function returns number of methods for current class. | |
method_handler | class_get_method (class_handler klass, unsigned short index) |
Function returns method of current class. | |
unsigned short | class_get_cp_size (class_handler klass) |
Function returns class constant pool size. | |
unsigned char | class_get_cp_tag (class_handler klass, unsigned short index) |
Function returns constant pool entry tag. | |
unsigned short | class_get_cp_class_name_index (class_handler klass, unsigned short index) |
Function returns class name entry index in constant pool. | |
unsigned short | class_get_cp_ref_class_index (class_handler klass, unsigned short index) |
Function returns class name entry index in constant pool. | |
unsigned short | class_get_cp_ref_name_and_type_index (class_handler klass, unsigned short index) |
Function returns name_and_type entry index in constant pool. | |
unsigned short | class_get_cp_string_index (class_handler klass, unsigned short index) |
Function returns string entry index in constant pool. | |
unsigned short | class_get_cp_name_index (class_handler klass, unsigned short index) |
Function returns name entry index in constant pool. | |
unsigned short | class_get_cp_descriptor_index (class_handler klass, unsigned short index) |
Function returns descriptor entry index in constant pool. | |
const char * | class_get_cp_utf8_bytes (class_handler klass, unsigned short index) |
Function returns bytes for UTF8 constant pool entry. | |
void | class_set_verify_data_ptr (class_handler klass, void *data) |
Function sets verify data to a given class. | |
void * | class_get_verify_data_ptr (class_handler klass) |
Function returns verify data for a given class. | |
method_handler | class_resolve_method (class_handler klass, unsigned short index) |
Function resolves class nonstatic method for constant pool entry. | |
field_handler | class_resolve_nonstatic_field (class_handler klass, unsigned short index) |
Function resolves class nonstatic field for constant pool entry. | |
class_handler | method_get_class (method_handler hmethod) |
Function returns a class in which the method is declared. | |
const char * | method_get_name (method_handler method) |
Function returns method name. | |
const char * | method_get_descriptor (method_handler method) |
Function returns method descriptor. | |
unsigned | method_get_code_length (method_handler method) |
Function returns method code length. | |
unsigned char * | method_get_bytecode (method_handler method) |
Function returns method bytecode array. | |
unsigned short | method_get_max_local (method_handler method) |
Function returns maximal local variables number of method. | |
unsigned short | method_get_max_stack (method_handler method) |
Function returns maximal stack deep of method. | |
unsigned | method_is_static (method_handler method) |
Function checks if method is static. | |
unsigned | method_is_protected (method_handler method) |
Function checks if a given method is protected. | |
unsigned short | method_get_exc_handler_number (method_handler method) |
Function returns number of method exception handlers. | |
void | method_get_exc_handler_info (method_handler method, unsigned short index, unsigned short *start_pc, unsigned short *end_pc, unsigned short *handler_pc, unsigned short *catch_type) |
Function obtains method exception handler info. | |
unsigned short | method_get_number_exc_method_can_throw (method_handler hmethod) |
Gets number of exceptions a method can throw. | |
const char * | method_get_exc_method_can_throw (method_handler hmethod, unsigned short index) |
Gets name of exception a method can throw. | |
unsigned char * | method_get_stackmaptable (method_handler hmethod) |
Gets StackMapTable attribute. | |
void | cl_set_verify_data_ptr (classloader_handler classloader, void *data) |
Function sets verify data in class loader. | |
void * | cl_get_verify_data_ptr (classloader_handler classloader) |
Function returns verify data in class loader. | |
void | cl_acquire_lock (classloader_handler classloader) |
Function locks class loader. | |
void | cl_release_lock (classloader_handler classloader) |
Function releases class loader. | |
class_handler | cl_get_class (classloader_handler classloader, const char *name) |
Function returns loaded class in class loader. | |
class_handler | cl_load_class (classloader_handler classloader, const char *name) |
Function returns loaded class in class loader. | |
unsigned | field_is_protected (field_handler field) |
Function checks if the field is protected. |
typedef struct Class_* class_handler |
Define class handler.
typedef struct Field_* field_handler |
Define field handler.
typedef struct Method_* method_handler |
Define method handler.
typedef struct ClassLoader_* classloader_handler |
Define class loader handler.
unsigned short class_get_version | ( | class_handler | klass | ) |
Function returns class major version.
klass | - class handler |
const char* class_get_name | ( | class_handler | klass | ) |
Function returns class name.
klass | - class handler |
classloader_handler class_get_class_loader | ( | class_handler | klass | ) |
Function returns class loader.
klass | - class handler |
class_handler class_get_super_class | ( | class_handler | klass | ) |
Function returns super class of current class.
klass | - class handler |
unsigned class_is_same_class | ( | class_handler | klass1, | |
class_handler | klass2 | |||
) |
Function checks if classes are equal.
klass1 | - class handler | |
klass2 | - class handler |
true
, else returns false
. unsigned class_is_same_package | ( | class_handler | klass1, | |
class_handler | klass2 | |||
) |
Function checks if classes have the same package.
klass1 | - class handler | |
klass2 | - class handler |
true
, else returns false
. unsigned class_is_interface_ | ( | class_handler | klass | ) |
Function checks if current class is interface.
klass | - class handler |
true
, else returns false
. unsigned class_is_array | ( | class_handler | klass | ) |
Function checks if current class is array.
klass | - class handler |
true
, else returns false
. unsigned class_is_final_ | ( | class_handler | klass | ) |
Function checks if current class is final.
klass | - class handler |
true
, else returns false
. unsigned short class_get_superinterface_number | ( | class_handler | klass | ) |
Function receives number of super interfaces of class.
klass | - class handler |
class_handler class_get_superinterface | ( | class_handler | klass, | |
unsigned short | index | |||
) |
Function receives super interface of class.
klass | - class handler | |
index | - super interface number |
class_handler class_get_array_element_class | ( | class_handler | klass | ) |
Function receives element class of array class.
klass | - class handler |
class_handler class_is_extending_class | ( | class_handler | klass, | |
const char * | super_name | |||
) |
Function checks if class extends current class with given name.
klass | - checked klass | |
super_name | - parent class name |
unsigned short class_get_method_number | ( | class_handler | klass | ) |
Function returns number of methods for current class.
klass | - class handler |
method_handler class_get_method | ( | class_handler | klass, | |
unsigned short | index | |||
) |
Function returns method of current class.
klass | - class handler | |
index | - method index |
unsigned short class_get_cp_size | ( | class_handler | klass | ) |
Function returns class constant pool size.
klass | - class handler |
unsigned char class_get_cp_tag | ( | class_handler | klass, | |
unsigned short | index | |||
) |
Function returns constant pool entry tag.
klass | - class handler | |
index | - constant pool entry index |
unsigned short class_get_cp_class_name_index | ( | class_handler | klass, | |
unsigned short | index | |||
) |
Function returns class name entry index in constant pool.
klass | - class handler | |
index | - constant pool entry index |
Assertion is raised if klass is equal to null or index is out of range.
unsigned short class_get_cp_ref_class_index | ( | class_handler | klass, | |
unsigned short | index | |||
) |
Function returns class name entry index in constant pool.
klass | - class handler | |
index | - constant pool entry index |
Assertion is raised if klass is equal to null or index is out of range.
unsigned short class_get_cp_ref_name_and_type_index | ( | class_handler | klass, | |
unsigned short | index | |||
) |
Function returns name_and_type entry index in constant pool.
klass | - class handler | |
index | - constant pool entry index |
Assertion is raised if klass is equal to null or index is out of range.
unsigned short class_get_cp_string_index | ( | class_handler | klass, | |
unsigned short | index | |||
) |
Function returns string entry index in constant pool.
klass | - class handler | |
index | - constant pool entry index |
Assertion is raised if klass is equal to null or index is out of range.
unsigned short class_get_cp_name_index | ( | class_handler | klass, | |
unsigned short | index | |||
) |
Function returns name entry index in constant pool.
klass | - class handler | |
index | - constant pool entry index |
Assertion is raised if klass is equal to null or index is out of range.
unsigned short class_get_cp_descriptor_index | ( | class_handler | klass, | |
unsigned short | index | |||
) |
Function returns descriptor entry index in constant pool.
klass | - class handler | |
index | - constant pool entry index |
Assertion is raised if klass is equal to null or index is out of range.
const char* class_get_cp_utf8_bytes | ( | class_handler | klass, | |
unsigned short | index | |||
) |
Function returns bytes for UTF8 constant pool entry.
klass | - class handler | |
index | - constant pool entry index |
Assertion is raised if klass is equal to null or index is out of range.
void class_set_verify_data_ptr | ( | class_handler | klass, | |
void * | data | |||
) |
Function sets verify data to a given class.
klass | - class handler | |
data | - verify data |
Function makes non thread save operation and must be called in thread safe point.
void* class_get_verify_data_ptr | ( | class_handler | klass | ) |
Function returns verify data for a given class.
klass | - class handler |
method_handler class_resolve_method | ( | class_handler | klass, | |
unsigned short | index | |||
) |
Function resolves class nonstatic method for constant pool entry.
klass | - class handle | |
index | - constant pool entry index | |
exc | - pointer to exception |
field_handler class_resolve_nonstatic_field | ( | class_handler | klass, | |
unsigned short | index | |||
) |
Function resolves class nonstatic field for constant pool entry.
klass | - class handle | |
index | - constant pool entry index | |
exc | - pointer to exception |
class_handler method_get_class | ( | method_handler | hmethod | ) |
Function returns a class in which the method is declared.
method | - method handler |
const char* method_get_name | ( | method_handler | method | ) |
Function returns method name.
method | - method handler |
const char* method_get_descriptor | ( | method_handler | method | ) |
Function returns method descriptor.
method | - method handler |
unsigned method_get_code_length | ( | method_handler | method | ) |
Function returns method code length.
method | - method handler |
unsigned char* method_get_bytecode | ( | method_handler | method | ) |
Function returns method bytecode array.
method | - method handler |
unsigned short method_get_max_local | ( | method_handler | method | ) |
Function returns maximal local variables number of method.
method | - method handler |
unsigned short method_get_max_stack | ( | method_handler | method | ) |
Function returns maximal stack deep of method.
method | - method handler |
unsigned method_is_static | ( | method_handler | method | ) |
Function checks if method is static.
method | - method handler |
true
, else returns false
. unsigned method_is_protected | ( | method_handler | method | ) |
Function checks if a given method is protected.
method | - method handle |
TRUE
if a given method is protected.unsigned short method_get_exc_handler_number | ( | method_handler | method | ) |
Function returns number of method exception handlers.
method | - method handler |
void method_get_exc_handler_info | ( | method_handler | method, | |
unsigned short | index, | |||
unsigned short * | start_pc, | |||
unsigned short * | end_pc, | |||
unsigned short * | handler_pc, | |||
unsigned short * | catch_type | |||
) |
Function obtains method exception handler info.
method | - method handler | |
index | - exception handler index number | |
start_pc | - resulting pointer to exception handler start program count | |
end_pc | - resulting pointer to exception handler end program count | |
handler_pc | - resulting pointer to exception handler program count | |
catch_type | - resulting pointer to constant pool entry index |
unsigned short method_get_number_exc_method_can_throw | ( | method_handler | hmethod | ) |
Gets number of exceptions a method can throw.
Parameter hmethod must not equal to NULL
.
hmethod | method handle |
const char* method_get_exc_method_can_throw | ( | method_handler | hmethod, | |
unsigned short | index | |||
) |
Gets name of exception a method can throw.
Parameter hmethod must not equal to NULL
. If parameter index is out of range, returns NULL
.
hmethod | method handle | |
index | index of exception |
unsigned char* method_get_stackmaptable | ( | method_handler | hmethod | ) |
Gets StackMapTable attribute.
Parameter hmethod must not equal to NULL
. If parameter index is out of range, returns NULL
.
hmethod | method handle |
void cl_set_verify_data_ptr | ( | classloader_handler | classloader, | |
void * | data | |||
) |
Function sets verify data in class loader.
classloader | - class loader handler | |
data | - verify data |
Function makes non thread save operation and must be called in thread safe point.
void* cl_get_verify_data_ptr | ( | classloader_handler | classloader | ) |
Function returns verify data in class loader.
classloader | - class loader handler |
void cl_acquire_lock | ( | classloader_handler | classloader | ) |
Function locks class loader.
classloader | - class loader handler |
void cl_release_lock | ( | classloader_handler | classloader | ) |
Function releases class loader.
classloader | - class loader handler |
class_handler cl_get_class | ( | classloader_handler | classloader, | |
const char * | name | |||
) |
Function returns loaded class in class loader.
classloader | - class loader handler | |
name | - class name |
class_handler cl_load_class | ( | classloader_handler | classloader, | |
const char * | name | |||
) |
Function returns loaded class in class loader.
classloader | - class loader handler | |
name | - class name |
unsigned field_is_protected | ( | field_handler | field | ) |
Function checks if the field is protected.
field | - field handler |
TRUE
if the field is protected.
Genereated on Tue Mar 11 19:25:56 2008 by Doxygen.
(c) Copyright 2005, 2008 The Apache Software Foundation or its licensors, as applicable.