org.shiwa.fgi.iwir.condition
Enum ConditionToken

java.lang.Object
  extended by java.lang.Enum<ConditionToken>
      extended by org.shiwa.fgi.iwir.condition.ConditionToken
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ConditionToken>

public enum ConditionToken
extends java.lang.Enum<ConditionToken>

The Enum Token provides the token types for the condition ASt.


Enum Constant Summary
AND
           
BOOL
           
DOUBLE
           
EQ
           
GT
           
GTE
           
INT
           
LP
           
LT
           
LTE
           
NEQ
           
NOT
           
OR
           
PORT
           
RP
           
STRING
           
 
Method Summary
static boolean isPort(java.lang.String s)
          Checks the given string is a valid port identifier.
static boolean isValidLoopCounterPortName(java.lang.String name)
          Same as isValidPortName(String), but also includes loopCounter ports e.g lc/{from,to,step}.
static boolean isValidPortName(java.lang.String name)
          Checks if is valid port name.
static boolean isValidTaskName(java.lang.String name)
          Checks if is valid task name.
static ConditionToken valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ConditionToken[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

EQ

public static final ConditionToken EQ

NEQ

public static final ConditionToken NEQ

GT

public static final ConditionToken GT

GTE

public static final ConditionToken GTE

LT

public static final ConditionToken LT

LTE

public static final ConditionToken LTE

AND

public static final ConditionToken AND

OR

public static final ConditionToken OR

NOT

public static final ConditionToken NOT

LP

public static final ConditionToken LP

RP

public static final ConditionToken RP

INT

public static final ConditionToken INT

DOUBLE

public static final ConditionToken DOUBLE

STRING

public static final ConditionToken STRING

BOOL

public static final ConditionToken BOOL

PORT

public static final ConditionToken PORT
Method Detail

values

public static ConditionToken[] 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 (ConditionToken c : ConditionToken.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ConditionToken valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

isPort

public static boolean isPort(java.lang.String s)
Checks the given string is a valid port identifier.

Parameters:
s - the s
Returns:
true, if is port
See Also:
isValidPortName(String)

isValidPortName

public static boolean isValidPortName(java.lang.String name)
Checks if is valid port name. A valid port name may not be matched by the pattern for integer, double, strings and booleans. Whitespace and parentheses are not allowed. Slash is only allowed for the loopCounter e.g. lc/{from,to,step} isValidLoopCounterPortName(String).

Parameters:
name - the s
Returns:
true, if is valid port name

isValidLoopCounterPortName

public static boolean isValidLoopCounterPortName(java.lang.String name)
Same as isValidPortName(String), but also includes loopCounter ports e.g lc/{from,to,step}.

Parameters:
name - the s
Returns:
true, if is valid port name
See Also:
isValidPortName(String)

isValidTaskName

public static boolean isValidTaskName(java.lang.String name)
Checks if is valid task name. A valid task name may not be matched by the pattern for integer, double, strings and booleans. Further, either whitespace, parentheses nor slashes are allowed.

Parameters:
name - the name
Returns:
true, if is valid task name