cz.cuni.amis.pogamut.sposh.executor
Enum ParamInfo.Type
java.lang.Object
java.lang.Enum<ParamInfo.Type>
cz.cuni.amis.pogamut.sposh.executor.ParamInfo.Type
- All Implemented Interfaces:
- Serializable, Comparable<ParamInfo.Type>
- Enclosing class:
- ParamInfo
public static enum ParamInfo.Type
- extends Enum<ParamInfo.Type>
Enum of all possible types allowed as the parameters of methods in a
parametrized primitive.
BOOLEAN
public static final ParamInfo.Type BOOLEAN
INT
public static final ParamInfo.Type INT
DOUBLE
public static final ParamInfo.Type DOUBLE
STRING
public static final ParamInfo.Type STRING
ENUM
public static final ParamInfo.Type ENUM
values
public static ParamInfo.Type[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (ParamInfo.Type c : ParamInfo.Type.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ParamInfo.Type valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
findType
public static ParamInfo.Type findType(String javaType)
- Find the
ParamInfo.Type
for passed java type.
- Parameters:
javaType
- FQN of a java type for which we want to find param
type.
- Returns:
- found type
- Throws:
IllegalArgumentException
- If passed typeName doesn't match any
type.
Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.