public class ComparisonNode extends Object implements Expression<Boolean>
| Constructor and Description |
|---|
ComparisonNode(ComparisonOp operator,
Expression left,
Expression right) |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
eval(Function context)
评估
|
Expression |
getLeft()
获取左侧
|
ComparisonOp |
getOperator()
获取操作符
|
Expression |
getRight()
获取右侧
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitevalpublic ComparisonNode(ComparisonOp operator, Expression left, Expression right)
public ComparisonOp getOperator()
public Expression getLeft()
public Expression getRight()
public Boolean eval(Function context)
Expressioneval in interface Expression<Boolean>Copyright © 2025. All rights reserved.