public class LiteralNode extends ParseTreeNode
Constructor and Description |
---|
LiteralNode(Token token) |
Modifier and Type | Method and Description |
---|---|
void |
addChild(ParseTreeNode tn)
Adds a new node as a child of this node.
|
void |
appendDebugString(java.lang.StringBuilder s)
appends a String representation of this node including it's children to the given StringBuilder
|
java.lang.String |
getCookedValue() |
de.ipcon.db.oql.ExpressionResultType |
getExpressionResultType() |
int |
getOperatorPrecedence() |
java.lang.Object |
getValueAsObject() |
void |
renderSQL(java.lang.StringBuilder s,
java.lang.Object[] oqlArgs,
java.util.List sqlArgs)
Renders this node into a StringBuilder as SQL statement, copying
arguments from oqlArgs to sqlArgs if needed.
|
boolean |
wouldRenderNull(java.lang.Object[] oqlArgs) |
appendComments, debugString, getChild, getChildCount, getParent, getResultClass, getToken, getType, hasType, isLeaf, isRoot, removeChild, setOwnType, setParent, setToken, setType, setType, setType, setTypeFromChildren, setTypeFromParent, toString
public LiteralNode(Token token)
public void addChild(ParseTreeNode tn)
ParseTreeNode
addChild
in class ParseTreeNode
tn
- The new childpublic de.ipcon.db.oql.ExpressionResultType getExpressionResultType()
getExpressionResultType
in class ParseTreeNode
public void appendDebugString(java.lang.StringBuilder s)
ParseTreeNode
appendDebugString
in class ParseTreeNode
public java.lang.String getCookedValue()
public java.lang.Object getValueAsObject() throws java.text.ParseException
java.text.ParseException
public boolean wouldRenderNull(java.lang.Object[] oqlArgs)
public void renderSQL(java.lang.StringBuilder s, java.lang.Object[] oqlArgs, java.util.List sqlArgs)
ParseTreeNode
renderSQL
in class ParseTreeNode
public int getOperatorPrecedence()
getOperatorPrecedence
in class ParseTreeNode
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.