Class LoggableTextifier
java.lang.Object
org.objectweb.asm.util.Printer
org.objectweb.asm.util.Textifier
org.codehaus.groovy.classgen.asm.util.LoggableTextifier
public class LoggableTextifier
extends org.objectweb.asm.util.Textifier
Logging bytecode generation, which can make debugging easy
- Since:
- 2.5.0
-
Field Summary
Fields inherited from class org.objectweb.asm.util.Textifier
CLASS_SIGNATURE, FIELD_DESCRIPTOR, FIELD_SIGNATURE, HANDLE_DESCRIPTOR, INTERNAL_NAME, labelNames, ltab, METHOD_DESCRIPTOR, METHOD_SIGNATURE, tab, tab2, tab3
Fields inherited from class org.objectweb.asm.util.Printer
api, HANDLE_TAG, OPCODES, stringBuilder, text, TYPES
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.objectweb.asm.util.Textifier
protected void
log()
void
visit
(int version, int access, String name, String signature, String superName, String[] interfaces) void
org.objectweb.asm.util.Textifier
visitAnnotableParameterCount
(int parameterCount, boolean visible) org.objectweb.asm.util.Textifier
visitAnnotation
(String desc, boolean visible) org.objectweb.asm.util.Textifier
visitAnnotation
(String name, String desc) org.objectweb.asm.util.Textifier
void
org.objectweb.asm.util.Textifier
visitArray
(String name) void
visitAttribute
(org.objectweb.asm.Attribute attr) org.objectweb.asm.util.Textifier
visitClassAnnotation
(String desc, boolean visible) void
visitClassAttribute
(org.objectweb.asm.Attribute attr) void
org.objectweb.asm.util.Printer
visitClassTypeAnnotation
(int typeRef, org.objectweb.asm.TypePath typePath, String desc, boolean visible) void
void
void
visitExport
(String export, int access, String... modules) org.objectweb.asm.util.Textifier
visitField
(int access, String name, String desc, String signature, Object value) org.objectweb.asm.util.Textifier
visitFieldAnnotation
(String desc, boolean visible) void
visitFieldAttribute
(org.objectweb.asm.Attribute attr) void
void
visitFieldInsn
(int opcode, String owner, String name, String desc) org.objectweb.asm.util.Printer
visitFieldTypeAnnotation
(int typeRef, org.objectweb.asm.TypePath typePath, String desc, boolean visible) void
visitFrame
(int type, int nLocal, Object[] local, int nStack, Object[] stack) void
visitIincInsn
(int var, int increment) void
visitInnerClass
(String name, String outerName, String innerName, int access) void
visitInsn
(int opcode) org.objectweb.asm.util.Printer
visitInsnAnnotation
(int typeRef, org.objectweb.asm.TypePath typePath, String desc, boolean visible) void
visitIntInsn
(int opcode, int operand) void
visitInvokeDynamicInsn
(String name, String desc, org.objectweb.asm.Handle bsm, Object... bsmArgs) void
visitJumpInsn
(int opcode, org.objectweb.asm.Label label) void
visitLabel
(org.objectweb.asm.Label label) void
visitLdcInsn
(Object cst) void
visitLineNumber
(int line, org.objectweb.asm.Label start) void
visitLocalVariable
(String name, String desc, String signature, org.objectweb.asm.Label start, org.objectweb.asm.Label end, int index) org.objectweb.asm.util.Printer
visitLocalVariableAnnotation
(int typeRef, org.objectweb.asm.TypePath typePath, org.objectweb.asm.Label[] start, org.objectweb.asm.Label[] end, int[] index, String desc, boolean visible) void
visitLookupSwitchInsn
(org.objectweb.asm.Label dflt, int[] keys, org.objectweb.asm.Label[] labels) void
visitMainClass
(String mainClass) void
visitMaxs
(int maxStack, int maxLocals) org.objectweb.asm.util.Textifier
visitMethod
(int access, String name, String desc, String signature, String[] exceptions) org.objectweb.asm.util.Textifier
visitMethodAnnotation
(String desc, boolean visible) void
visitMethodAttribute
(org.objectweb.asm.Attribute attr) void
void
visitMethodInsn
(int opcode, String owner, String name, String desc) void
visitMethodInsn
(int opcode, String owner, String name, String desc, boolean itf) org.objectweb.asm.util.Printer
visitMethodTypeAnnotation
(int typeRef, org.objectweb.asm.TypePath typePath, String desc, boolean visible) org.objectweb.asm.util.Printer
visitModule
(String name, int access, String version) void
void
visitMultiANewArrayInsn
(String desc, int dims) void
visitNestHost
(String nestHost) void
visitNestMember
(String nestMember) void
void
visitOuterClass
(String owner, String name, String desc) void
visitPackage
(String packaze) void
visitParameter
(String name, int access) org.objectweb.asm.util.Textifier
visitParameterAnnotation
(int parameter, String desc, boolean visible) void
visitPermittedSubclass
(String permittedSubclass) void
visitProvide
(String provide, String... providers) org.objectweb.asm.util.Printer
visitRecordComponent
(String name, String descriptor, String signature) org.objectweb.asm.util.Textifier
visitRecordComponentAnnotation
(String descriptor, boolean visible) void
visitRecordComponentAttribute
(org.objectweb.asm.Attribute attribute) void
org.objectweb.asm.util.Printer
visitRecordComponentTypeAnnotation
(int typeRef, org.objectweb.asm.TypePath typePath, String descriptor, boolean visible) void
visitRequire
(String require, int access, String version) void
visitSource
(String file, String debug) void
visitTableSwitchInsn
(int min, int max, org.objectweb.asm.Label dflt, org.objectweb.asm.Label... labels) org.objectweb.asm.util.Printer
visitTryCatchAnnotation
(int typeRef, org.objectweb.asm.TypePath typePath, String desc, boolean visible) void
visitTryCatchBlock
(org.objectweb.asm.Label start, org.objectweb.asm.Label end, org.objectweb.asm.Label handler, String type) org.objectweb.asm.util.Textifier
visitTypeAnnotation
(int typeRef, org.objectweb.asm.TypePath typePath, String desc, boolean visible) void
visitTypeInsn
(int opcode, String type) void
void
visitVarInsn
(int opcode, int var) Methods inherited from class org.objectweb.asm.util.Textifier
appendDescriptor, appendHandle, appendLabel, main
Methods inherited from class org.objectweb.asm.util.Printer
appendString, getText, print
-
Constructor Details
-
LoggableTextifier
public LoggableTextifier() -
LoggableTextifier
-
-
Method Details
-
createTextifier
protected org.objectweb.asm.util.Textifier createTextifier()- Overrides:
createTextifier
in classorg.objectweb.asm.util.Textifier
-
log
protected void log() -
visit
public void visit(int version, int access, String name, String signature, String superName, String[] interfaces) - Overrides:
visit
in classorg.objectweb.asm.util.Textifier
-
visitSource
- Overrides:
visitSource
in classorg.objectweb.asm.util.Textifier
-
visitModule
- Overrides:
visitModule
in classorg.objectweb.asm.util.Textifier
-
visitOuterClass
- Overrides:
visitOuterClass
in classorg.objectweb.asm.util.Textifier
-
visitClassAnnotation
- Overrides:
visitClassAnnotation
in classorg.objectweb.asm.util.Textifier
-
visitClassTypeAnnotation
public org.objectweb.asm.util.Printer visitClassTypeAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, String desc, boolean visible) - Overrides:
visitClassTypeAnnotation
in classorg.objectweb.asm.util.Textifier
-
visitClassAttribute
public void visitClassAttribute(org.objectweb.asm.Attribute attr) - Overrides:
visitClassAttribute
in classorg.objectweb.asm.util.Textifier
-
visitInnerClass
- Overrides:
visitInnerClass
in classorg.objectweb.asm.util.Textifier
-
visitField
public org.objectweb.asm.util.Textifier visitField(int access, String name, String desc, String signature, Object value) - Overrides:
visitField
in classorg.objectweb.asm.util.Textifier
-
visitMethod
public org.objectweb.asm.util.Textifier visitMethod(int access, String name, String desc, String signature, String[] exceptions) - Overrides:
visitMethod
in classorg.objectweb.asm.util.Textifier
-
visitClassEnd
public void visitClassEnd()- Overrides:
visitClassEnd
in classorg.objectweb.asm.util.Textifier
-
visitRequire
- Overrides:
visitRequire
in classorg.objectweb.asm.util.Textifier
-
visitExport
- Overrides:
visitExport
in classorg.objectweb.asm.util.Textifier
-
visitUse
- Overrides:
visitUse
in classorg.objectweb.asm.util.Textifier
-
visitProvide
- Overrides:
visitProvide
in classorg.objectweb.asm.util.Textifier
-
visitModuleEnd
public void visitModuleEnd()- Overrides:
visitModuleEnd
in classorg.objectweb.asm.util.Textifier
-
visit
- Overrides:
visit
in classorg.objectweb.asm.util.Textifier
-
visitEnum
- Overrides:
visitEnum
in classorg.objectweb.asm.util.Textifier
-
visitAnnotation
- Overrides:
visitAnnotation
in classorg.objectweb.asm.util.Textifier
-
visitArray
- Overrides:
visitArray
in classorg.objectweb.asm.util.Textifier
-
visitAnnotationEnd
public void visitAnnotationEnd()- Overrides:
visitAnnotationEnd
in classorg.objectweb.asm.util.Textifier
-
visitFieldAnnotation
- Overrides:
visitFieldAnnotation
in classorg.objectweb.asm.util.Textifier
-
visitFieldTypeAnnotation
public org.objectweb.asm.util.Printer visitFieldTypeAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, String desc, boolean visible) - Overrides:
visitFieldTypeAnnotation
in classorg.objectweb.asm.util.Textifier
-
visitFieldAttribute
public void visitFieldAttribute(org.objectweb.asm.Attribute attr) - Overrides:
visitFieldAttribute
in classorg.objectweb.asm.util.Textifier
-
visitFieldEnd
public void visitFieldEnd()- Overrides:
visitFieldEnd
in classorg.objectweb.asm.util.Textifier
-
visitParameter
- Overrides:
visitParameter
in classorg.objectweb.asm.util.Textifier
-
visitAnnotationDefault
public org.objectweb.asm.util.Textifier visitAnnotationDefault()- Overrides:
visitAnnotationDefault
in classorg.objectweb.asm.util.Textifier
-
visitMethodAnnotation
- Overrides:
visitMethodAnnotation
in classorg.objectweb.asm.util.Textifier
-
visitMethodTypeAnnotation
public org.objectweb.asm.util.Printer visitMethodTypeAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, String desc, boolean visible) - Overrides:
visitMethodTypeAnnotation
in classorg.objectweb.asm.util.Textifier
-
visitParameterAnnotation
public org.objectweb.asm.util.Textifier visitParameterAnnotation(int parameter, String desc, boolean visible) - Overrides:
visitParameterAnnotation
in classorg.objectweb.asm.util.Textifier
-
visitMethodAttribute
public void visitMethodAttribute(org.objectweb.asm.Attribute attr) - Overrides:
visitMethodAttribute
in classorg.objectweb.asm.util.Textifier
-
visitCode
public void visitCode()- Overrides:
visitCode
in classorg.objectweb.asm.util.Textifier
-
visitFrame
- Overrides:
visitFrame
in classorg.objectweb.asm.util.Textifier
-
visitInsn
public void visitInsn(int opcode) - Overrides:
visitInsn
in classorg.objectweb.asm.util.Textifier
-
visitIntInsn
public void visitIntInsn(int opcode, int operand) - Overrides:
visitIntInsn
in classorg.objectweb.asm.util.Textifier
-
visitVarInsn
public void visitVarInsn(int opcode, int var) - Overrides:
visitVarInsn
in classorg.objectweb.asm.util.Textifier
-
visitTypeInsn
- Overrides:
visitTypeInsn
in classorg.objectweb.asm.util.Textifier
-
visitFieldInsn
- Overrides:
visitFieldInsn
in classorg.objectweb.asm.util.Textifier
-
visitMethodInsn
- Overrides:
visitMethodInsn
in classorg.objectweb.asm.util.Printer
-
visitMethodInsn
- Overrides:
visitMethodInsn
in classorg.objectweb.asm.util.Textifier
-
visitInvokeDynamicInsn
public void visitInvokeDynamicInsn(String name, String desc, org.objectweb.asm.Handle bsm, Object... bsmArgs) - Overrides:
visitInvokeDynamicInsn
in classorg.objectweb.asm.util.Textifier
-
visitJumpInsn
public void visitJumpInsn(int opcode, org.objectweb.asm.Label label) - Overrides:
visitJumpInsn
in classorg.objectweb.asm.util.Textifier
-
visitLabel
public void visitLabel(org.objectweb.asm.Label label) - Overrides:
visitLabel
in classorg.objectweb.asm.util.Textifier
-
visitLdcInsn
- Overrides:
visitLdcInsn
in classorg.objectweb.asm.util.Textifier
-
visitIincInsn
public void visitIincInsn(int var, int increment) - Overrides:
visitIincInsn
in classorg.objectweb.asm.util.Textifier
-
visitTableSwitchInsn
public void visitTableSwitchInsn(int min, int max, org.objectweb.asm.Label dflt, org.objectweb.asm.Label... labels) - Overrides:
visitTableSwitchInsn
in classorg.objectweb.asm.util.Textifier
-
visitLookupSwitchInsn
public void visitLookupSwitchInsn(org.objectweb.asm.Label dflt, int[] keys, org.objectweb.asm.Label[] labels) - Overrides:
visitLookupSwitchInsn
in classorg.objectweb.asm.util.Textifier
-
visitMultiANewArrayInsn
- Overrides:
visitMultiANewArrayInsn
in classorg.objectweb.asm.util.Textifier
-
visitInsnAnnotation
public org.objectweb.asm.util.Printer visitInsnAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, String desc, boolean visible) - Overrides:
visitInsnAnnotation
in classorg.objectweb.asm.util.Textifier
-
visitTryCatchBlock
public void visitTryCatchBlock(org.objectweb.asm.Label start, org.objectweb.asm.Label end, org.objectweb.asm.Label handler, String type) - Overrides:
visitTryCatchBlock
in classorg.objectweb.asm.util.Textifier
-
visitTryCatchAnnotation
public org.objectweb.asm.util.Printer visitTryCatchAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, String desc, boolean visible) - Overrides:
visitTryCatchAnnotation
in classorg.objectweb.asm.util.Textifier
-
visitLocalVariable
public void visitLocalVariable(String name, String desc, String signature, org.objectweb.asm.Label start, org.objectweb.asm.Label end, int index) - Overrides:
visitLocalVariable
in classorg.objectweb.asm.util.Textifier
-
visitLocalVariableAnnotation
public org.objectweb.asm.util.Printer visitLocalVariableAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, org.objectweb.asm.Label[] start, org.objectweb.asm.Label[] end, int[] index, String desc, boolean visible) - Overrides:
visitLocalVariableAnnotation
in classorg.objectweb.asm.util.Textifier
-
visitLineNumber
public void visitLineNumber(int line, org.objectweb.asm.Label start) - Overrides:
visitLineNumber
in classorg.objectweb.asm.util.Textifier
-
visitMaxs
public void visitMaxs(int maxStack, int maxLocals) - Overrides:
visitMaxs
in classorg.objectweb.asm.util.Textifier
-
visitMethodEnd
public void visitMethodEnd()- Overrides:
visitMethodEnd
in classorg.objectweb.asm.util.Textifier
-
visitAnnotation
- Overrides:
visitAnnotation
in classorg.objectweb.asm.util.Textifier
-
visitTypeAnnotation
public org.objectweb.asm.util.Textifier visitTypeAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, String desc, boolean visible) - Overrides:
visitTypeAnnotation
in classorg.objectweb.asm.util.Textifier
-
visitAttribute
public void visitAttribute(org.objectweb.asm.Attribute attr) - Overrides:
visitAttribute
in classorg.objectweb.asm.util.Textifier
-
visitNestHost
- Overrides:
visitNestHost
in classorg.objectweb.asm.util.Textifier
-
visitNestMember
- Overrides:
visitNestMember
in classorg.objectweb.asm.util.Textifier
-
visitMainClass
- Overrides:
visitMainClass
in classorg.objectweb.asm.util.Textifier
-
visitPackage
- Overrides:
visitPackage
in classorg.objectweb.asm.util.Textifier
-
visitOpen
- Overrides:
visitOpen
in classorg.objectweb.asm.util.Textifier
-
visitAnnotableParameterCount
public org.objectweb.asm.util.Textifier visitAnnotableParameterCount(int parameterCount, boolean visible) - Overrides:
visitAnnotableParameterCount
in classorg.objectweb.asm.util.Textifier
-
visitRecordComponent
public org.objectweb.asm.util.Printer visitRecordComponent(String name, String descriptor, String signature) - Overrides:
visitRecordComponent
in classorg.objectweb.asm.util.Textifier
-
visitRecordComponentAnnotation
public org.objectweb.asm.util.Textifier visitRecordComponentAnnotation(String descriptor, boolean visible) - Overrides:
visitRecordComponentAnnotation
in classorg.objectweb.asm.util.Textifier
-
visitRecordComponentTypeAnnotation
public org.objectweb.asm.util.Printer visitRecordComponentTypeAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, String descriptor, boolean visible) - Overrides:
visitRecordComponentTypeAnnotation
in classorg.objectweb.asm.util.Textifier
-
visitRecordComponentAttribute
public void visitRecordComponentAttribute(org.objectweb.asm.Attribute attribute) - Overrides:
visitRecordComponentAttribute
in classorg.objectweb.asm.util.Textifier
-
visitRecordComponentEnd
public void visitRecordComponentEnd()- Overrides:
visitRecordComponentEnd
in classorg.objectweb.asm.util.Textifier
-
visitPermittedSubclass
- Overrides:
visitPermittedSubclass
in classorg.objectweb.asm.util.Textifier
-