public class LiteralExpression extends AbstractExpression
AbstractExpression.Type| Modifier and Type | Field and Description |
|---|---|
static LiteralExpression |
EMPTY |
static LiteralExpression |
ONE |
static LiteralExpression |
TRUE |
subs, sup| Constructor and Description |
|---|
LiteralExpression(Object value) |
LiteralExpression(Object value,
ValueType valueType) |
| Modifier and Type | Method and Description |
|---|---|
AbstractExpression |
accept(ExpressionVisitor visitor) |
int |
equivHash() |
static void |
escapeText(String s,
StringBuilder buf)
Append the string to the buffer, with characters escaped appropriately for XML (and XQuery) text.
|
int |
getPrecedence() |
Object |
getValue() |
ValueType |
getValueType() |
boolean |
propEquals(AbstractExpression other) |
static void |
quoteString(String s,
StringBuilder buf)
Append the string to the buffer, escaped as in
escapeText(String, StringBuilder), surrounded
by double quotes ("). |
void |
toString(StringBuilder buf)
renders the literal as parseable XQuery.
|
acceptSubs, appendSub, deepEquals, equivalent, geq, getBindingContext, getHead, getLastContextStep, getRoot, getSubs, getSuper, getTail, getType, isAbsolute, isDocumentOrdered, isRestrictive, matchDown, propGreaterEqual, replaceRoot, setSubs, toStringpublic static final LiteralExpression EMPTY
public static final LiteralExpression ONE
public static final LiteralExpression TRUE
public LiteralExpression(Object value)
public int getPrecedence()
getPrecedence in class AbstractExpressionpublic ValueType getValueType()
public Object getValue()
public void toString(StringBuilder buf)
toString in class AbstractExpressionbuf - the buffer to append topublic static void escapeText(String s, StringBuilder buf)
s - the appended stringbuf - the buffer appended topublic static void quoteString(String s, StringBuilder buf)
escapeText(String, StringBuilder), surrounded
by double quotes (").s - the appended stringbuf - the buffer appended topublic AbstractExpression accept(ExpressionVisitor visitor)
public boolean propEquals(AbstractExpression other)
propEquals in class AbstractExpressionother - another expressionpublic int equivHash()
AbstractExpression.equivalent(AbstractExpression)Copyright © 2013. All Rights Reserved.