Class SQLBinaryOperation
java.lang.Object
ortus.boxlang.compiler.ast.BoxNode
ortus.boxlang.compiler.ast.sql.SQLNode
ortus.boxlang.compiler.ast.sql.select.expression.SQLExpression
ortus.boxlang.compiler.ast.sql.select.expression.operation.SQLBinaryOperation
- All Implemented Interfaces:
BoxVisitable
Abstract Node class representing SQL binary operation
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionSQLBinaryOperation(SQLExpression left, SQLExpression right, SQLBinaryOperator operator, Position position, String sourceText) ConstructorSQLBinaryOperation(SQLExpression left, SQLExpression right, SQLBinaryOperator operator, SQLExpression escape, Position position, String sourceText) Constructor -
Method Summary
Modifier and TypeMethodDescriptionAccept method for replacing visitor support.voidAccept method for visitor support.evaluate(QoQSelectExecution QoQExec, int[] intersection) Evaluate the expressionevaluateAggregate(QoQSelectExecution QoQExec, List<int[]> intersections) Evaluate the expression aginst a partition of dataGet the escapegetLeft()Get the leftGet the operatorgetRight()Get the rightgetType(QoQSelectExecution QoQExec) What type does this expression evaluate tobooleanisBoolean(QoQSelectExecution QoQExec) Runtime check if the expression evaluates to a boolean value and works for columns as wellbooleanisNumeric(QoQSelectExecution QoQExec) Runtime check if the expression evaluates to a numeric value and works for columns as wellvoidsetEscape(SQLExpression escape) Set the escapevoidsetLeft(SQLExpression left) Set the leftvoidsetOperator(SQLBinaryOperator operator) Set the operatorvoidsetRight(SQLExpression right) Set the righttoMap()Methods inherited from class ortus.boxlang.compiler.ast.sql.select.expression.SQLExpression
isLiteralMethods inherited from class ortus.boxlang.compiler.ast.BoxNode
addComment, associateComments, endsOnSameLineAs, enumToMap, getAncestors, getChildren, getComments, getDescendants, getDescendantsOfType, getDescendantsOfType, getDescription, getDocComment, getFirstAncestorOfType, getFirstAncestorOfType, getFirstNodeOfType, getFirstNodeOfType, getFirstNodeOfTypes, getParent, getPosition, getSourceText, isAfter, isBefore, isInside, replaceChildren, replaceChildren, setComments, setParent, setPosition, setSourceText, startsOnEndLineOf, toJSON, toString
-
Constructor Details
-
SQLBinaryOperation
public SQLBinaryOperation(SQLExpression left, SQLExpression right, SQLBinaryOperator operator, Position position, String sourceText) Constructor- Parameters:
position- position of the statement in the source codesourceText- source code of the statement
-
SQLBinaryOperation
public SQLBinaryOperation(SQLExpression left, SQLExpression right, SQLBinaryOperator operator, SQLExpression escape, Position position, String sourceText) Constructor- Parameters:
position- position of the statement in the source codesourceText- source code of the statement
-
-
Method Details
-
getLeft
Get the left -
setLeft
Set the left -
getRight
Get the right -
setRight
Set the right -
getOperator
Get the operator -
setOperator
Set the operator -
getEscape
Get the escape -
setEscape
Set the escape -
isBoolean
Runtime check if the expression evaluates to a boolean value and works for columns as well- Overrides:
isBooleanin classSQLExpression- Parameters:
QoQExec- Query execution state- Returns:
- true if the expression evaluates to a boolean value
-
getType
What type does this expression evaluate to- Overrides:
getTypein classSQLExpression
-
isNumeric
Runtime check if the expression evaluates to a numeric value and works for columns as well- Overrides:
isNumericin classSQLExpression- Parameters:
QoQExec- Query execution state- Returns:
- true if the expression evaluates to a numeric value
-
evaluate
Evaluate the expression- Specified by:
evaluatein classSQLExpression
-
evaluateAggregate
Evaluate the expression aginst a partition of data- Specified by:
evaluateAggregatein classSQLExpression
-
accept
Description copied from interface:BoxVisitableAccept method for visitor support.- Parameters:
v- the visitor implementation
-
accept
Description copied from interface:BoxVisitableAccept method for replacing visitor support. Each accept returns the node, or a replacement node.- Parameters:
v- the visitor implementation
-
toMap
-