Top Inners Fields Constructors Methods
org.glassfish.pfl.tf.tools.enhancer

public Class ClassEnhancer

extends TFEnhanceAdapter
Class Inheritance
Imports
org.glassfish.pfl.basic.contain.SynchronizedHolder, org.glassfish.pfl.tf.spi.EnhancedClassData, .Util, org.glassfish.pfl.tf.spi.annotation.TraceEnhanceLevel, org.objectweb.asm.ClassVisitor, .Label, .MethodVisitor, .Opcodes, .Type, org.objectweb.asm.commons.GeneratorAdapter

Nested and Inner Type Summary

Modifier and TypeClass and Description
public class
public class
public class

Field Summary

Modifier and TypeField and Description
private final EnhancedClassData
private boolean
private final Util

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
info(int level, String msg)

public void
visitEnd()

Overrides org.objectweb.asm.ClassVisitor.visitEnd.

Visits the end of the class.

public MethodVisitor
visitMethod(final int access, final String name, final String desc, final String sig, final String[] exceptions)

Overrides org.glassfish.pfl.tf.tools.enhancer.TFEnhanceAdapter.visitMethod.

Visits a method of the class.

Inherited from org.glassfish.pfl.tf.tools.enhancer.TFEnhanceAdapter:
visitAnnotationvisitFieldvisitInnerClass

Field Detail

ecdback to summary
private final EnhancedClassData ecd

Hides org.glassfish.pfl.tf.tools.enhancer.TFEnhanceAdapter.ecd.

hasStaticInitializerback to summary
private boolean hasStaticInitializer
utilback to summary
private final Util util

Constructor Detail

ClassEnhancerback to summary
public ClassEnhancer(Util util, EnhancedClassData ecd, ClassVisitor cv)

Method Detail

infoback to summary
private void info(int level, String msg)
visitEndback to summary
public void visitEnd()

Overrides org.objectweb.asm.ClassVisitor.visitEnd.

Doc from org.objectweb.asm.ClassVisitor.visitEnd.

Visits the end of the class. This method, which is the last one to be called, is used to inform the visitor that all the fields and methods of the class have been visited.

Annotations
@Override
visitMethodback to summary
public MethodVisitor visitMethod(final int access, final String name, final String desc, final String sig, final String[] exceptions)

Overrides org.glassfish.pfl.tf.tools.enhancer.TFEnhanceAdapter.visitMethod.

Doc from org.objectweb.asm.ClassVisitor.visitMethod.

Visits a method of the class. This method must return a new MethodVisitor instance (or null) each time it is called, i.e., it should not return a previously returned visitor.

Annotations
@Override
org.glassfish.pfl.tf.tools.enhancer back to summary

public Class ClassEnhancer.InfoMethodCallRewriter

extends GeneratorAdapter
Class Inheritance

Field Summary

Inherited from org.objectweb.asm.commons.GeneratorAdapter:
ADDANDDIVEQGEGTLELTMULNENEGORREMSHLSHRSUBUSHRXOR

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
visitMethodInsn(int opcode, String owner, String name, String desc, boolean isInterface)

Overrides org.objectweb.asm.MethodVisitor.visitMethodInsn.

Visits a method instruction.

Inherited from org.objectweb.asm.commons.GeneratorAdapter:
arrayLengtharrayLoadarrayStoreboxcastcatchExceptioncheckCastdupdup2dup2X1dup2X2dupX1dupX2endMethodgetAccessgetArgumentTypesgetFieldgetLocalTypegetNamegetReturnTypegetStaticgoToifCmpifICmpifNonNullifNullifZCmpiincinstanceOfinvokeConstructorinvokeDynamicinvokeInterfaceinvokeStaticinvokeVirtualloadArgloadArgArrayloadArgsloadArgsloadLocalloadLocalloadThismarkmarkmathmonitorEntermonitorExitnewArraynewInstancenewLabelnotpoppop2pushpushpushpushpushpushpushpushpushputFieldputStaticretreturnValuesetLocalTypestoreArgstoreLocalstoreLocalswapswaptableSwitchtableSwitchthrowExceptionthrowExceptionunboxvalueOf

Constructor Detail

InfoMethodCallRewriterback to summary
public InfoMethodCallRewriter(MethodVisitor mv, int acc, String name, String desc)

Method Detail

visitMethodInsnback to summary
public void visitMethodInsn(int opcode, String owner, String name, String desc, boolean isInterface)

Overrides org.objectweb.asm.MethodVisitor.visitMethodInsn.

Doc from org.objectweb.asm.MethodVisitor.visitMethodInsn.

Visits a method instruction. A method instruction is an instruction that invokes a method.

Annotations
@Override
org.glassfish.pfl.tf.tools.enhancer back to summary

public Class ClassEnhancer.InfoMethodRewriter

extends GeneratorAdapter
Class Inheritance

Field Summary

Modifier and TypeField and Description
private int
private String
private String
Inherited from org.objectweb.asm.commons.GeneratorAdapter:
ADDANDDIVEQGEGTLELTMULNENEGORREMSHLSHRSUBUSHRXOR

Constructor Summary

AccessConstructor and Description
public
InfoMethodRewriter(MethodVisitor mv, int acc, String name, String desc)

Method Summary

Modifier and TypeMethod and Description
public void
visitCode()

Overrides org.objectweb.asm.MethodVisitor.visitCode.

Starts the visit of the method's code, if any (i.e. non abstract method).

Inherited from org.objectweb.asm.commons.GeneratorAdapter:
arrayLengtharrayLoadarrayStoreboxcastcatchExceptioncheckCastdupdup2dup2X1dup2X2dupX1dupX2endMethodgetAccessgetArgumentTypesgetFieldgetLocalTypegetNamegetReturnTypegetStaticgoToifCmpifICmpifNonNullifNullifZCmpiincinstanceOfinvokeConstructorinvokeDynamicinvokeInterfaceinvokeStaticinvokeVirtualloadArgloadArgArrayloadArgsloadArgsloadLocalloadLocalloadThismarkmarkmathmonitorEntermonitorExitnewArraynewInstancenewLabelnotpoppop2pushpushpushpushpushpushpushpushpushputFieldputStaticretreturnValuesetLocalTypestoreArgstoreLocalstoreLocalswapswaptableSwitchtableSwitchthrowExceptionthrowExceptionunboxvalueOf

Field Detail

accessback to summary
private int access

Hides org.objectweb.asm.commons.GeneratorAdapter.access.

descback to summary
private String desc
nameback to summary
private String name

Hides org.objectweb.asm.commons.GeneratorAdapter.name.

Constructor Detail

InfoMethodRewriterback to summary
public InfoMethodRewriter(MethodVisitor mv, int acc, String name, String desc)

Method Detail

visitCodeback to summary
public void visitCode()

Overrides org.objectweb.asm.MethodVisitor.visitCode.

Doc from org.objectweb.asm.MethodVisitor.visitCode.

Starts the visit of the method's code, if any (i.e. non abstract method).

Annotations
@Override
org.glassfish.pfl.tf.tools.enhancer back to summary

public Class ClassEnhancer.NormalMethodChecker

extends GeneratorAdapter
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final String
Inherited from org.objectweb.asm.commons.GeneratorAdapter:
ADDANDDIVEQGEGTLELTMULNENEGORREMSHLSHRSUBUSHRXOR

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
visitMethodInsn(int opcode, String owner, String name, String desc, boolean isInterface)

Overrides org.objectweb.asm.MethodVisitor.visitMethodInsn.

Visits a method instruction.

Inherited from org.objectweb.asm.commons.GeneratorAdapter:
arrayLengtharrayLoadarrayStoreboxcastcatchExceptioncheckCastdupdup2dup2X1dup2X2dupX1dupX2endMethodgetAccessgetArgumentTypesgetFieldgetLocalTypegetNamegetReturnTypegetStaticgoToifCmpifICmpifNonNullifNullifZCmpiincinstanceOfinvokeConstructorinvokeDynamicinvokeInterfaceinvokeStaticinvokeVirtualloadArgloadArgArrayloadArgsloadArgsloadLocalloadLocalloadThismarkmarkmathmonitorEntermonitorExitnewArraynewInstancenewLabelnotpoppop2pushpushpushpushpushpushpushpushpushputFieldputStaticretreturnValuesetLocalTypestoreArgstoreLocalstoreLocalswapswaptableSwitchtableSwitchthrowExceptionthrowExceptionunboxvalueOf

Field Detail

mnameback to summary
private final String mname

Constructor Detail

NormalMethodCheckerback to summary
public NormalMethodChecker(MethodVisitor mv, int acc, String name, String desc)

Method Detail

visitMethodInsnback to summary
public void visitMethodInsn(int opcode, String owner, String name, String desc, boolean isInterface)

Overrides org.objectweb.asm.MethodVisitor.visitMethodInsn.

Doc from org.objectweb.asm.MethodVisitor.visitMethodInsn.

Visits a method instruction. A method instruction is an instruction that invokes a method.

Annotations
@Override