public class SignedExpression extends UnaryExpression implements NumericExpression
Expression.Type
right
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, right
getStartToken
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
children, evaluate, evaluateUnsafe, getStartToken, getType, isConstant, nodeType
public SignedExpression(org.antlr.v4.runtime.Token start, Expression right, boolean isPlus)
public boolean isIntegral()
isIntegral
in interface NumericExpression
public long evaluateLong(EvaluationContext context)
evaluateLong
in interface NumericExpression
public double evaluateDouble(EvaluationContext context)
evaluateDouble
in interface NumericExpression
@Nullable public Object evaluateUnsafe(EvaluationContext context)
Expression
evaluateUnsafe
in interface Expression
public boolean isPlus()
Copyright © 2012–2021 Graylog, Inc.. All rights reserved.