|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcz.cuni.amis.pogamut.sposh.executor.ParamInfo
public class ParamInfo
Object for storing information about one parameter of a parametrized primitive. The class is immutable and can be sorted according to the name of the parameter.
Parametrized action,
Parametrized sense| Nested Class Summary | |
|---|---|
static class |
ParamInfo.Type
Enum of all possible types allowed as the parameters of methods in a parametrized primitive. |
| Field Summary | |
|---|---|
String |
clsName
The class of the parameter. |
String |
name
Name of the parameter, i.e. |
ParamInfo.Type |
type
Type of parameter. |
| Constructor Summary | |
|---|---|
ParamInfo(String name,
ParamInfo.Type type,
String clsName)
Create new info object about parameter of a parametrized method. |
|
| Method Summary | |
|---|---|
int |
compareTo(ParamInfo o)
|
boolean |
isValueAssignable(Object value)
Is passed value assignable to the parameter? This method is not called during runtime. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final String name
Param annotation.
public final ParamInfo.Type type
public final String clsName
| Constructor Detail |
|---|
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"| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||