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.TextifiervisitAnnotableParameterCount(int parameterCount, boolean visible) org.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 varIndex, 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) voidvisitMainClass(String mainClass) 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) Deprecated.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) voidvisitNestHost(String nestHost) voidvisitNestMember(String nestMember) voidvoidvisitOuterClass(String owner, String name, String desc) voidvisitPackage(String packaze) voidvisitParameter(String name, int access) org.objectweb.asm.util.TextifiervisitParameterAnnotation(int parameter, String desc, boolean visible) voidvisitPermittedSubclass(String permittedSubclass) voidvisitProvide(String provide, String... providers) org.objectweb.asm.util.PrintervisitRecordComponent(String name, String descriptor, String signature) org.objectweb.asm.util.TextifiervisitRecordComponentAnnotation(String descriptor, boolean visible) voidvisitRecordComponentAttribute(org.objectweb.asm.Attribute attribute) voidorg.objectweb.asm.util.PrintervisitRecordComponentTypeAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, String descriptor, boolean visible) 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 varIndex) Methods inherited from class org.objectweb.asm.util.Textifier
appendDescriptor, appendHandle, appendLabel, mainMethods 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:
createTextifierin 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:
visitin classorg.objectweb.asm.util.Textifier
-
visitSource
- Overrides:
visitSourcein classorg.objectweb.asm.util.Textifier
-
visitModule
- Overrides:
visitModulein classorg.objectweb.asm.util.Textifier
-
visitOuterClass
- Overrides:
visitOuterClassin classorg.objectweb.asm.util.Textifier
-
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
- Overrides:
visitInnerClassin classorg.objectweb.asm.util.Textifier
-
visitField
public org.objectweb.asm.util.Textifier visitField(int access, String name, String desc, String signature, Object value) - Overrides:
visitFieldin classorg.objectweb.asm.util.Textifier
-
visitMethod
public org.objectweb.asm.util.Textifier visitMethod(int access, String name, String desc, String signature, String[] exceptions) - Overrides:
visitMethodin classorg.objectweb.asm.util.Textifier
-
visitClassEnd
public void visitClassEnd()- Overrides:
visitClassEndin classorg.objectweb.asm.util.Textifier
-
visitRequire
- Overrides:
visitRequirein classorg.objectweb.asm.util.Textifier
-
visitExport
- Overrides:
visitExportin classorg.objectweb.asm.util.Textifier
-
visitUse
- Overrides:
visitUsein classorg.objectweb.asm.util.Textifier
-
visitProvide
- Overrides:
visitProvidein classorg.objectweb.asm.util.Textifier
-
visitModuleEnd
public void visitModuleEnd()- Overrides:
visitModuleEndin classorg.objectweb.asm.util.Textifier
-
visit
- Overrides:
visitin classorg.objectweb.asm.util.Textifier
-
visitEnum
- Overrides:
visitEnumin classorg.objectweb.asm.util.Textifier
-
visitAnnotation
- Overrides:
visitAnnotationin classorg.objectweb.asm.util.Textifier
-
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
- Overrides:
visitFramein classorg.objectweb.asm.util.Textifier
-
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 varIndex) - Overrides:
visitVarInsnin classorg.objectweb.asm.util.Textifier
-
visitTypeInsn
- Overrides:
visitTypeInsnin classorg.objectweb.asm.util.Textifier
-
visitFieldInsn
- Overrides:
visitFieldInsnin classorg.objectweb.asm.util.Textifier
-
visitMethodInsn
Deprecated.- Overrides:
visitMethodInsnin classorg.objectweb.asm.util.Printer
-
visitMethodInsn
- Overrides:
visitMethodInsnin classorg.objectweb.asm.util.Textifier
-
visitInvokeDynamicInsn
public void visitInvokeDynamicInsn(String name, String desc, org.objectweb.asm.Handle bsm, Object... bsmArgs) - Overrides:
visitInvokeDynamicInsnin classorg.objectweb.asm.util.Textifier
-
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 varIndex, 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
public void visitLocalVariable(String name, String desc, String signature, org.objectweb.asm.Label start, org.objectweb.asm.Label end, int index) - Overrides:
visitLocalVariablein 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:
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
-
visitNestHost
- Overrides:
visitNestHostin classorg.objectweb.asm.util.Textifier
-
visitNestMember
- Overrides:
visitNestMemberin classorg.objectweb.asm.util.Textifier
-
visitMainClass
- Overrides:
visitMainClassin classorg.objectweb.asm.util.Textifier
-
visitPackage
- Overrides:
visitPackagein classorg.objectweb.asm.util.Textifier
-
visitOpen
- Overrides:
visitOpenin classorg.objectweb.asm.util.Textifier
-
visitAnnotableParameterCount
public org.objectweb.asm.util.Textifier visitAnnotableParameterCount(int parameterCount, boolean visible) - Overrides:
visitAnnotableParameterCountin classorg.objectweb.asm.util.Textifier
-
visitRecordComponent
public org.objectweb.asm.util.Printer visitRecordComponent(String name, String descriptor, String signature) - Overrides:
visitRecordComponentin classorg.objectweb.asm.util.Textifier
-
visitRecordComponentAnnotation
public org.objectweb.asm.util.Textifier visitRecordComponentAnnotation(String descriptor, boolean visible) - Overrides:
visitRecordComponentAnnotationin 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:
visitRecordComponentTypeAnnotationin classorg.objectweb.asm.util.Textifier
-
visitRecordComponentAttribute
public void visitRecordComponentAttribute(org.objectweb.asm.Attribute attribute) - Overrides:
visitRecordComponentAttributein classorg.objectweb.asm.util.Textifier
-
visitRecordComponentEnd
public void visitRecordComponentEnd()- Overrides:
visitRecordComponentEndin classorg.objectweb.asm.util.Textifier
-
visitPermittedSubclass
- Overrides:
visitPermittedSubclassin classorg.objectweb.asm.util.Textifier
-