org.jboss.joinpoint.plugins.reflect
Class ReflectMethodJoinPoint

java.lang.Object
  extended by org.jboss.joinpoint.plugins.reflect.ReflectTargettedJoinPoint
      extended by org.jboss.joinpoint.plugins.reflect.ReflectMethodJoinPoint
All Implemented Interfaces:
Cloneable, Joinpoint, MethodJoinpoint, TargettedJoinpoint

public class ReflectMethodJoinPoint
extends ReflectTargettedJoinPoint
implements MethodJoinpoint

A method joinpoint

Author:
Adrian Brock

Field Summary
protected  Object[] arguments
          The arguments
protected  MethodInfo methodInfo
          The method info
 
Fields inherited from class org.jboss.joinpoint.plugins.reflect.ReflectTargettedJoinPoint
target
 
Constructor Summary
ReflectMethodJoinPoint(MethodInfo methodInfo)
          Create a new method join point
 
Method Summary
 Object dispatch()
          Invoke on the actual joinpoint
 Object[] getArguments()
          Get the arguments of the join point
 MethodInfo getMethodInfo()
          Get the method info
 void setArguments(Object[] args)
          Set the arguments of the method invocation
 String toHumanReadableString()
          A human readable version of the join point
 
Methods inherited from class org.jboss.joinpoint.plugins.reflect.ReflectTargettedJoinPoint
clone, getTarget, setTarget
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.joinpoint.spi.TargettedJoinpoint
getTarget, setTarget
 
Methods inherited from interface org.jboss.joinpoint.spi.Joinpoint
clone
 

Field Detail

methodInfo

protected MethodInfo methodInfo
The method info


arguments

protected Object[] arguments
The arguments

Constructor Detail

ReflectMethodJoinPoint

public ReflectMethodJoinPoint(MethodInfo methodInfo)
Create a new method join point

Parameters:
methodInfo - the methodInfo
Method Detail

getMethodInfo

public MethodInfo getMethodInfo()
Description copied from interface: MethodJoinpoint
Get the method info

Specified by:
getMethodInfo in interface MethodJoinpoint
Returns:
the method info

getArguments

public Object[] getArguments()
Description copied from interface: MethodJoinpoint
Get the arguments of the join point

Specified by:
getArguments in interface MethodJoinpoint
Returns:
the arguments

setArguments

public void setArguments(Object[] args)
Description copied from interface: MethodJoinpoint
Set the arguments of the method invocation

Specified by:
setArguments in interface MethodJoinpoint
Parameters:
args - the arguments

dispatch

public Object dispatch()
                throws Throwable
Description copied from interface: Joinpoint
Invoke on the actual joinpoint

Specified by:
dispatch in interface Joinpoint
Returns:
the result of the invocation
Throws:
Throwable - for any error

toHumanReadableString

public String toHumanReadableString()
Description copied from interface: Joinpoint
A human readable version of the join point

Specified by:
toHumanReadableString in interface Joinpoint
Returns:
a human readable description of the join point


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.