cz.cuni.amis.pogamut.sposh.executor
Enum ParamInfo.Type

Package class diagram package ParamInfo.Type
java.lang.Object
  extended by java.lang.Enum<ParamInfo.Type>
      extended by 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.


Enum Constant Summary
BOOLEAN
           
DOUBLE
           
ENUM
           
INT
           
STRING
           
 
Method Summary
static ParamInfo.Type findType(String javaType)
          Find the ParamInfo.Type for passed java type.
static ParamInfo.Type valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ParamInfo.Type[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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.