org.basex.query.expr
Enum Expr.Use

java.lang.Object
  extended by java.lang.Enum<Expr.Use>
      extended by org.basex.query.expr.Expr.Use
All Implemented Interfaces:
Serializable, Comparable<Expr.Use>
Enclosing class:
Expr

public static enum Expr.Use
extends Enum<Expr.Use>

Usage flags.


Enum Constant Summary
CTX
          Context.
ELM
          Root Flag.
FRG
          Fragment.
POS
          Position.
UPD
          Updates.
VAR
          Variable.
 
Method Summary
static Expr.Use valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Expr.Use[] values()
          Returns an array containing the constants of this enum type, in the order they are 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

CTX

public static final Expr.Use CTX
Context.


ELM

public static final Expr.Use ELM
Root Flag.


FRG

public static final Expr.Use FRG
Fragment.


POS

public static final Expr.Use POS
Position.


UPD

public static final Expr.Use UPD
Updates.


VAR

public static final Expr.Use VAR
Variable.

Method Detail

values

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

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

valueOf

public static Expr.Use 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