|
org.netbeans.modules.classfile/1 1.19 | |||||||||
PREV NEXT | FRAMES NO FRAMES |
See:
Description
Classfile Reader | |
---|---|
org.netbeans.modules.classfile | The org.netbeans.modules.classfile package supports direct access to a Java Virtual Machine classfile contents. |
classfile
The ClassFile library is an API to read Java classfiles, as described by
The Java Virtual Machine Specification. Given a file or stream reference to a Java
classfile, the API provides read-only access to all of its class attributes, including
type information, methods and fields, generics support (if any), etc.
NOTE: this library is not really a NetBeans module, in that it doesn't have any NetBeans references.
It therefore has nothing pluggable, no NetBeans Lookups, and is not extensible.
Java 6 added a new classfile verifier, which uses the new code attribute, StackMapTable. This adds support for that attribute.
Java 5 added several attributes to the JVM classfile format to support generics, annotations, varargs, and enums. The classfile module was enhanced to add access to all of these new attributes.
The normal usecase is for a client wanting to inspect a classfile. A ClassFile
instance is created with either a String
path, File
or
InputStream
instance. All attributes of the classfile are available as properties,
such as getSourceFileName
or getMethods
.
|
The sources for the module are in NetBeans CVS in classfile directory.
Nothing.
Read more about the implementation in the answers to architecture questions.
|
org.netbeans.modules.classfile/1 1.19 | |||||||||
PREV NEXT | FRAMES NO FRAMES |