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