Class Parameter
java.lang.Object
org.springframework.binding.method.Parameter
A named method parameter. Each parameter has an identifying name and is of a specified type (class).
- Author:
- Keith Donald
-
Constructor Summary
ConstructorDescriptionParameter
(Class<?> type, Expression name) Create a new named parameter definition. -
Method Summary
Modifier and TypeMethodDescriptionboolean
evaluateArgument
(Object argumentSource) Evaluate this method parameter against the provided argument source, returning a single method argument value.getName()
Returns the parameter name.Class<?>
getType()
Returns the parameter type.int
hashCode()
toString()
-
Constructor Details
-
Parameter
Create a new named parameter definition. Named parameters are capable of resolving parameter values (arguments) from argument sources.- Parameters:
type
- the parameter type, may be nullname
- the name the method argument expression (required)
-
-
Method Details
-
getType
Returns the parameter type. Could be null if no parameter type was specified. -
getName
Returns the parameter name. -
evaluateArgument
Evaluate this method parameter against the provided argument source, returning a single method argument value.- Parameters:
argumentSource
- the method argument source- Returns:
- the method argument value
-
equals
-
hashCode
public int hashCode() -
toString
-