kodkod.ast
Enum BinaryExpression.Operator

java.lang.Object
  extended by java.lang.Enum<BinaryExpression.Operator>
      extended by kodkod.ast.BinaryExpression.Operator
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<BinaryExpression.Operator>
Enclosing class:
BinaryExpression

public static enum BinaryExpression.Operator
extends java.lang.Enum<BinaryExpression.Operator>

A binary expression operator: union, difference, intersection, override, join, and product.


Enum Constant Summary
DIFFERENCE
          Relational difference (-) operator.
INTERSECTION
          Relational intersection (&) operator.
JOIN
          Relational join (.) operator.
OVERRIDE
          Relational override (++) operator.
PRODUCT
          Relational product (->) operator.
UNION
          Relational union (+) operator.
 
Method Summary
static BinaryExpression.Operator valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static BinaryExpression.Operator[] values()
          Returns an array containing the constants of this enum type, in the order they're 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

DIFFERENCE

public static final BinaryExpression.Operator DIFFERENCE
Relational difference (-) operator.


UNION

public static final BinaryExpression.Operator UNION
Relational union (+) operator.


INTERSECTION

public static final BinaryExpression.Operator INTERSECTION
Relational intersection (&) operator.


OVERRIDE

public static final BinaryExpression.Operator OVERRIDE
Relational override (++) operator.


JOIN

public static final BinaryExpression.Operator JOIN
Relational join (.) operator.


PRODUCT

public static final BinaryExpression.Operator PRODUCT
Relational product (->) operator.

Method Detail

values

public static final BinaryExpression.Operator[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(BinaryExpression.Operator c : BinaryExpression.Operator.values())
        System.out.println(c);

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

valueOf

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