Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
Licensed under the Apache License, Version 2.0 ("the License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and limitations under the License.
Definition in file field.h.
#include "jvalue.h"
Go to the source code of this file.
Defines | |
#define | FIELD(clsidx, fldidx) (CLASS_OBJECT_LINKAGE(clsidx)->pcfs->fields[fldidx]) |
Access structures of a class' field table at certain index. | |
Functions | |
ARCH_COPYRIGHT_APACHE (field, h,"$URL: https://svn.apache.org/path/name/field.h $ $Id: field.h 0 09/28/2005 dlydick $") | |
jvm_field_index | field_find_by_cp_entry (jvm_class_index clsidx, cp_info_dup *fldname, cp_info_dup *flddesc) |
Locate the field_info index for a field in a class. | |
jvm_field_lookup_index | field_index_get_class_static_lookup (jvm_class_index clsidx, jvm_field_index fldidx) |
Retrieve by field index a field lookup index to a static class instance field. | |
jvalue * | field_index_get_class_static_pjvalue (jvm_class_index clsidx, jvm_field_index fldidx) |
Retrieve by field index the value of a static class instance field. | |
jvm_field_lookup_index | field_index_get_object_instance_lookup (jvm_class_index clsidx, jvm_field_index fldidx) |
Retrieve by field index a field lookup index to an object instance field. | |
jvalue * | field_index_get_object_instance_pjvalue (jvm_object_hash objhash, jvm_field_index fldidx) |
Retrieve by field index the value of an object instance field. | |
rboolean | field_index_is_class_static (jvm_class_index clsidx, jvm_field_index fldidx) |
Determine if a field index is to a static class instance field or not. | |
rboolean | field_index_is_object_instance (jvm_class_index clsidx, jvm_field_index fldidx) |
Determine if a field index is to an object instance field or not. | |
jvm_field_index | field_index_put_class_static_pjvalue (jvm_class_index clsidx, jvm_field_index fldidx, jvalue *_jvalue) |
Store by field index the value of a static class instance field. | |
jvm_field_index | field_index_put_object_instance_pjvalue (jvm_object_hash objhash, jvm_field_index fldidx, jvalue *_jvalue) |
Store by field index the value of an object instance field. | |
jvm_field_lookup_index | field_name_get_class_static_lookup (jvm_class_index clsidx, cp_info_dup *fldname, cp_info_dup *flddesc) |
Retrieve by name/descriptor a field lookup index to a static class instance field. | |
jvalue * | field_name_get_class_static_pjvalue (jvm_class_index clsidx, cp_info_dup *fldname, cp_info_dup *flddesc) |
Retrieve by name the value of a static class instance field. | |
jvm_field_lookup_index | field_name_get_object_instance_lookup (jvm_class_index clsidx, cp_info_dup *fldname, cp_info_dup *flddesc) |
Retrieve by name/descriptor a field lookup index to an object instance field. | |
jvalue * | field_name_get_object_instance_pjvalue (jvm_object_hash objhash, cp_info_dup *fldname, cp_info_dup *flddesc) |
Retrieve by name the value of an object instance field. | |
rboolean | field_name_is_class_static (jvm_class_index clsidx, cp_info_dup *fldname, cp_info_dup *flddesc) |
Determine if a field name/descriptor is a static class instance field or not. | |
rboolean | field_name_is_object_instance (jvm_class_index clsidx, cp_info_dup *fldname, cp_info_dup *flddesc) |
Determine if a field name/descriptor is to an object instance field or not. | |
jvm_field_index | field_name_put_class_static_pjvalue (jvm_class_index clsidx, cp_info_dup *fldname, cp_info_dup *flddesc, jvalue *_jvalue) |
Store by name/descriptor the value of a static class instance field. | |
jvm_field_index | field_name_put_object_instance_pjvalue (jvm_object_hash objhash, cp_info_dup *fldname, cp_info_dup *flddesc, jvalue *_jvalue) |
Store by name/descriptor the value of an object instance field. |
|
Access structures of a class' field table at certain index. Each class has a table of fields, divided into class static fields and object instance fields. This macro references one of them using the clsidx index for the class and fldidx for the field table entry in that class.
Definition at line 66 of file field.h. Referenced by linkage_resolve_class(). |
|
|
|
Locate the field_info index for a field in a class. This works both with object instance fields and static class instance fields.
Definition at line 86 of file field.c. References CLASS_OBJECT_LINKAGE, EXIT_JVM_FIELD, exit_throw_exception(), ClassFile::fields, ClassFile::fields_count, jvm_class_index_null, jvm_field_index_bad, JVMCLASS_JAVA_LANG_INTERNALERROR, field_info::name_index, PTR_THIS_CP_Utf8, and utf_pcfs_strcmp(). Referenced by field_name_get_class_static_lookup(), field_name_get_class_static_pjvalue(), field_name_get_object_instance_lookup(), field_name_get_object_instance_pjvalue(), field_name_is_class_static(), field_name_is_object_instance(), field_name_put_class_static_pjvalue(), field_name_put_object_instance_pjvalue(), and linkage_resolve_class(). |
|
Determine if a field index is to a static class instance field or not.
Definition at line 141 of file field.c. References CLASS, jvm_field_index_bad, rfalse, and rtrue. Referenced by field_name_is_class_static(). |
|
Determine if a field name/descriptor is a static class instance field or not.
Definition at line 190 of file field.c. References field_find_by_cp_entry(), and field_index_is_class_static(). |
|
Determine if a field index is to an object instance field or not.
Definition at line 216 of file field.c. References CLASS, jvm_field_index_bad, rfalse, and rtrue. Referenced by field_name_is_object_instance(). |
|
Determine if a field name/descriptor is to an object instance field or not.
Definition at line 266 of file field.c. References field_find_by_cp_entry(), and field_index_is_object_instance(). |
|
Retrieve by field index a field lookup index to a static class instance field.
Definition at line 293 of file field.c. References CLASS, jvm_field_index_bad, and jvm_field_lookup_index_bad. Referenced by field_name_get_class_static_lookup(), and linkage_resolve_class(). |
|
Retrieve by name/descriptor a field lookup index to a static class instance field.
Definition at line 343 of file field.c. References field_find_by_cp_entry(), and field_index_get_class_static_lookup(). |
|
Retrieve by field index a field lookup index to an object instance field.
Definition at line 372 of file field.c. References CLASS, jvm_field_index_bad, rfalse, and rtrue. Referenced by field_name_get_object_instance_lookup(), and linkage_resolve_class(). |
|
Retrieve by name/descriptor a field lookup index to an object instance field.
Definition at line 424 of file field.c. References field_find_by_cp_entry(), and field_index_get_object_instance_lookup(). |
|
Retrieve by field index the value of a static class instance field.
Definition at line 451 of file field.c. References CLASS, jvm_field_index_bad, and rnull. Referenced by field_name_get_class_static_pjvalue(). |
|
Retrieve by name the value of a static class instance field.
Definition at line 500 of file field.c. References field_find_by_cp_entry(), and field_index_get_class_static_pjvalue(). |
|
Retrieve by field index the value of an object instance field.
Definition at line 526 of file field.c. References CLASS, OBJECT, OBJECT_CLASS_LINKAGE, and rnull. Referenced by field_name_get_object_instance_pjvalue(). |
|
Retrieve by name the value of an object instance field.
Definition at line 572 of file field.c. References field_find_by_cp_entry(), field_index_get_object_instance_pjvalue(), and OBJECT_CLASS_LINKAGE. |
|
Store by field index the value of a static class instance field.
Definition at line 606 of file field.c. References CLASS, and jvm_field_index_bad. Referenced by field_name_put_class_static_pjvalue(). |
|
Store by name/descriptor the value of a static class instance field.
Definition at line 664 of file field.c. References field_find_by_cp_entry(), and field_index_put_class_static_pjvalue(). |
|
Store by field index the value of an object instance field.
Definition at line 697 of file field.c. References CLASS, jvm_field_index_bad, OBJECT, and OBJECT_CLASS_LINKAGE. Referenced by field_name_put_object_instance_pjvalue(). |
|
Store by name/descriptor the value of an object instance field.
Definition at line 751 of file field.c. References field_find_by_cp_entry(), field_index_put_object_instance_pjvalue(), and OBJECT_CLASS_LINKAGE. |