JPDA Architecture Research 15-agent access VMS using environment pointers (field access)

Source: Internet
Author: User

Introduced:

We've explored how agents can access VMS using environment pointers (object-level operations), and now we're talking about letting agents access the fields of the class using an environment pointer.


Category 10: Field access

A.getfieldname. Getting a field name for a class

Jvmtierrorgetfieldname (jvmtienv* env, Jclass Klass, Jfieldid field, char** name_ptr, char** signature_ptr, char** generic_ptr)


B.getfielddeclaringclass. Gets the class that declares the field

Jvmtierrorgetfielddeclaringclass (jvmtienv* env, Jclass Klass, Jfieldid field, Jclass* Dec LARING_CLASS_PTR)


C.getfieldmodifiers. Gets the access modifier for a field of a class

Jvmtierrorgetfieldmodifiers (jvmtienv* env, Jclass Klass, Jfieldid field, jint* Modifiers_ ptr


D.isfieldsynthetic. Determine if a field in a class is a fictional field

Jvmtierrorisfieldsynthetic (jvmtienv* env, Jclass Klass, Jfieldid field, jboolean* Is_synt HETIC_PTR)

The so-called imaginary fields are the fields generated by the compiler rather than directly defined in the source code.


This article is from the "cohesion of parallel Lines" blog, please be sure to keep this source http://supercharles888.blog.51cto.com/609344/1587889

JPDA Architecture Research 15-agent access VMS using environment pointers (field access)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.