Package io.pebbletemplates.pebble.node
Class TestInvocationExpression
- java.lang.Object
-
- io.pebbletemplates.pebble.node.TestInvocationExpression
-
- All Implemented Interfaces:
Expression<java.lang.Object>
,Node
public class TestInvocationExpression extends java.lang.Object implements Expression<java.lang.Object>
The right hand side to the test expression.
-
-
Field Summary
Fields Modifier and Type Field Description private ArgumentsNode
args
private int
lineNumber
private java.lang.String
testName
-
Constructor Summary
Constructors Constructor Description TestInvocationExpression(int lineNumber, java.lang.String testName, ArgumentsNode args)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(NodeVisitor visitor)
java.lang.Object
evaluate(PebbleTemplateImpl self, EvaluationContextImpl context)
ArgumentsNode
getArgs()
int
getLineNumber()
Returns the line number on which the expression is defined on.java.lang.String
getTestName()
-
-
-
Field Detail
-
testName
private final java.lang.String testName
-
args
private final ArgumentsNode args
-
lineNumber
private final int lineNumber
-
-
Constructor Detail
-
TestInvocationExpression
public TestInvocationExpression(int lineNumber, java.lang.String testName, ArgumentsNode args)
-
-
Method Detail
-
evaluate
public java.lang.Object evaluate(PebbleTemplateImpl self, EvaluationContextImpl context)
- Specified by:
evaluate
in interfaceExpression<java.lang.Object>
-
accept
public void accept(NodeVisitor visitor)
-
getArgs
public ArgumentsNode getArgs()
-
getTestName
public java.lang.String getTestName()
-
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.Object>
- Returns:
- the line number on which the expression is defined on.
-
-