public class InnerClassAccessStripper
extends org.objectweb.asm.ClassVisitor
This visitor is meant to be used on classes that will undergo validation with CheckClassAdapter. CheckClassAdapter assumes it will only be called on non-inner classes, and throws an IllegalArgumentException if the class is protected, private, or final. However, once classes are compiled, they appear in their class files alone, and these options may be present, with no way for an outside observer to tell if they were originally inner classes.
Constructor and Description |
---|
InnerClassAccessStripper(int api)
See
ClassVisitor(int) . |
InnerClassAccessStripper(int api,
org.objectweb.asm.ClassVisitor cv)
See
ClassVisitor(int, ClassVisitor) . |
Modifier and Type | Method and Description |
---|---|
int |
getOriginalAccess()
Return the original class' access bits.
|
void |
visit(int version,
int access,
String name,
String signature,
String superName,
String[] interfaces) |
public InnerClassAccessStripper(int api)
ClassVisitor(int)
.public InnerClassAccessStripper(int api, org.objectweb.asm.ClassVisitor cv)
ClassVisitor(int, ClassVisitor)
.public int getOriginalAccess()
This may only be called after ClassVisitor.visit(int, int, String, String, String, String[])
has been called; that's where the bits are stripped and captured.
IllegalStateException
- if visit() hasn't been called yetCopyright © 1970 The Apache Software Foundation. All rights reserved.