|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Syntax>
org.olap4j.mdx.Syntax
public enum Syntax
Enumerated values describing the syntax of an expression.
Enum Constant Summary | |
---|---|
AmpersandQuotedProperty
Defines syntax for expression invoked object.[&PROPERTY]
(a variant of Property ). |
|
Braces
Defines syntax for expression invoked as {ARG, ...} ; that
is, the set construction operator. |
|
Case
Defines syntax for expression invoked as CASE ... |
|
Cast
Defines syntax for a CAST expression CAST(expression AS type) . |
|
Function
Defines syntax for expression invoked FUNCTION() or
FUNCTION(args) . |
|
Infix
Defines syntax for expression invoked as arg OPERATOR arg
(like '+' or 'AND'). |
|
Internal
Defines syntax for expression generated by the system which cannot be specified syntactically. |
|
Method
Defines syntax for expression invoked invoked as object.METHOD() or
object.METHOD(args) . |
|
Parentheses
Defines syntax for expression invoked as (ARG) or
(ARG, ...) ; that is, parentheses for grouping
expressions, and the tuple construction operator. |
|
Postfix
Defines syntax for expression invoked as arg OPERATOR
(like IS EMPTY ). |
|
Prefix
Defines syntax for expression invoked as OPERATOR arg
(like unary '-'). |
|
Property
Defines syntax for expression invoked as object.PROPERTY . |
|
QuotedProperty
Defines syntax for expression invoked object.&PROPERTY
(a variant of Property ). |
Method Summary | |
---|---|
void |
unparse(java.lang.String operatorName,
java.util.List<ParseTreeNode> argList,
ParseTreeWriter writer)
Converts a call to a function of this syntax into source code. |
static Syntax |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Syntax[] |
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 |
---|
public static final Syntax Function
FUNCTION()
or
FUNCTION(args)
.
public static final Syntax Property
object.PROPERTY
.
public static final Syntax Method
object.METHOD()
or
object.METHOD(args)
.
public static final Syntax Infix
arg OPERATOR arg
(like '+' or 'AND').
public static final Syntax Prefix
OPERATOR arg
(like unary '-').
public static final Syntax Postfix
arg OPERATOR
(like IS EMPTY
).
public static final Syntax Braces
{ARG, ...}
; that
is, the set construction operator.
public static final Syntax Parentheses
(ARG)
or
(ARG, ...)
; that is, parentheses for grouping
expressions, and the tuple construction operator.
public static final Syntax Case
CASE ... END
.
public static final Syntax Internal
public static final Syntax Cast
CAST(expression AS type)
.
public static final Syntax QuotedProperty
object.&PROPERTY
(a variant of Property
).
public static final Syntax AmpersandQuotedProperty
object.[&PROPERTY]
(a variant of Property
).
Method Detail |
---|
public static Syntax[] values()
for (Syntax c : Syntax.values()) System.out.println(c);
public static Syntax valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic void unparse(java.lang.String operatorName, java.util.List<ParseTreeNode> argList, ParseTreeWriter writer)
operatorName
- Operator nameargList
- List of argumentswriter
- Writer
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |