com.lyncode.jtwig.functions.util
Class Requirements

java.lang.Object
  extended by com.lyncode.jtwig.functions.util.Requirements

public class Requirements
extends Object


Constructor Summary
Requirements(Object... arguments)
           
 
Method Summary
static org.hamcrest.Matcher<Integer> between(int start, int end)
           
static org.hamcrest.Matcher<Object> isArray()
           
static Requirements requires(Object... arguments)
           
 Requirements withArgument(int number, org.hamcrest.Matcher<Object> predicate)
           
 Requirements withNumberOfArguments(org.hamcrest.Matcher<Integer> predicate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Requirements

public Requirements(Object... arguments)
Method Detail

requires

public static Requirements requires(Object... arguments)

withNumberOfArguments

public Requirements withNumberOfArguments(org.hamcrest.Matcher<Integer> predicate)
                                   throws FunctionException
Throws:
FunctionException

withArgument

public Requirements withArgument(int number,
                                 org.hamcrest.Matcher<Object> predicate)
                          throws FunctionException
Throws:
FunctionException

isArray

public static org.hamcrest.Matcher<Object> isArray()

between

public static org.hamcrest.Matcher<Integer> between(int start,
                                                    int end)


Copyright © 2014. All Rights Reserved.