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