public class BytecodeVisitor
extends org.objectweb.asm.ClassVisitor
| Modifier and Type | Method and Description |
|---|---|
JavaType |
convertAsmType(org.objectweb.asm.Type asmType) |
JavaType |
convertAsmType(org.objectweb.asm.Type asmType,
int flags) |
void |
visit(int version,
int flags,
String name,
String signature,
String superName,
String[] interfaces) |
org.objectweb.asm.AnnotationVisitor |
visitAnnotation(String desc,
boolean visible) |
void |
visitAttribute(org.objectweb.asm.Attribute attr) |
void |
visitEnd()
If at this point there is no owner of current class, then this is a top-level class,
because outer classes always will be completed before inner classes - see
defineOuterClass(String, String, int). |
org.objectweb.asm.FieldVisitor |
visitField(int flags,
String name,
String desc,
String signature,
Object value) |
void |
visitInnerClass(String name,
String outerName,
String innerName,
int flags) |
org.objectweb.asm.MethodVisitor |
visitMethod(int flags,
String name,
String desc,
String signature,
String[] exceptions) |
void |
visitOuterClass(String owner,
String name,
String desc)
In other words must be called only for anonymous classes or named classes declared within methods,
which must not be processed by
BytecodeCompleter, therefore this method always throws IllegalStateException. |
void |
visitSource(String source,
String debug) |
org.objectweb.asm.AnnotationVisitor |
visitTypeAnnotation(int typeRef,
org.objectweb.asm.TypePath typePath,
String desc,
boolean visible) |
public void visit(int version,
int flags,
String name,
@Nullable
String signature,
@Nullable
String superName,
@Nullable
String[] interfaces)
visit in class org.objectweb.asm.ClassVisitorpublic void visitSource(@Nullable String source, @Nullable String debug)
visitSource in class org.objectweb.asm.ClassVisitorpublic void visitOuterClass(String owner, String name, String desc)
BytecodeCompleter, therefore this method always throws IllegalStateException.visitOuterClass in class org.objectweb.asm.ClassVisitorIllegalStateException - alwayspublic org.objectweb.asm.AnnotationVisitor visitAnnotation(String desc, boolean visible)
visitAnnotation in class org.objectweb.asm.ClassVisitorpublic org.objectweb.asm.AnnotationVisitor visitTypeAnnotation(int typeRef,
org.objectweb.asm.TypePath typePath,
String desc,
boolean visible)
visitTypeAnnotation in class org.objectweb.asm.ClassVisitorpublic void visitAttribute(org.objectweb.asm.Attribute attr)
visitAttribute in class org.objectweb.asm.ClassVisitorpublic void visitInnerClass(String name, @Nullable String outerName, @Nullable String innerName, int flags)
visitInnerClass in class org.objectweb.asm.ClassVisitorpublic org.objectweb.asm.FieldVisitor visitField(int flags,
String name,
String desc,
@Nullable
String signature,
@Nullable
Object value)
visitField in class org.objectweb.asm.ClassVisitorpublic org.objectweb.asm.MethodVisitor visitMethod(int flags,
String name,
String desc,
@Nullable
String signature,
@Nullable
String[] exceptions)
visitMethod in class org.objectweb.asm.ClassVisitorpublic JavaType convertAsmType(org.objectweb.asm.Type asmType)
public JavaType convertAsmType(org.objectweb.asm.Type asmType, int flags)
public void visitEnd()
defineOuterClass(String, String, int).
Owner of top-level classes - is a package.visitEnd in class org.objectweb.asm.ClassVisitorCopyright © 2012–2017 SonarSource. All rights reserved.