JBoss Reflection 2.2.1.SP1

org.jboss.joinpoint.plugins
Class BasicMethodJoinPoint

java.lang.Object
  extended by org.jboss.joinpoint.plugins.BasicTargettedJoinPoint
      extended by org.jboss.joinpoint.plugins.BasicMethodJoinPoint
All Implemented Interfaces:
Cloneable, Joinpoint, MethodJoinpoint, TargettedJoinpoint

public class BasicMethodJoinPoint
extends BasicTargettedJoinPoint
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.BasicTargettedJoinPoint
target
 
Constructor Summary
BasicMethodJoinPoint(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.BasicTargettedJoinPoint
cleanup, 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
cleanup, clone
 

Field Detail

methodInfo

protected MethodInfo methodInfo
The method info


arguments

protected Object[] arguments
The arguments

Constructor Detail

BasicMethodJoinPoint

public BasicMethodJoinPoint(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

JBoss Reflection 2.2.1.SP1

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