Package org.basex.query
Enum CompileContext.Simplify
- java.lang.Object
-
- java.lang.Enum<CompileContext.Simplify>
-
- org.basex.query.CompileContext.Simplify
-
- All Implemented Interfaces:
Serializable
,Comparable<CompileContext.Simplify>
- Enclosing class:
- CompileContext
public static enum CompileContext.Simplify extends Enum<CompileContext.Simplify>
Compile-time simplifications.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
oneOf(CompileContext.Simplify... values)
Checks if this is one of the specified types.static CompileContext.Simplify
valueOf(String name)
Returns the enum constant of this type with the specified name.static CompileContext.Simplify[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EBV
public static final CompileContext.Simplify EBV
-
DATA
public static final CompileContext.Simplify DATA
-
STRING
public static final CompileContext.Simplify STRING
String arguments. Requested byCast
,CmpG
,StandardFunc
and others. Evaluated byCast
,TypeCheck
,CNode
,FnData
,FnString
,FnReplicate
.
-
NUMBER
public static final CompileContext.Simplify NUMBER
Numeric arguments. Requested byArith
,CmpIR
,Range
,StandardFunc
and others. Evaluated byCast
,TypeCheck
,CNode
,FnData
,FnNumber
,FnReplicate
.
-
PREDICATE
public static final CompileContext.Simplify PREDICATE
-
DISTINCT
public static final CompileContext.Simplify DISTINCT
Distinct values. Requested byCmpG
andFnDistinctValues
. Evaluated byFilter
,List
,SimpleMap
and others.
-
COUNT
public static final CompileContext.Simplify COUNT
-
-
Method Detail
-
values
public static CompileContext.Simplify[] 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 (CompileContext.Simplify c : CompileContext.Simplify.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CompileContext.Simplify 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 nameNullPointerException
- if the argument is null
-
oneOf
public boolean oneOf(CompileContext.Simplify... values)
Checks if this is one of the specified types.- Parameters:
values
- values- Returns:
- result of check
-
-