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 ArgumentsNodeargsprivate intlineNumberprivate java.lang.StringtestName
-
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 voidaccept(NodeVisitor visitor)java.lang.Objectevaluate(PebbleTemplateImpl self, EvaluationContextImpl context)ArgumentsNodegetArgs()intgetLineNumber()Returns the line number on which the expression is defined on.java.lang.StringgetTestName()
-
-
-
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:
evaluatein 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:ExpressionReturns the line number on which the expression is defined on.- Specified by:
getLineNumberin interfaceExpression<java.lang.Object>- Returns:
- the line number on which the expression is defined on.
-
-