org.jboss.aop.instrument
Class TransformerCommon
java.lang.Object
org.jboss.aop.instrument.TransformerCommon
public class TransformerCommon
- extends Object
A few handy methods and common things used by the other Transformers
- Version:
- $Revision: 43757 $
- Author:
- Kabir Khan
Method Summary |
protected static void |
addInfoField(Instrumentor instrumentor,
String infoClassName,
String infoName,
int modifiers,
javassist.CtClass addTo,
boolean weak,
javassist.CtField.Initializer init)
|
static void |
compileOrLoadClass(javassist.CtClass classForPackage,
javassist.CtClass newClass)
|
static void |
compileOrLoadClass(javassist.CtClass classForPackage,
javassist.CtClass newClass,
boolean compile)
Compiles the class to file or adds it to the class pool |
protected static String |
infoFromWeakReference(String infoClassName,
String localName,
String infoName)
|
static boolean |
isCompileTime()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransformerCommon
public TransformerCommon()
isCompileTime
public static boolean isCompileTime()
compileOrLoadClass
public static void compileOrLoadClass(javassist.CtClass classForPackage,
javassist.CtClass newClass)
compileOrLoadClass
public static void compileOrLoadClass(javassist.CtClass classForPackage,
javassist.CtClass newClass,
boolean compile)
- Compiles the class to file or adds it to the class pool
- Parameters:
classForPackage
- The class to be used to determine the directory to place the class ininvocation
- The class to be comiled/added to class pool
- Throws:
Exception
addInfoField
protected static void addInfoField(Instrumentor instrumentor,
String infoClassName,
String infoName,
int modifiers,
javassist.CtClass addTo,
boolean weak,
javassist.CtField.Initializer init)
throws javassist.NotFoundException,
javassist.CannotCompileException
- Throws:
javassist.NotFoundException
javassist.CannotCompileException
infoFromWeakReference
protected static String infoFromWeakReference(String infoClassName,
String localName,
String infoName)
Copyright © 2004 JBoss Inc. All Rights Reserved.