Class AstChoice

All Implemented Interfaces:
ExpressionNode, Node

public class AstChoice extends AstRightValue
  • Field Details

    • question

      private final AstNode question
    • yes

      private final AstNode yes
    • no

      private final AstNode no
  • Constructor Details

  • Method Details

    • eval

      public Object eval(Bindings bindings, javax.el.ELContext context) throws javax.el.ELException
      Specified by:
      eval in class AstNode
      Throws:
      javax.el.ELException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • appendStructure

      public void appendStructure(StringBuilder b, Bindings bindings)
      Specified by:
      appendStructure in class AstNode
    • getCardinality

      public int getCardinality()
      Description copied from interface: Node
      Get the node's number of children.
    • getChild

      public AstNode getChild(int i)
      Description copied from interface: Node
      Get i'th child