com.lyncode.jtwig.tree.expressions
Enum Operator

java.lang.Object
  extended by java.lang.Enum<Operator>
      extended by com.lyncode.jtwig.tree.expressions.Operator
All Implemented Interfaces:
Serializable, Comparable<Operator>

public enum Operator
extends Enum<Operator>


Enum Constant Summary
ADD
           
AND
           
COMPOSITION
           
DIFF
           
DIV
           
ENDS_WITH
           
EQUAL
           
GT
           
GTE
           
IN
           
INT_DIV
           
INT_TIMES
           
IS
           
IS_NOT
           
LT
           
LTE
           
MATCHES
           
MOD
           
NOT
           
OR
           
SELECTION
           
STARTS_WITH
           
SUB
           
TIMES
           
 
Method Summary
static Operator fromString(String operatorRepresentation)
           
 String toString()
           
static Operator valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Operator[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SELECTION

public static final Operator SELECTION

COMPOSITION

public static final Operator COMPOSITION

ADD

public static final Operator ADD

SUB

public static final Operator SUB

INT_TIMES

public static final Operator INT_TIMES

TIMES

public static final Operator TIMES

INT_DIV

public static final Operator INT_DIV

DIV

public static final Operator DIV

MOD

public static final Operator MOD

GT

public static final Operator GT

LT

public static final Operator LT

GTE

public static final Operator GTE

LTE

public static final Operator LTE

AND

public static final Operator AND

OR

public static final Operator OR

EQUAL

public static final Operator EQUAL

DIFF

public static final Operator DIFF

NOT

public static final Operator NOT

STARTS_WITH

public static final Operator STARTS_WITH

ENDS_WITH

public static final Operator ENDS_WITH

MATCHES

public static final Operator MATCHES

IN

public static final Operator IN

IS

public static final Operator IS

IS_NOT

public static final Operator IS_NOT
Method Detail

values

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

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

valueOf

public static Operator 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

fromString

public static Operator fromString(String operatorRepresentation)

toString

public String toString()
Overrides:
toString in class Enum<Operator>


Copyright © 2014. All Rights Reserved.