org.springframework.roo.classpath.layers
Class MethodParameter
java.lang.Object
org.apache.commons.lang3.tuple.Pair<L,R>
org.apache.commons.lang3.tuple.MutablePair<org.springframework.roo.model.JavaType,org.springframework.roo.model.JavaSymbolName>
org.springframework.roo.classpath.layers.MethodParameter
- All Implemented Interfaces:
- Serializable, Comparable<org.apache.commons.lang3.tuple.Pair<org.springframework.roo.model.JavaType,org.springframework.roo.model.JavaSymbolName>>, Map.Entry<org.springframework.roo.model.JavaType,org.springframework.roo.model.JavaSymbolName>
public class MethodParameter
- extends org.apache.commons.lang3.tuple.MutablePair<org.springframework.roo.model.JavaType,org.springframework.roo.model.JavaSymbolName>
A parameter being passed to a layer method.
- Since:
- 1.2.0
- Author:
- Andrew Swan
- See Also:
- Serialized Form
| Fields inherited from class org.apache.commons.lang3.tuple.MutablePair |
left, right |
|
Constructor Summary |
MethodParameter(org.springframework.roo.model.JavaType type,
org.springframework.roo.model.JavaSymbolName name)
Constructor. |
MethodParameter(org.springframework.roo.model.JavaType type,
String name)
Constructor |
|
Method Summary |
static List<MethodParameter> |
asList(List<org.apache.commons.lang3.tuple.MutablePair<org.springframework.roo.model.JavaType,org.springframework.roo.model.JavaSymbolName>> parameters)
Converts the given list of pairs to a list of MethodParameters |
org.springframework.roo.model.JavaType |
getLeft()
|
org.springframework.roo.model.JavaSymbolName |
getRight()
|
void |
setLeft(org.springframework.roo.model.JavaType left)
|
void |
setRight(org.springframework.roo.model.JavaSymbolName right)
|
org.springframework.roo.model.JavaSymbolName |
setValue(org.springframework.roo.model.JavaSymbolName value)
|
String |
toString()
|
| Methods inherited from class org.apache.commons.lang3.tuple.MutablePair |
of |
| Methods inherited from class org.apache.commons.lang3.tuple.Pair |
compareTo, equals, getKey, getValue, hashCode, toString |
MethodParameter
public MethodParameter(org.springframework.roo.model.JavaType type,
org.springframework.roo.model.JavaSymbolName name)
- Constructor.
- Parameters:
type - the parameter's type (required)name - the parameter's name (required)
MethodParameter
public MethodParameter(org.springframework.roo.model.JavaType type,
String name)
- Constructor
- Parameters:
type - the parameter's type (required)name - the parameter's name (required)
asList
public static List<MethodParameter> asList(List<org.apache.commons.lang3.tuple.MutablePair<org.springframework.roo.model.JavaType,org.springframework.roo.model.JavaSymbolName>> parameters)
- Converts the given list of pairs to a list of
MethodParameters
- Parameters:
parameters - the pairs to convert (can be null)
- Returns:
getLeft
public org.springframework.roo.model.JavaType getLeft()
- Overrides:
getLeft in class org.apache.commons.lang3.tuple.MutablePair<org.springframework.roo.model.JavaType,org.springframework.roo.model.JavaSymbolName>
getRight
public org.springframework.roo.model.JavaSymbolName getRight()
- Overrides:
getRight in class org.apache.commons.lang3.tuple.MutablePair<org.springframework.roo.model.JavaType,org.springframework.roo.model.JavaSymbolName>
setLeft
public void setLeft(org.springframework.roo.model.JavaType left)
- Overrides:
setLeft in class org.apache.commons.lang3.tuple.MutablePair<org.springframework.roo.model.JavaType,org.springframework.roo.model.JavaSymbolName>
setRight
public void setRight(org.springframework.roo.model.JavaSymbolName right)
- Overrides:
setRight in class org.apache.commons.lang3.tuple.MutablePair<org.springframework.roo.model.JavaType,org.springframework.roo.model.JavaSymbolName>
setValue
public org.springframework.roo.model.JavaSymbolName setValue(org.springframework.roo.model.JavaSymbolName value)
- Specified by:
setValue in interface Map.Entry<org.springframework.roo.model.JavaType,org.springframework.roo.model.JavaSymbolName>- Overrides:
setValue in class org.apache.commons.lang3.tuple.MutablePair<org.springframework.roo.model.JavaType,org.springframework.roo.model.JavaSymbolName>
toString
public String toString()
- Overrides:
toString in class org.apache.commons.lang3.tuple.Pair<org.springframework.roo.model.JavaType,org.springframework.roo.model.JavaSymbolName>
Copyright © 2009–2015. All rights reserved.