Constructor and Description |
---|
Parameters(Method method)
Creates a new instance of
Parameters . |
Modifier and Type | Method and Description |
---|---|
protected Parameter |
createParameter(MethodParameter parameter) |
Parameter |
getBindableParameter(int bindableIndex)
Returns a bindable parameter with the given index.
|
Parameters |
getBindableParameters()
Returns a
Parameters instance with effectively all special parameters removed. |
int |
getNumberOfParameters()
Returns the number of parameters.
|
int |
getPageableIndex()
|
Parameter |
getParameter(int index)
Returns the parameter with the given index.
|
int |
getSortIndex()
|
boolean |
hasPageableParameter()
Returns whether the method the
Parameters was created for contains a Pageable argument. |
boolean |
hasParameterAt(int position)
Returns whether we have a parameter at the given position.
|
boolean |
hasSortParameter()
Returns whether the method the
Parameters was created for contains a Sort argument. |
boolean |
hasSpecialParameter()
|
static boolean |
isBindable(Class<?> type)
Returns whether the given type is a bindable parameter.
|
Iterator<Parameter> |
iterator() |
boolean |
potentiallySortsDynamically()
Returns whether we potentially find a
Sort parameter in the parameters. |
public Parameters(Method method)
Parameters
.method
- protected Parameter createParameter(MethodParameter parameter)
public boolean hasPageableParameter()
Parameters
was created for contains a Pageable
argument.public int getPageableIndex()
Pageable
Method
parameter if available. Will return -1 if there
is no Pageable
argument in the Method
's parameter list.public int getSortIndex()
Sort
Method
parameter if available. Will return -1 if there is
no Sort
argument in the Method
's parameter list.public boolean hasSortParameter()
Parameters
was created for contains a Sort
argument.public boolean potentiallySortsDynamically()
Sort
parameter in the parameters.public Parameter getParameter(int index)
index
- public boolean hasParameterAt(int position)
position
- public boolean hasSpecialParameter()
public int getNumberOfParameters()
public Parameters getBindableParameters()
Parameters
instance with effectively all special parameters removed.Parameter.TYPES
,
Parameter.isSpecialParameter()
public Parameter getBindableParameter(int bindableIndex)
(Pageable pageable, String name)
a call to #getBindableParameter(0)
will return the String
parameter.bindableIndex
- public static boolean isBindable(Class<?> type)
type
- Copyright © 2011-2013-2013 SpringSource. All Rights Reserved.