public class BinaryExpressionNode extends ParseTreeNode
Constructor and Description |
---|
BinaryExpressionNode(Token token) |
Modifier and Type | Method and Description |
---|---|
void |
addOperand(ParseTreeNode node) |
void |
appendDebugString(java.lang.StringBuilder s)
appends a String representation of this node including it's children to the given StringBuilder
|
de.ipcon.db.oql.ExpressionResultType |
getExpressionResultType() |
ParseTreeNode |
getLeftOperand() |
java.lang.String |
getOperatorName() |
int |
getOperatorPrecedence() |
java.lang.Class<?> |
getResultClass()
FIXME 2020-01 ps: only explicitly implemented for Arrays, check default fallback functionality for arbitrary binary expressions.
|
ParseTreeNode |
getRightOperand() |
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.
|
void |
setOwnType()
For Array access, sets the type of this node to the array child, so the parent comparison node can correctly
set the right sides type in the second pass.
|
void |
setTypeFromChildren() |
addChild, appendComments, debugString, getChild, getChildCount, getParent, getToken, getType, hasType, isLeaf, isRoot, removeChild, setParent, setToken, setType, setType, setType, setTypeFromParent, toString
public BinaryExpressionNode(Token token)
public java.lang.String getOperatorName()
public void addOperand(ParseTreeNode node)
public ParseTreeNode getLeftOperand()
public ParseTreeNode getRightOperand()
public de.ipcon.db.oql.ExpressionResultType getExpressionResultType()
getExpressionResultType
in class ParseTreeNode
public java.lang.Class<?> getResultClass()
getResultClass
in class ParseTreeNode
public void appendDebugString(java.lang.StringBuilder s)
ParseTreeNode
appendDebugString
in class ParseTreeNode
public void renderSQL(java.lang.StringBuilder s, java.lang.Object[] oqlArgs, java.util.List sqlArgs)
ParseTreeNode
renderSQL
in class ParseTreeNode
public void setOwnType()
setOwnType
in class ParseTreeNode
public void setTypeFromChildren()
setTypeFromChildren
in class ParseTreeNode
public int getOperatorPrecedence()
getOperatorPrecedence
in class ParseTreeNode
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.