Class LongExpression
java.lang.Object
org.graylog.plugins.pipelineprocessor.ast.expressions.BaseExpression
org.graylog.plugins.pipelineprocessor.ast.expressions.ConstantExpression
org.graylog.plugins.pipelineprocessor.ast.expressions.LongExpression
- All Implemented Interfaces:
Expression,NumericExpression
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.graylog.plugins.pipelineprocessor.ast.expressions.Expression
Expression.Type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleevaluateDouble(EvaluationContext context) longevaluateLong(EvaluationContext context) evaluateUnsafe(EvaluationContext context) This method is allowed to throw exceptions.booleantoString()Methods inherited from class org.graylog.plugins.pipelineprocessor.ast.expressions.ConstantExpression
children, getType, isConstantMethods inherited from class org.graylog.plugins.pipelineprocessor.ast.expressions.BaseExpression
getStartTokenMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.graylog.plugins.pipelineprocessor.ast.expressions.Expression
children, evaluate, evaluateUnsafe, getStartToken, getType, isConstant, nodeType
-
Constructor Details
-
LongExpression
public LongExpression(org.antlr.v4.runtime.Token start, long value)
-
-
Method Details
-
evaluateUnsafe
Description copied from interface:ExpressionThis method is allowed to throw exceptions. The outside world is supposed to call evaluate instead.- Specified by:
evaluateUnsafein interfaceExpression
-
toString
-
isIntegral
public boolean isIntegral()- Specified by:
isIntegralin interfaceNumericExpression
-
evaluateLong
- Specified by:
evaluateLongin interfaceNumericExpression
-
evaluateDouble
- Specified by:
evaluateDoublein interfaceNumericExpression
-