Package io.pebbletemplates.pebble.node
Class TestInvocationExpression
java.lang.Object
io.pebbletemplates.pebble.node.TestInvocationExpression
- All Implemented Interfaces:
Expression<Object>
,Node
The right hand side to the test expression.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ArgumentsNode
private final int
private final String
-
Constructor Summary
ConstructorsConstructorDescriptionTestInvocationExpression
(int lineNumber, String testName, ArgumentsNode args) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(NodeVisitor visitor) evaluate
(PebbleTemplateImpl self, EvaluationContextImpl context) getArgs()
int
Returns the line number on which the expression is defined on.
-
Field Details
-
testName
-
args
-
lineNumber
private final int lineNumber
-
-
Constructor Details
-
TestInvocationExpression
-
-
Method Details
-
evaluate
- Specified by:
evaluate
in interfaceExpression<Object>
-
accept
-
getArgs
-
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<Object>
- Returns:
- the line number on which the expression is defined on.
-