net.sourceforge.nrl.parser.ast.constraints
Enum IArithmeticExpression.Operator

java.lang.Object
  extended by java.lang.Enum<IArithmeticExpression.Operator>
      extended by net.sourceforge.nrl.parser.ast.constraints.IArithmeticExpression.Operator
All Implemented Interfaces:
Serializable, Comparable<IArithmeticExpression.Operator>
Enclosing interface:
IArithmeticExpression

public static enum IArithmeticExpression.Operator
extends Enum<IArithmeticExpression.Operator>

The available arithmetic operators.


Enum Constant Summary
DIV
           
MINUS
           
MOD
           
PLUS
           
TIMES
           
 
Method Summary
static IArithmeticExpression.Operator valueOf(String name)
          Returns the enum constant of this type with the specified name.
static IArithmeticExpression.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

PLUS

public static final IArithmeticExpression.Operator PLUS

MINUS

public static final IArithmeticExpression.Operator MINUS

TIMES

public static final IArithmeticExpression.Operator TIMES

DIV

public static final IArithmeticExpression.Operator DIV

MOD

public static final IArithmeticExpression.Operator MOD
Method Detail

values

public static final IArithmeticExpression.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(IArithmeticExpression.Operator c : IArithmeticExpression.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 IArithmeticExpression.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


Copyright © 2006-2010 Christian Nentwich and others