Class UnaryExpression
java.lang.Object
io.pebbletemplates.pebble.node.expression.UnaryExpression
- All Implemented Interfaces:
Expression<Object>,Node
- Direct Known Subclasses:
RenderableNodeExpression,UnaryMinusExpression,UnaryNotExpression,UnaryPlusExpression
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(NodeVisitor visitor) Expression<?>intReturns the line number on which the expression is defined on.voidsetChildExpression(Expression<?> childExpression) voidsetLineNumber(int lineNumber) Sets the line number on which the expression is defined on.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.pebbletemplates.pebble.node.expression.Expression
evaluate
-
Constructor Details
-
UnaryExpression
public UnaryExpression()
-
-
Method Details
-
accept
-
getChildExpression
-
setChildExpression
-
setLineNumber
public void setLineNumber(int lineNumber) Sets the line number on which the expression is defined on.- Parameters:
lineNumber- the line number on which the expression is defined on.
-
getLineNumber
public int getLineNumber()Description copied from interface:ExpressionReturns the line number on which the expression is defined on.- Specified by:
getLineNumberin interfaceExpression<Object>- Returns:
- the line number on which the expression is defined on.
-