org.jboss.aop
Class MethodInfo

java.lang.Object
  extended by org.jboss.aop.JoinPointInfo
      extended by org.jboss.aop.MethodInfo
All Implemented Interfaces:
IJoinPointInfo, IMethodInfo

public class MethodInfo
extends JoinPointInfo
implements IMethodInfo

This class is here to eliminate a hash lookup in invokeMethod


Field Summary
 
Fields inherited from class org.jboss.aop.JoinPointInfo
clazz, joinpoint
 
Constructor Summary
MethodInfo()
           
MethodInfo(Class clazz, long hash, long unadvisedHash, Advisor advisor)
           
 
Method Summary
 JoinPointInfo copy()
           
 Method getAdvisedMethod()
          Gets the method being called
 long getHash()
          Gets the hash of the method being called
 Method getUnadvisedMethod()
           
protected  Joinpoint internalGetJoinpoint()
           
 Object resolveAnnotation(Class annotation)
          Resolves annotations on the particular joinpoint (field, constructor, method etc.)
 void setAdvisedMethod(Method advisedMethod)
           
 void setHash(long hash)
           
 void setUnadvisedMethod(Method unadvisedMethod)
           
 String toString()
           
 
Methods inherited from class org.jboss.aop.JoinPointInfo
clear, cloneChains, equalChains, getAdvisor, getClazz, getInterceptorChain, getInterceptors, getJoinpoint, hasAdvices, resolveClassAnnotation, resolveClassMetaData, setAdvisor, setInterceptorChain, setInterceptors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.aop.joinpoint.IJoinPointInfo
getAdvisor, getClazz, resolveClassAnnotation, resolveClassMetaData
 

Constructor Detail

MethodInfo

public MethodInfo()

MethodInfo

public MethodInfo(Class clazz,
                  long hash,
                  long unadvisedHash,
                  Advisor advisor)
Method Detail

internalGetJoinpoint

protected Joinpoint internalGetJoinpoint()
Specified by:
internalGetJoinpoint in class JoinPointInfo

copy

public JoinPointInfo copy()
Specified by:
copy in class JoinPointInfo

getAdvisedMethod

public Method getAdvisedMethod()
Description copied from interface: IMethodInfo
Gets the method being called

Specified by:
getAdvisedMethod in interface IMethodInfo

setAdvisedMethod

public void setAdvisedMethod(Method advisedMethod)

getHash

public long getHash()
Description copied from interface: IMethodInfo
Gets the hash of the method being called

Specified by:
getHash in interface IMethodInfo

setHash

public void setHash(long hash)

getUnadvisedMethod

public Method getUnadvisedMethod()

setUnadvisedMethod

public void setUnadvisedMethod(Method unadvisedMethod)

toString

public String toString()
Overrides:
toString in class Object

resolveAnnotation

public Object resolveAnnotation(Class annotation)
Description copied from interface: IJoinPointInfo
Resolves annotations on the particular joinpoint (field, constructor, method etc.)

Specified by:
resolveAnnotation in interface IJoinPointInfo
Overrides:
resolveAnnotation in class JoinPointInfo


Copyright © 2004 JBoss Inc. All Rights Reserved.