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

public Class Transformer

extends Object
implements UnaryFunction<byte[], byte[]>
Class Inheritance
All Implemented Interfaces
org.glassfish.pfl.basic.func.UnaryFunction, java.util.function.Function
Imports
java.util.Iterator, .Set, org.glassfish.pfl.basic.func.UnaryFunction, org.glassfish.pfl.tf.spi.EnhancedClassData, .EnhancedClassDataASMImpl, .TimingPointType, .TraceEnhancementException, .Util, org.glassfish.pfl.tf.timer.spi.TimerFactoryBuilder, .TimingInfoProcessor, org.objectweb.asm.ClassReader, .ClassVisitor, .Opcodes, org.objectweb.asm.tree.ClassNode

References Deprecated

UnaryFunction is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

ClassFile enhancer for the tracing facility. This modifies the bytecode for an applicable class, then returns the updated bytecode. Makes extensive use of the ASM library. This is split into two parts. The first part modifies the schema of the class as follows:

The second part modifies the MM annotated methods as follows:

Note that the second part could be run in a ClassFileTransformer or ClassLoader if desired, since this design enhances the class files in place for the first part.

Author
ken

Field Summary

Modifier and TypeField and Description
private final Set<String>
private EnhancedClassData
private final EnhanceTool.ProcessingMode
private final TimingInfoProcessor
private final Util

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public byte[]
private String
private boolean
hasAccess(int access, int flag)

private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

annotationNamesback to summary
private final Set<String> annotationNames
ecdback to summary
private EnhancedClassData ecd
modeback to summary
private final EnhanceTool.ProcessingMode mode
tipback to summary
private final TimingInfoProcessor tip
utilback to summary
private final Util util

Constructor Detail

Transformerback to summary
pack-priv Transformer(Util util, EnhanceTool.ProcessingMode mode, TimingInfoProcessor tip, Set<String> anames)

Method Detail

evaluateback to summary
public byte[] evaluate(final byte[] arg)

Implements org.glassfish.pfl.basic.func.UnaryFunction.evaluate.

getSuffixback to summary
private String getSuffix(String str)
hasAccessback to summary
private boolean hasAccess(int access, int flag)
processTimersback to summary
private void processTimers()