public class ParamInfo extends Object implements Comparable<ParamInfo>
Parametrized action,
Parametrized sense| Modifier and Type | Class and Description |
|---|---|
static class |
ParamInfo.Type
Enum of all possible types allowed as the parameters of methods in a
parametrized primitive.
|
| Modifier and Type | Field and Description |
|---|---|
String |
clsName
The class of the parameter.
|
String |
name
Name of the parameter, i.e. the string in the
Param annotation. |
ParamInfo.Type |
type
Type of parameter.
|
| Constructor and Description |
|---|
ParamInfo(String name,
ParamInfo.Type type,
String clsName)
Create new info object about parameter of a parametrized method.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ParamInfo o) |
boolean |
isValueAssignable(Object value)
Is passed value assignable to the parameter?
|
public final ParamInfo.Type type
public final String clsName
public ParamInfo(String name, ParamInfo.Type type, String clsName)
name - Name of a parameter (from {@link Param) annotation.type - Type of parameter that is being accepted.clsName - Class of the parameter, but as string, not the actual
class, e.g. "java.lang.String"public int compareTo(ParamInfo o)
compareTo in interface Comparable<ParamInfo>public boolean isValueAssignable(Object value)
value - See ParamInfo.Type for list, e.g. instance of String,
EnumValue, int, Integer, Double,...type.Copyright © 2018 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All rights reserved.