freemarker.template.expression
Enum ExpressionBuilder.Precedence

java.lang.Object
  extended by java.lang.Enum<ExpressionBuilder.Precedence>
      extended by freemarker.template.expression.ExpressionBuilder.Precedence
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ExpressionBuilder.Precedence>
Enclosing class:
ExpressionBuilder

public static enum ExpressionBuilder.Precedence
extends java.lang.Enum<ExpressionBuilder.Precedence>

Order of operator precedence. Earlier in the order means more tightly bound.


Enum Constant Summary
ADDITION
           
AND
           
COMPARISON
           
EQUALITY
           
LAMBDA
           
MULTIPLICATION
           
NEGATION
           
OR
           
TERNARY
           
VARIABLE
           
 
Method Summary
static ExpressionBuilder.Precedence valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ExpressionBuilder.Precedence[] 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

VARIABLE

public static final ExpressionBuilder.Precedence VARIABLE

NEGATION

public static final ExpressionBuilder.Precedence NEGATION

MULTIPLICATION

public static final ExpressionBuilder.Precedence MULTIPLICATION

ADDITION

public static final ExpressionBuilder.Precedence ADDITION

COMPARISON

public static final ExpressionBuilder.Precedence COMPARISON

EQUALITY

public static final ExpressionBuilder.Precedence EQUALITY

AND

public static final ExpressionBuilder.Precedence AND

OR

public static final ExpressionBuilder.Precedence OR

LAMBDA

public static final ExpressionBuilder.Precedence LAMBDA

TERNARY

public static final ExpressionBuilder.Precedence TERNARY
Method Detail

values

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

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

valueOf

public static ExpressionBuilder.Precedence 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