FileDocCategorySizeDatePackage
MethodCondition.javaAPI DocJBoss 4.2.12490Fri Jul 13 21:02:28 BST 2007org.jboss.aspects.dbc.condition

MethodCondition

public class MethodCondition extends ExecutableCondition
author
Kabir Khan
version
$Revision: 57186 $

Fields Summary
Method
method
Constructors Summary
public MethodCondition(Method method, String condExpr, boolean staticCall)

      super(condExpr, method.getClass(), staticCall);
      this.method = method;
   
Methods Summary
public booleanequals(java.lang.Object o)

      if (o instanceof MethodCondition)
      {
         MethodCondition mc = (MethodCondition)o;
         if (mc.method.equals(method))
         {
            return super.equals(o);
         }
      }
      return false;
   
protected java.lang.ObjectexecutableObject()

      return method;
   
protected java.lang.ObjectgetValueForPredefinedToken(org.jboss.aop.joinpoint.Invocation invocation, java.lang.Object rtn, java.lang.String token)

      if (token.equals(Condition.TARGET))
      {
         return getTarget(invocation, isStatic);
      }
      else if (token.equals(Condition.RETURN))
      {
         return rtn;
      }
      
      return null;
   
protected booleanisPredefinedToken(java.lang.String token)

      return token.equals(Condition.TARGET) || token.equals(Condition.RETURN);
   
protected java.lang.Class[]parameterTypes()

      return method.getParameterTypes();