org.jboss.aop.instrument
Class GeneratedAdvisorCallerInfoAdder

java.lang.Object
  extended by org.jboss.aop.instrument.CallerInfoAdder
      extended by org.jboss.aop.instrument.GeneratedAdvisorCallerInfoAdder

public class GeneratedAdvisorCallerInfoAdder
extends CallerInfoAdder

Adds CallerInfo fields to generated advisor

Version:
$Revision$
Author:
Kabir Khan

Constructor Summary
GeneratedAdvisorCallerInfoAdder(Instrumentor instrumentor)
           
 
Method Summary
protected  void addConByConInfoField(javassist.CtClass addTo, String fieldName, String callingClassName, int callingIndex, String classname, long calledHash)
           
protected  void addConByMethodInfoField(javassist.CtClass addTo, String fieldName, long callingHash, String classname, long calledHash)
           
protected  boolean addInfoAsWeakReference()
           
protected  void addMethodByConInfoField(javassist.CtClass addTo, String fieldName, String callingClassName, int callingIndex, String classname, long calledHash)
           
protected  void addMethodByMethodInfoField(javassist.CtClass addTo, String fieldName, long callingHash, String classname, long calledHash)
           
protected  boolean markInfoAsSynthetic()
           
 
Methods inherited from class org.jboss.aop.instrument.CallerInfoAdder
addConByConInfoField, addConByMethodInfoField, addMethodByConInfoField, addMethodByMethodInfoField
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneratedAdvisorCallerInfoAdder

public GeneratedAdvisorCallerInfoAdder(Instrumentor instrumentor)
Method Detail

addMethodByMethodInfoField

protected void addMethodByMethodInfoField(javassist.CtClass addTo,
                                          String fieldName,
                                          long callingHash,
                                          String classname,
                                          long calledHash)
                                   throws javassist.NotFoundException,
                                          javassist.CannotCompileException
Specified by:
addMethodByMethodInfoField in class CallerInfoAdder
Throws:
javassist.NotFoundException
javassist.CannotCompileException

addConByMethodInfoField

protected void addConByMethodInfoField(javassist.CtClass addTo,
                                       String fieldName,
                                       long callingHash,
                                       String classname,
                                       long calledHash)
                                throws javassist.NotFoundException,
                                       javassist.CannotCompileException
Specified by:
addConByMethodInfoField in class CallerInfoAdder
Throws:
javassist.NotFoundException
javassist.CannotCompileException

addConByConInfoField

protected void addConByConInfoField(javassist.CtClass addTo,
                                    String fieldName,
                                    String callingClassName,
                                    int callingIndex,
                                    String classname,
                                    long calledHash)
                             throws javassist.NotFoundException,
                                    javassist.CannotCompileException
Specified by:
addConByConInfoField in class CallerInfoAdder
Throws:
javassist.NotFoundException
javassist.CannotCompileException

addMethodByConInfoField

protected void addMethodByConInfoField(javassist.CtClass addTo,
                                       String fieldName,
                                       String callingClassName,
                                       int callingIndex,
                                       String classname,
                                       long calledHash)
                                throws javassist.NotFoundException,
                                       javassist.CannotCompileException
Specified by:
addMethodByConInfoField in class CallerInfoAdder
Throws:
javassist.NotFoundException
javassist.CannotCompileException

addInfoAsWeakReference

protected boolean addInfoAsWeakReference()
Specified by:
addInfoAsWeakReference in class CallerInfoAdder

markInfoAsSynthetic

protected boolean markInfoAsSynthetic()
Specified by:
markInfoAsSynthetic in class CallerInfoAdder


Copyright © 2008 JBoss, a division of Red Hat, Inc.. All Rights Reserved.