Class UnaryExpression
java.lang.Object
io.pebbletemplates.pebble.node.expression.UnaryExpression
- All Implemented Interfaces:
Expression<Object>
,Node
- Direct Known Subclasses:
RenderableNodeExpression
,UnaryMinusExpression
,UnaryNotExpression
,UnaryPlusExpression
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(NodeVisitor visitor) Expression
<?> int
Returns the line number on which the expression is defined on.void
setChildExpression
(Expression<?> childExpression) void
setLineNumber
(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, wait
Methods inherited from interface io.pebbletemplates.pebble.node.expression.Expression
evaluate
-
Field Details
-
childExpression
-
lineNumber
private int lineNumber
-
-
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: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.
-