org.virtualmock.aspect.aspectj
Class AspectjAspectUtils

java.lang.Object
  extended byorg.virtualmock.aspect.aspectj.AspectjAspectUtils

public class AspectjAspectUtils
extends java.lang.Object

This is a subclass of AspectUtils which implements behavior specific to AspectJ.

Version:
$Revision: 1.11 $
Author:
Chad Woolley

Constructor Summary
AspectjAspectUtils(AspectUtils aspectUtils)
          Creates a new AspectjAspectUtils object.
 
Method Summary
protected  java.lang.Object[] getArgValuesFromJoinPoint(org.aspectj.lang.JoinPoint joinPoint)
          Uses information obtained from a JoinPoint to build an array of argument values.
protected  InvokedCall getInvokedCallFromJoinPoint(org.aspectj.lang.JoinPoint joinPoint)
          Uses information obtained from a JoinPoint to build an InvokedCall.
protected  Signature getSignatureFromJoinPoint(org.aspectj.lang.JoinPoint joinPoint)
          Uses information obtained from a JoinPoint to build a Signature.
 boolean isJoinPointExcluded(org.aspectj.lang.JoinPoint.StaticPart joinPointStaticPart)
          Determines if the joinpoint defined by the specified JoinPoint.StaticPart has been dynamically excluded.
protected  void throwAsRuntime(java.lang.Throwable throwable)
          invokes the custom BCEL-modified class to throw any Throwable as a RuntimeException.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AspectjAspectUtils

public AspectjAspectUtils(AspectUtils aspectUtils)
Creates a new AspectjAspectUtils object.

Parameters:
aspectUtils - an AspectUtils which will be used internally
Method Detail

isJoinPointExcluded

public boolean isJoinPointExcluded(org.aspectj.lang.JoinPoint.StaticPart joinPointStaticPart)
Determines if the joinpoint defined by the specified JoinPoint.StaticPart has been dynamically excluded.

Parameters:
joinPointStaticPart - JoinPoint.StaticPart
Returns:
true if excluded, false if not

getArgValuesFromJoinPoint

protected java.lang.Object[] getArgValuesFromJoinPoint(org.aspectj.lang.JoinPoint joinPoint)
Uses information obtained from a JoinPoint to build an array of argument values.

Parameters:
joinPoint - the JoinPoint from which to obtain the argument values
Returns:
the array of argument values

getInvokedCallFromJoinPoint

protected InvokedCall getInvokedCallFromJoinPoint(org.aspectj.lang.JoinPoint joinPoint)
Uses information obtained from a JoinPoint to build an InvokedCall.

Parameters:
joinPoint - the JoinPoint from which to obtain an InvokedCall
Returns:
an InvokedCall instance, created from the information in the joinPoint

getSignatureFromJoinPoint

protected Signature getSignatureFromJoinPoint(org.aspectj.lang.JoinPoint joinPoint)
Uses information obtained from a JoinPoint to build a Signature.

Parameters:
joinPoint - the JoinPoint from which to obtain a Signature
Returns:
a Signature

throwAsRuntime

protected void throwAsRuntime(java.lang.Throwable throwable)
invokes the custom BCEL-modified class to throw any Throwable as a RuntimeException.

Parameters:
throwable - the Throwable to throw as a RuntimeException


Copyright © 2003-2005 Virtual Mock. All Rights Reserved.