|
Spring Hateoas | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.hateoas.core.MethodParameters
public class MethodParameters
Value object to represent MethodParameters to allow to easily find the ones with a given annotation.
| Constructor Summary | |
|---|---|
MethodParameters(Method method)
Creates a new MethodParameters from the given Method. |
|
MethodParameters(Method method,
AnnotationAttribute namingAnnotation)
Creates a new MethodParameters for the given Method and AnnotationAttribute. |
|
| Method Summary | |
|---|---|
MethodParameter |
getParameter(String name)
Returns the MethodParameter with the given name or null if none found. |
List<MethodParameter> |
getParameters()
Returns all MethodParameters. |
List<MethodParameter> |
getParametersOfType(Class<?> type)
Returns all parameters of the given type. |
List<MethodParameter> |
getParametersWith(Class<? extends Annotation> annotation)
Returns all MethodParameters annotated with the given annotation type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MethodParameters(Method method)
MethodParameters from the given Method.
method - must not be null.
public MethodParameters(Method method,
AnnotationAttribute namingAnnotation)
MethodParameters for the given Method and AnnotationAttribute. If the latter
is given, method parameter names will be looked up from the annotation attribute if present.
method - must not be null.namingAnnotation - can be null.| Method Detail |
|---|
public List<MethodParameter> getParameters()
MethodParameters.
public MethodParameter getParameter(String name)
MethodParameter with the given name or null if none found.
name - must not be null or empty.
public List<MethodParameter> getParametersOfType(Class<?> type)
type - must not be null.
public List<MethodParameter> getParametersWith(Class<? extends Annotation> annotation)
MethodParameters annotated with the given annotation type.
annotation - must not be null.
|
Spring Hateoas | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||