Class UnaryExpression

java.lang.Object
io.pebbletemplates.pebble.node.expression.UnaryExpression
All Implemented Interfaces:
Expression<Object>, Node
Direct Known Subclasses:
RenderableNodeExpression, UnaryMinusExpression, UnaryNotExpression, UnaryPlusExpression

public abstract class UnaryExpression extends Object implements Expression<Object>
  • Field Details

    • childExpression

      private Expression<?> childExpression
    • lineNumber

      private int lineNumber
  • Constructor Details

    • UnaryExpression

      public UnaryExpression()
  • Method Details

    • accept

      public void accept(NodeVisitor visitor)
      Specified by:
      accept in interface Node
    • 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 interface Expression<Object>
      Returns:
      the line number on which the expression is defined on.