Class Dyad

    • Method Detail

      • isUnary

        public boolean isUnary()
        Demotes that this is actually a unary operator that is converted to dyadic by the interpreter.
        Returns:
      • setUnary

        public void setUnary​(boolean unary)
      • 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: