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

ConstructorCondition

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

Fields Summary
Constructor
constructor
Constructors Summary
public ConstructorCondition(Constructor constructor, String condExpr)

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

      if (o instanceof ConstructorCondition)
      {
         ConstructorCondition cc = (ConstructorCondition)o;
         if (cc.constructor.equals(constructor))
         {
            return super.equals(o);
         }
      }
      return false;
   
protected java.lang.ObjectexecutableObject()

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

      if (token.equals(Condition.TARGET))
      {
         //For constructors the $tgt token corresponds to the return of the method
         return rtn;
      }

      return null;
   
protected booleanisPredefinedToken(java.lang.String token)

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

      return constructor.getParameterTypes();