com.agical.rmock.core.match.constraint.method
Class MethodConstraintFactory

java.lang.Object
  extended by com.agical.rmock.core.match.constraint.method.MethodConstraintFactory

public class MethodConstraintFactory
extends java.lang.Object


Constructor Summary
MethodConstraintFactory()
           
 
Method Summary
 Expression name(Expression expression)
          Passes if the mame of any method passed to this constraint passes the expression passes as the expression parameter.
 Expression paramTypes(Expression[] expressions)
          Returns an expression that matches the parametertypes of a method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodConstraintFactory

public MethodConstraintFactory()
Method Detail

name

public Expression name(Expression expression)
Passes if the mame of any method passed to this constraint passes the expression passes as the expression parameter.

Parameters:
expression - The expression the name of a methofd passed to the constraint must pass
Returns:
A MethodNameConstraint

paramTypes

public Expression paramTypes(Expression[] expressions)
Returns an expression that matches the parametertypes of a method.

Parameters:
expressions - Expressions to match the parameter types of this method
Returns:
an expression that matches parameter types.


Copyright © 2005-2009 Agical AB. All Rights Reserved.