Class QDLValue

    • Constructor Detail

      • QDLValue

        public QDLValue​(Object value)
    • Method Detail

      • getValue

        public Object getValue()
      • setValue

        public void setValue​(Object value)
      • hasValue

        public boolean hasValue()
      • getType

        public int getType()
      • isAxisRestriction

        public boolean isAxisRestriction()
      • isBoolean

        public boolean isBoolean()
      • isDecimal

        public boolean isDecimal()
      • isDyadicFunction

        public boolean isDyadicFunction()
      • isFunction

        public boolean isFunction()
      • isList

        public boolean isList()
      • isListOrStem

        public boolean isListOrStem()
      • isLong

        public boolean isLong()
      • isModule

        public boolean isModule()
      • isNull

        public boolean isNull()
      • isSet

        public boolean isSet()
      • isStem

        public boolean isStem()
      • isString

        public boolean isString()
      • isAllIndices

        public boolean isAllIndices()
      • asBoolean

        public Boolean asBoolean()
      • asString

        public String asString()
      • asSet

        public QDLSet asSet()
      • asModule

        public Module asModule()
      • asLong

        public Long asLong()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getInputForm

        public String getInputForm()
      • asQDLValue

        public static QDLValue asQDLValue​(Object value)
        Factory method to convert an object to a QDLValue if it is not one.
        Parameters:
        value -
        Returns:
      • asJavaValue

        public static Object asJavaValue​(Object value)
        effectively the inverse of asQDLValue(Object). If this is QDLValue it will unwrap the value, otherwise it just returns the argument.
        Parameters:
        value -
        Returns:
      • castToJavaValues

        public static List<Object> castToJavaValues​(List<QDLValue> values)
        Utility to convert a collection of QDLValues to their Java objects.
        Parameters:
        values -
        Returns:
      • castToJavaValues

        public static Object[] castToJavaValues​(Object[] values)
      • castToQDLValueList

        public static List<QDLValue> castToQDLValueList​(Object[] values)
      • castToQDLValues

        public static QDLValue[] castToQDLValues​(Object[] values)
      • isScalar

        public boolean isScalar()