|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.endeca.navigation.analytics.ExprConstant
public class ExprConstant
Instances of ExprConstant represent constants. Constants are used in
expressions, such as the "2" in "x + 2". Both string and numeric constants
are treated identically.
| Constructor Summary | |
|---|---|
ExprConstant(String value)
Creates a new ExprConstant expression node representing
the specified constant value. |
|
| Method Summary | |
|---|---|
String |
getValue()
Gets the constant value for this ExprConstant. |
void |
setValue(String value)
Sets the value for the constant represented by this ExprConstant. |
String |
toString()
Returns the string form of this ExprConstant. |
String |
toWire()
Returns the wire form of this ExprConstant. |
void |
validateSyntax()
Validates the syntax of this ExprConstant. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ExprConstant(String value)
ExprConstant expression node representing
the specified constant value.
value - the constant to be used in an expression.| Method Detail |
|---|
public String getValue()
ExprConstant.
public void setValue(String value)
ExprConstant.
value - the constant to be used in an expression.public String toString()
ExprConstant. These are of the format:
'john' or '3' or '56.903'.
toString in interface QueryNodetoString in class ObjectExprConstant in the specified format.public String toWire()
ExprConstant. This method is not
intended for public use because the wire format is subject to change.
toWire in interface QueryNodeExprConstant.
public void validateSyntax()
throws SyntaxException
ExprConstant.
An ExprConstant is valid if the String representing
the value is non-null and non-empty. Note that the String should represent
a numeric value, but this is not enforced during validation.
validateSyntax in interface QueryNodeSyntaxException - if the syntax requirements are not satisfied.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||