Package org.checkerframework.afu.scenelib.io.classfile
package org.checkerframework.afu.scenelib.io.classfile
org.checkerframework.afu.scenelib.io.classfile
provides methods for writing AScene
s to Java class files and reading in annotations from
a Java class file into an AScene
. This package
requires the core ASM package (see http://asm.objectweb.org/ ). The two main methods of this
package are ClassFileWriter.insert(org.checkerframework.afu.scenelib.el.AScene, java.lang.String, boolean)
for
writing annotations to a class file, and ClassFileReader.read(org.checkerframework.afu.scenelib.el.AScene, java.lang.String)
for reading annotations from
a class file.-
ClassDescriptionA
ClassAnnotationSceneReader
is aClassVisitor
that will insert all annotations it encounters while visiting a class into a givenAScene
.A ClassAnnotationSceneWriter is aClassVisitor
that can be used to write a class file that is the combination of an existing class file and annotations in anAScene
.AClassFileReader
provides methods for reading in annotations from a class file into anAScene
.AClassFileWriter
provides methods for inserting annotations from anAScene
into a class file.Tracks offset within a method's Code attribute as its instructions are visited.AnInvalidTypeAnnotationException
indicates that an extended annotation was created with invalid information.