Class UnaryExpression
- java.lang.Object
-
- io.pebbletemplates.pebble.node.expression.UnaryExpression
-
- All Implemented Interfaces:
Expression<java.lang.Object>
,Node
- Direct Known Subclasses:
RenderableNodeExpression
,UnaryMinusExpression
,UnaryNotExpression
,UnaryPlusExpression
public abstract class UnaryExpression extends java.lang.Object implements Expression<java.lang.Object>
-
-
Field Summary
Fields Modifier and Type Field Description private Expression<?>
childExpression
private int
lineNumber
-
Constructor Summary
Constructors Constructor Description UnaryExpression()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(NodeVisitor visitor)
Expression<?>
getChildExpression()
int
getLineNumber()
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 Detail
-
childExpression
private Expression<?> childExpression
-
lineNumber
private int lineNumber
-
-
Method Detail
-
accept
public void accept(NodeVisitor visitor)
-
getChildExpression
public Expression<?> getChildExpression()
-
setChildExpression
public void setChildExpression(Expression<?> childExpression)
-
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<java.lang.Object>
- Returns:
- the line number on which the expression is defined on.
-
-