org.specrunner.expressions.core
Class ExpressionKey

java.lang.Object
  extended by org.specrunner.expressions.core.ExpressionKey

public class ExpressionKey
extends Object

Expression key.


Constructor Summary
ExpressionKey()
          Basic constructor.
ExpressionKey(String expression, Class<Object> returnType, String[] arrayArgs, Class<?>[] arrayTypes)
          Basic constructor.
 
Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
 String toString()
           
static ExpressionKey unique(String expression, Class<?> returnType, String[] arrayArgs, Class<?>[] arrayTypes)
          Assign information to a unique instance.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExpressionKey

public ExpressionKey()
Basic constructor.


ExpressionKey

public ExpressionKey(String expression,
                     Class<Object> returnType,
                     String[] arrayArgs,
                     Class<?>[] arrayTypes)
Basic constructor.

Parameters:
expression - The expression.
returnType - The return type.
arrayArgs - Argument names.
arrayTypes - Argument types.
Method Detail

unique

public static ExpressionKey unique(String expression,
                                   Class<?> returnType,
                                   String[] arrayArgs,
                                   Class<?>[] arrayTypes)
Assign information to a unique instance.

Parameters:
expression - The expression.
returnType - The return type.
arrayArgs - The arguments names.
arrayTypes - The parameter types.
Returns:
The expression key.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014. All rights reserved.