|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmondrian.olap.QueryPart
mondrian.olap.ExpBase
mondrian.olap.Literal
public class Literal
Represents a constant value, such as a string or number, in a parse tree.
Symbols, such as the ASC keyword in
Order([Store].Members, [Measures].[Unit Sales], ASC), are
also represented as Literals.
| Field Summary | |
|---|---|
int |
category
|
static Literal |
doubleNegativeOne
|
static Literal |
doubleOne
|
static Literal |
doubleZero
|
static Literal |
emptyString
|
static Literal |
negativeOne
|
static Literal |
nullValue
|
static Literal |
one
|
static Literal |
zero
|
| Method Summary | |
|---|---|
Calc |
accept(ExpCompiler compiler)
Converts this expression into an a tree of expressions which can be efficiently evaluated. |
java.lang.Object |
accept(MdxVisitor visitor)
Accepts a visitor to this Exp. |
Exp |
accept(Validator validator)
Validates this expression. |
Literal |
clone()
|
static Literal |
create(java.lang.Double d)
Creates a numeric literal. |
static Literal |
create(java.lang.Integer i)
Creates an integer literal. |
static Literal |
createString(java.lang.String s)
Creates a string literal. |
static Literal |
createSymbol(java.lang.String s)
Creates a symbol. |
int |
getCategory()
Returns the Category of the expression. |
int |
getIntValue()
|
Type |
getType()
Returns the type of this expression. |
java.lang.Object |
getValue()
|
void |
unparse(java.io.PrintWriter pw)
Writes a string representation of this parse tree node to the given writer. |
| Methods inherited from class mondrian.olap.ExpBase |
|---|
cloneArray, getTypes, unparseList |
| Methods inherited from class mondrian.olap.QueryPart |
|---|
getChildren |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final int category
public static final Literal nullValue
public static final Literal emptyString
public static final Literal zero
public static final Literal one
public static final Literal negativeOne
public static final Literal doubleZero
public static final Literal doubleOne
public static final Literal doubleNegativeOne
| Method Detail |
|---|
public static Literal createString(java.lang.String s)
createSymbol(java.lang.String)public static Literal createSymbol(java.lang.String s)
createString(java.lang.String)public static Literal create(java.lang.Double d)
public static Literal create(java.lang.Integer i)
public Literal clone()
clone in interface Expclone in class ExpBasepublic void unparse(java.io.PrintWriter pw)
QueryPart
unparse in interface Expunparse in class QueryPartpw - writerpublic int getCategory()
ExpCategory of the expression.
public Type getType()
Exp
public Exp accept(Validator validator)
Exp
validator - Validator contains validation context
public Calc accept(ExpCompiler compiler)
Exp
accept in interface Expaccept in class ExpBasepublic java.lang.Object accept(MdxVisitor visitor)
ExpMdxVisitor.visit(mondrian.olap.Query) method appropriate to the type of expression.
visitor - Visitorpublic java.lang.Object getValue()
public int getIntValue()
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||