org.codehaus.jparsec.examples.java.ast.expression
Enum Operator

java.lang.Object
  extended by java.lang.Enum<Operator>
      extended by org.codehaus.jparsec.examples.java.ast.expression.Operator
All Implemented Interfaces:
Serializable, Comparable<Operator>

public enum Operator
extends Enum<Operator>

Defines operators used in Java.

Author:
Ben Yu

Enum Constant Summary
AAND
           
ADIV
           
ALSHIFT
           
AMINUS
           
AMOD
           
AMUL
           
AND
           
AOR
           
APLUS
           
ARSHIFT
           
ASSIGNMENT
           
AXOR
           
BITWISE_AND
           
BITWISE_NOT
           
BITWISE_OR
           
BITWISE_XOR
           
DEC
           
DIV
           
EQ
           
GE
           
GT
           
INC
           
LE
           
LSHIFT
           
LT
           
MINUS
           
MOD
           
MUL
           
NE
           
NEGATIVE
           
NOT
           
OR
           
PLUS
           
POSITIVE
           
POST_DEC
           
POST_INC
           
RSHIFT
           
UNSIGNED_ARSHIFT
           
UNSIGNED_RSHIFT
           
 
Method Summary
 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

POST_INC

public static final Operator POST_INC

POST_DEC

public static final Operator POST_DEC

INC

public static final Operator INC

DEC

public static final Operator DEC

POSITIVE

public static final Operator POSITIVE

NEGATIVE

public static final Operator NEGATIVE

NOT

public static final Operator NOT

BITWISE_NOT

public static final Operator BITWISE_NOT

MUL

public static final Operator MUL

DIV

public static final Operator DIV

MOD

public static final Operator MOD

PLUS

public static final Operator PLUS

MINUS

public static final Operator MINUS

LSHIFT

public static final Operator LSHIFT

RSHIFT

public static final Operator RSHIFT

UNSIGNED_RSHIFT

public static final Operator UNSIGNED_RSHIFT

LT

public static final Operator LT

GT

public static final Operator GT

LE

public static final Operator LE

GE

public static final Operator GE

EQ

public static final Operator EQ

NE

public static final Operator NE

BITWISE_AND

public static final Operator BITWISE_AND

BITWISE_XOR

public static final Operator BITWISE_XOR

BITWISE_OR

public static final Operator BITWISE_OR

AND

public static final Operator AND

OR

public static final Operator OR

ASSIGNMENT

public static final Operator ASSIGNMENT

APLUS

public static final Operator APLUS

AMINUS

public static final Operator AMINUS

AMUL

public static final Operator AMUL

ADIV

public static final Operator ADIV

AMOD

public static final Operator AMOD

AAND

public static final Operator AAND

AOR

public static final Operator AOR

AXOR

public static final Operator AXOR

ALSHIFT

public static final Operator ALSHIFT

ARSHIFT

public static final Operator ARSHIFT

UNSIGNED_ARSHIFT

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

toString

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


Copyright © 2014. All rights reserved.