Package net.sf.jsqlparser.expression
Class BinaryExpression
- java.lang.Object
-
- net.sf.jsqlparser.parser.ASTNodeAccessImpl
-
- net.sf.jsqlparser.expression.BinaryExpression
-
- All Implemented Interfaces:
java.io.Serializable
,Expression
,Model
,ASTNodeAccess
- Direct Known Subclasses:
Addition
,AndExpression
,BitwiseAnd
,BitwiseLeftShift
,BitwiseOr
,BitwiseRightShift
,BitwiseXor
,Concat
,Division
,IntegerDivision
,IsDistinctExpression
,JsonOperator
,LikeExpression
,Modulo
,Multiplication
,OldOracleJoinBinaryExpression
,OrExpression
,RegExpMatchOperator
,SimilarToExpression
,Subtraction
,XorExpression
public abstract class BinaryExpression extends ASTNodeAccessImpl implements Expression
A basic class for binary expressions, that is expressions having a left member and a right member which are in turn expressions.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private Expression
leftExpression
private Expression
rightExpression
-
Constructor Summary
Constructors Constructor Description BinaryExpression()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Expression
getLeftExpression()
<E extends Expression>
EgetLeftExpression(java.lang.Class<E> type)
Expression
getRightExpression()
<E extends Expression>
EgetRightExpression(java.lang.Class<E> type)
abstract java.lang.String
getStringExpression()
void
setLeftExpression(Expression expression)
void
setRightExpression(Expression expression)
java.lang.String
toString()
BinaryExpression
withLeftExpression(Expression expression)
BinaryExpression
withRightExpression(Expression expression)
-
Methods inherited from class net.sf.jsqlparser.parser.ASTNodeAccessImpl
appendTo, getASTNode, setASTNode
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.sf.jsqlparser.parser.ASTNodeAccess
getASTNode, setASTNode
-
Methods inherited from interface net.sf.jsqlparser.expression.Expression
accept
-
-
-
-
Field Detail
-
leftExpression
private Expression leftExpression
-
rightExpression
private Expression rightExpression
-
-
Method Detail
-
getLeftExpression
public Expression getLeftExpression()
-
getRightExpression
public Expression getRightExpression()
-
withLeftExpression
public BinaryExpression withLeftExpression(Expression expression)
-
setLeftExpression
public void setLeftExpression(Expression expression)
-
withRightExpression
public BinaryExpression withRightExpression(Expression expression)
-
setRightExpression
public void setRightExpression(Expression expression)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getStringExpression
public abstract java.lang.String getStringExpression()
-
getLeftExpression
public <E extends Expression> E getLeftExpression(java.lang.Class<E> type)
-
getRightExpression
public <E extends Expression> E getRightExpression(java.lang.Class<E> type)
-
-