|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.asm.ClassAdapter
com.google.monitoring.runtime.instrumentation.VerifyingClassAdapter
public class VerifyingClassAdapter
This is a class writer that gets used in place of the existing
ClassWriter
, and verifies properties of the class getting written.
Currently, it only checks to see if the methods are of the correct length
for Java methods (<64K).
Nested Class Summary | |
---|---|
static class |
VerifyingClassAdapter.State
An enum which indicates whether the class in question is verified. |
Constructor Summary | |
---|---|
VerifyingClassAdapter(org.objectweb.asm.ClassWriter cw,
byte[] original,
String className)
|
Method Summary | |
---|---|
boolean |
isVerified()
Gets the verification state of this class. |
byte[] |
toByteArray()
Returns the byte array that contains the byte code for this class. |
void |
visitEnd()
|
org.objectweb.asm.MethodVisitor |
visitMethod(int access,
String name,
String desc,
String signature,
String[] exceptions)
In addition, the returned MethodVisitor will throw an exception
if the method is greater than 64K in length. |
Methods inherited from class org.objectweb.asm.ClassAdapter |
---|
visit, visitAnnotation, visitAttribute, visitField, visitInnerClass, visitOuterClass, visitSource |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VerifyingClassAdapter(org.objectweb.asm.ClassWriter cw, byte[] original, String className)
cw
- A class writer that is wrapped by this class adapteroriginal
- the original bytecodeclassName
- the name of the class being examined.Method Detail |
---|
public org.objectweb.asm.MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions)
MethodVisitor
will throw an exception
if the method is greater than 64K in length.
visitMethod
in interface org.objectweb.asm.ClassVisitor
visitMethod
in class org.objectweb.asm.ClassAdapter
public void visitEnd()
visitEnd
in interface org.objectweb.asm.ClassVisitor
visitEnd
in class org.objectweb.asm.ClassAdapter
public boolean isVerified()
public byte[] toByteArray()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |