Modifier and Type | Field and Description |
---|---|
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 |
Modifier and Type | Method and Description |
---|---|
Calc |
accept(ExpCompiler compiler)
Converts this expression into an a tree of expressions which can be
efficiently evaluated.
|
Object |
accept(MdxVisitor visitor)
Accepts a visitor to this Exp.
|
Exp |
accept(Validator validator)
Validates this expression.
|
Literal |
clone() |
static Literal |
create(BigDecimal d)
Creates a numeric literal.
|
static Literal |
create(Double d)
Deprecated.
|
static Literal |
create(Integer i)
Deprecated.
|
static Literal |
createString(String s)
Creates a string literal.
|
static Literal |
createSymbol(String s)
Creates a symbol.
|
int |
getCategory()
Returns the
Category of the expression. |
int |
getIntValue() |
Type |
getType()
Returns the type of this expression.
|
Object |
getValue() |
void |
unparse(PrintWriter pw)
Writes a string representation of this parse tree
node to the given writer.
|
cloneArray, getTypes, unparseList
explain, getChildren
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
public static Literal createString(String s)
createSymbol(java.lang.String)
public static Literal createSymbol(String s)
createString(java.lang.String)
public static Literal create(Double d)
create(java.math.BigDecimal)
public static Literal create(Integer i)
create(java.math.BigDecimal)
public static Literal create(BigDecimal d)
Using a BigDecimal
allows us to store the precise value that
the user typed. We will have to fit the value into a native
double
or int
later on, but parse time is not the time to
be throwing away information.
public Literal clone()
public void unparse(PrintWriter pw)
QueryPart
public int getCategory()
Exp
Category
of the expression.public Type getType()
Exp
public Exp accept(Validator validator)
Exp
validator
- Validator contains validation contextpublic Calc accept(ExpCompiler compiler)
Exp
public Object accept(MdxVisitor visitor)
Exp
MdxVisitor.visit(mondrian.olap.Query)
method appropriate to the type of expression.visitor
- Visitorpublic Object getValue()
public int getIntValue()
Copyright © 2019 Hitachi Vantara. All rights reserved.