Class LiteralLongExpression
- java.lang.Object
-
- io.pebbletemplates.pebble.node.expression.LiteralLongExpression
-
- All Implemented Interfaces:
Expression<java.lang.Long>
,Node
public class LiteralLongExpression extends java.lang.Object implements Expression<java.lang.Long>
-
-
Field Summary
Fields Modifier and Type Field Description private int
lineNumber
private java.lang.Long
value
-
Constructor Summary
Constructors Constructor Description LiteralLongExpression(java.lang.Long value, int lineNumber)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(NodeVisitor visitor)
java.lang.Long
evaluate(PebbleTemplateImpl self, EvaluationContextImpl context)
int
getLineNumber()
Returns the line number on which the expression is defined on.java.lang.String
toString()
-
-
-
Method Detail
-
accept
public void accept(NodeVisitor visitor)
-
evaluate
public java.lang.Long evaluate(PebbleTemplateImpl self, EvaluationContextImpl context)
- Specified by:
evaluate
in interfaceExpression<java.lang.Long>
-
getLineNumber
public int getLineNumber()
Description copied from interface:Expression
Returns the line number on which the expression is defined on.- Specified by:
getLineNumber
in interfaceExpression<java.lang.Long>
- Returns:
- the line number on which the expression is defined on.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-