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, tab3Fields inherited from class org.objectweb.asm.util.Printer
api, HANDLE_TAG, OPCODES, stringBuilder, text, TYPES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.objectweb.asm.util.Textifierprotected voidlog()voidvisit(int version, int access, String name, String signature, String superName, String[] interfaces) voidorg.objectweb.asm.util.TextifiervisitAnnotation(String desc, boolean visible) org.objectweb.asm.util.TextifiervisitAnnotation(String name, String desc) org.objectweb.asm.util.Textifiervoidorg.objectweb.asm.util.TextifiervisitArray(String name) voidvisitAttribute(org.objectweb.asm.Attribute attr) org.objectweb.asm.util.TextifiervisitClassAnnotation(String desc, boolean visible) voidvisitClassAttribute(org.objectweb.asm.Attribute attr) voidorg.objectweb.asm.util.PrintervisitClassTypeAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, String desc, boolean visible) voidvoidvoidvisitExport(String export, int access, String... modules) org.objectweb.asm.util.TextifiervisitField(int access, String name, String desc, String signature, Object value) org.objectweb.asm.util.TextifiervisitFieldAnnotation(String desc, boolean visible) voidvisitFieldAttribute(org.objectweb.asm.Attribute attr) voidvoidvisitFieldInsn(int opcode, String owner, String name, String desc) org.objectweb.asm.util.PrintervisitFieldTypeAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, String desc, boolean visible) voidvisitFrame(int type, int nLocal, Object[] local, int nStack, Object[] stack) voidvisitIincInsn(int var, int increment) voidvisitInnerClass(String name, String outerName, String innerName, int access) voidvisitInsn(int opcode) org.objectweb.asm.util.PrintervisitInsnAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, String desc, boolean visible) voidvisitIntInsn(int opcode, int operand) voidvisitInvokeDynamicInsn(String name, String desc, org.objectweb.asm.Handle bsm, Object... bsmArgs) voidvisitJumpInsn(int opcode, org.objectweb.asm.Label label) voidvisitLabel(org.objectweb.asm.Label label) voidvisitLdcInsn(Object cst) voidvisitLineNumber(int line, org.objectweb.asm.Label start) voidvisitLocalVariable(String name, String desc, String signature, org.objectweb.asm.Label start, org.objectweb.asm.Label end, int index) org.objectweb.asm.util.PrintervisitLocalVariableAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, org.objectweb.asm.Label[] start, org.objectweb.asm.Label[] end, int[] index, String desc, boolean visible) voidvisitLookupSwitchInsn(org.objectweb.asm.Label dflt, int[] keys, org.objectweb.asm.Label[] labels) voidvisitMaxs(int maxStack, int maxLocals) org.objectweb.asm.util.TextifiervisitMethod(int access, String name, String desc, String signature, String[] exceptions) org.objectweb.asm.util.TextifiervisitMethodAnnotation(String desc, boolean visible) voidvisitMethodAttribute(org.objectweb.asm.Attribute attr) voidvoidvisitMethodInsn(int opcode, String owner, String name, String desc) voidvisitMethodInsn(int opcode, String owner, String name, String desc, boolean itf) org.objectweb.asm.util.PrintervisitMethodTypeAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, String desc, boolean visible) org.objectweb.asm.util.PrintervisitModule(String name, int access, String version) voidvoidvisitMultiANewArrayInsn(String desc, int dims) voidvisitOuterClass(String owner, String name, String desc) voidvisitParameter(String name, int access) org.objectweb.asm.util.TextifiervisitParameterAnnotation(int parameter, String desc, boolean visible) voidvisitProvide(String provide, String... providers) voidvisitRequire(String require, int access, String version) voidvisitSource(String file, String debug) voidvisitTableSwitchInsn(int min, int max, org.objectweb.asm.Label dflt, org.objectweb.asm.Label... labels) org.objectweb.asm.util.PrintervisitTryCatchAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, String desc, boolean visible) voidvisitTryCatchBlock(org.objectweb.asm.Label start, org.objectweb.asm.Label end, org.objectweb.asm.Label handler, String type) org.objectweb.asm.util.TextifiervisitTypeAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, String desc, boolean visible) voidvisitTypeInsn(int opcode, String type) voidvoidvisitVarInsn(int opcode, int var) Methods inherited from class org.objectweb.asm.util.Textifier
appendDescriptor, appendHandle, appendHandle, appendLabel, main, visitAnnotableParameterCount, visitMainClass, visitNestHost, visitNestMember, visitOpen, visitPackage, visitPermittedSubclass, visitRecordComponent, visitRecordComponentAnnotation, visitRecordComponentAttribute, visitRecordComponentEnd, visitRecordComponentTypeAnnotationMethods inherited from class org.objectweb.asm.util.Printer
appendString, getText, print
-
Constructor Details
-
LoggableTextifier
public LoggableTextifier()
-
-
Method Details
-
createTextifier
protected org.objectweb.asm.util.Textifier createTextifier()- Overrides:
createTextifierin classorg.objectweb.asm.util.Textifier
-
log
protected void log() -
visit
-
visitSource
-
visitModule
-
visitOuterClass
-
visitClassAnnotation
- Overrides:
visitClassAnnotationin 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:
visitClassTypeAnnotationin classorg.objectweb.asm.util.Textifier
-
visitClassAttribute
public void visitClassAttribute(org.objectweb.asm.Attribute attr) - Overrides:
visitClassAttributein classorg.objectweb.asm.util.Textifier
-
visitInnerClass
-
visitField
-
visitMethod
-
visitClassEnd
public void visitClassEnd()- Overrides:
visitClassEndin classorg.objectweb.asm.util.Textifier
-
visitRequire
-
visitExport
-
visitUse
- Overrides:
visitUsein classorg.objectweb.asm.util.Textifier
-
visitProvide
-
visitModuleEnd
public void visitModuleEnd()- Overrides:
visitModuleEndin classorg.objectweb.asm.util.Textifier
-
visit
-
visitEnum
-
visitAnnotation
-
visitArray
- Overrides:
visitArrayin classorg.objectweb.asm.util.Textifier
-
visitAnnotationEnd
public void visitAnnotationEnd()- Overrides:
visitAnnotationEndin classorg.objectweb.asm.util.Textifier
-
visitFieldAnnotation
- Overrides:
visitFieldAnnotationin 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:
visitFieldTypeAnnotationin classorg.objectweb.asm.util.Textifier
-
visitFieldAttribute
public void visitFieldAttribute(org.objectweb.asm.Attribute attr) - Overrides:
visitFieldAttributein classorg.objectweb.asm.util.Textifier
-
visitFieldEnd
public void visitFieldEnd()- Overrides:
visitFieldEndin classorg.objectweb.asm.util.Textifier
-
visitParameter
- Overrides:
visitParameterin classorg.objectweb.asm.util.Textifier
-
visitAnnotationDefault
public org.objectweb.asm.util.Textifier visitAnnotationDefault()- Overrides:
visitAnnotationDefaultin classorg.objectweb.asm.util.Textifier
-
visitMethodAnnotation
- Overrides:
visitMethodAnnotationin 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:
visitMethodTypeAnnotationin classorg.objectweb.asm.util.Textifier
-
visitParameterAnnotation
public org.objectweb.asm.util.Textifier visitParameterAnnotation(int parameter, String desc, boolean visible) - Overrides:
visitParameterAnnotationin classorg.objectweb.asm.util.Textifier
-
visitMethodAttribute
public void visitMethodAttribute(org.objectweb.asm.Attribute attr) - Overrides:
visitMethodAttributein classorg.objectweb.asm.util.Textifier
-
visitCode
public void visitCode()- Overrides:
visitCodein classorg.objectweb.asm.util.Textifier
-
visitFrame
-
visitInsn
public void visitInsn(int opcode) - Overrides:
visitInsnin classorg.objectweb.asm.util.Textifier
-
visitIntInsn
public void visitIntInsn(int opcode, int operand) - Overrides:
visitIntInsnin classorg.objectweb.asm.util.Textifier
-
visitVarInsn
public void visitVarInsn(int opcode, int var) - Overrides:
visitVarInsnin classorg.objectweb.asm.util.Textifier
-
visitTypeInsn
- Overrides:
visitTypeInsnin classorg.objectweb.asm.util.Textifier
-
visitFieldInsn
-
visitMethodInsn
-
visitMethodInsn
-
visitInvokeDynamicInsn
-
visitJumpInsn
public void visitJumpInsn(int opcode, org.objectweb.asm.Label label) - Overrides:
visitJumpInsnin classorg.objectweb.asm.util.Textifier
-
visitLabel
public void visitLabel(org.objectweb.asm.Label label) - Overrides:
visitLabelin classorg.objectweb.asm.util.Textifier
-
visitLdcInsn
- Overrides:
visitLdcInsnin classorg.objectweb.asm.util.Textifier
-
visitIincInsn
public void visitIincInsn(int var, int increment) - Overrides:
visitIincInsnin classorg.objectweb.asm.util.Textifier
-
visitTableSwitchInsn
public void visitTableSwitchInsn(int min, int max, org.objectweb.asm.Label dflt, org.objectweb.asm.Label... labels) - Overrides:
visitTableSwitchInsnin classorg.objectweb.asm.util.Textifier
-
visitLookupSwitchInsn
public void visitLookupSwitchInsn(org.objectweb.asm.Label dflt, int[] keys, org.objectweb.asm.Label[] labels) - Overrides:
visitLookupSwitchInsnin classorg.objectweb.asm.util.Textifier
-
visitMultiANewArrayInsn
- Overrides:
visitMultiANewArrayInsnin 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:
visitInsnAnnotationin 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:
visitTryCatchBlockin 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:
visitTryCatchAnnotationin classorg.objectweb.asm.util.Textifier
-
visitLocalVariable
-
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:
visitLocalVariableAnnotationin classorg.objectweb.asm.util.Textifier
-
visitLineNumber
public void visitLineNumber(int line, org.objectweb.asm.Label start) - Overrides:
visitLineNumberin classorg.objectweb.asm.util.Textifier
-
visitMaxs
public void visitMaxs(int maxStack, int maxLocals) - Overrides:
visitMaxsin classorg.objectweb.asm.util.Textifier
-
visitMethodEnd
public void visitMethodEnd()- Overrides:
visitMethodEndin classorg.objectweb.asm.util.Textifier
-
visitAnnotation
- Overrides:
visitAnnotationin 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:
visitTypeAnnotationin classorg.objectweb.asm.util.Textifier
-
visitAttribute
public void visitAttribute(org.objectweb.asm.Attribute attr) - Overrides:
visitAttributein classorg.objectweb.asm.util.Textifier
-