Class ConditionalOperator

    • Constructor Detail

      • ConditionalOperator

        public ConditionalOperator​(Item ifTerm,
                                   Item thenTerm,
                                   Item elseTerm)
    • Method Detail

      • ifTerm

        public Item ifTerm()
      • thenTerm

        public Item thenTerm()
      • elseTerm

        public Item elseTerm()
      • isConstant

        public boolean isConstant()
        Description copied from class: Item
        Returns true if this Item always evaluates to the same Item.
        Specified by:
        isConstant in class Item
      • precedence

        public int precedence()
        Overrides:
        precedence in class Item
      • typeOrder

        public int typeOrder()
        Description copied from class: Item
        Returns the heterogeneous sort order of this Item. Used to impose a total order on the set of all items. When comparing two items of different types, the items order according to their typeOrder.
        Specified by:
        typeOrder in class Item
      • debug

        public <T> Output<T> debug​(Output<T> output)
        Description copied from interface: Debug
        Writes a developer readable, debug-formatted string representation of this object to output.
        Specified by:
        debug in interface Debug
        Specified by:
        debug in class Item
        Returns:
        the continuation of the output.