Class ConstantNode

    • Constructor Detail

      • ConstantNode

        public ConstantNode​(String result)
      • ConstantNode

        public ConstantNode​(Long result)
      • ConstantNode

        public ConstantNode​(BigDecimal result)
      • ConstantNode

        public ConstantNode​(Boolean result)
      • ConstantNode

        public ConstantNode​(QDLNull result)
      • ConstantNode

        public ConstantNode​(Object result)
      • ConstantNode

        public ConstantNode​(Object result,
                            int resultType)
    • Method Detail

      • getNodeType

        public int getNodeType()
        Description copied from interface: ExpressionInterface
        QDL is not strongly typed but Java is, so each node type should have a unique integer and conditionals should use that, not the instanceof operator. This allows for efficient programming with switch statements rather than a bevy of conditionals (potentially each of which gets done even if the correct case has been handled).
        Returns: