public class SignedExpression extends UnaryExpression implements NumericExpression
Expression.Typeright| Constructor and Description |
|---|
SignedExpression(org.antlr.v4.runtime.Token start,
Expression right,
boolean isPlus) |
| Modifier and Type | Method and Description |
|---|---|
double |
evaluateDouble(EvaluationContext context) |
long |
evaluateLong(EvaluationContext context) |
Object |
evaluateUnsafe(EvaluationContext context)
This method is allowed to throw exceptions.
|
boolean |
isIntegral() |
boolean |
isPlus() |
String |
toString() |
children, getType, isConstant, right, rightgetStartTokenclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitchildren, evaluate, evaluateUnsafe, getStartToken, getType, isConstant, nodeTypepublic SignedExpression(org.antlr.v4.runtime.Token start,
Expression right,
boolean isPlus)
public boolean isIntegral()
isIntegral in interface NumericExpressionpublic long evaluateLong(EvaluationContext context)
evaluateLong in interface NumericExpressionpublic double evaluateDouble(EvaluationContext context)
evaluateDouble in interface NumericExpression@Nullable public Object evaluateUnsafe(EvaluationContext context)
ExpressionevaluateUnsafe in interface Expressionpublic boolean isPlus()
Copyright © 2012–2021 Graylog, Inc.. All rights reserved.