public class BinaryOperation extends Expression
expression
represents a comparision between a field and a value.Modifier and Type | Class and Description |
---|---|
static class |
BinaryOperation.Operator |
Constructor and Description |
---|
BinaryOperation() |
BinaryOperation(String fieldName,
BinaryOperation.Operator operator,
Literal<?> value) |
BinaryOperation(String fieldName,
BinaryOperation.Operator operator,
Number value) |
BinaryOperation(String fieldName,
BinaryOperation.Operator operator,
String value) |
Modifier and Type | Method and Description |
---|---|
<ResultType,ExceptionType extends EcmException> |
accept(ExpressionVisitor<ResultType,ExceptionType> visitor)
This method accepts the given visitor and returns the result of its visit.
|
String |
getFieldName() |
BinaryOperation.Operator |
getOperator() |
Literal<?> |
getValue() |
void |
setFieldName(String fieldName) |
void |
setOperator(BinaryOperation.Operator operator) |
void |
setValue(Literal<?> value) |
String |
toString() |
public BinaryOperation()
public BinaryOperation(String fieldName, BinaryOperation.Operator operator, Literal<?> value)
public BinaryOperation(String fieldName, BinaryOperation.Operator operator, String value)
public BinaryOperation(String fieldName, BinaryOperation.Operator operator, Number value)
public String getFieldName()
public void setFieldName(String fieldName)
public BinaryOperation.Operator getOperator()
public void setOperator(BinaryOperation.Operator operator)
public Literal<?> getValue()
public void setValue(Literal<?> value)
public <ResultType,ExceptionType extends EcmException> ResultType accept(ExpressionVisitor<ResultType,ExceptionType> visitor) throws ExceptionType extends EcmException
AstNode
accept
in class AstNode
visitor
- the visitor that implements the callbacksExceptionType
- indicates any exception during the visiting processExceptionType extends EcmException
Copyright © 2016 Lexmark Enterprise Software Deutschland GmbH. All rights reserved.