public class Parameter
extends java.lang.Object
Constructor and Description |
---|
Parameter(java.lang.Class<?> type,
Expression name)
Create a new named parameter definition.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Object |
evaluateArgument(java.lang.Object argumentSource)
Evaluate this method parameter against the provided argument source, returning a single method argument value.
|
Expression |
getName()
Returns the parameter name.
|
java.lang.Class<?> |
getType()
Returns the parameter type.
|
int |
hashCode() |
java.lang.String |
toString() |
public Parameter(java.lang.Class<?> type, Expression name)
type
- the parameter type, may be nullname
- the name the method argument expression (required)public java.lang.Class<?> getType()
public Expression getName()
public java.lang.Object evaluateArgument(java.lang.Object argumentSource)
argumentSource
- the method argument sourcepublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object