Class ValueExpression

    • Field Detail

      • BOOLEAN_HANDLER

        public static final PrefixHandler BOOLEAN_HANDLER
        Creates a boolean value handler which will parse the ParserToken text to generate the boolean value
      • NULL_HANDLER

        public static final PrefixHandler NULL_HANDLER
        Creates a null value handler which will always contain a null value
      • NUMERIC_HANDLER

        public static final PrefixHandler NUMERIC_HANDLER
        Creates a numeric value handler which will parse the ParserToken text using Double.parseDouble to generate the numeric value
      • STRING_HANDLER

        public static final PrefixHandler STRING_HANDLER
        Creates a string value handler which will use the text of the ParserToken as the value
    • Constructor Detail

      • ValueExpression

        public ValueExpression​(Tag type,
                               Object value)
        Instantiates a new Value expression.
        Parameters:
        type - the type
        value - the value
    • Method Detail

      • getValue

        public Val getValue()
        Gets the stored value
        Returns:
        the value
      • getValue

        public <T> T getValue​(Class<T> tClass)
        Gets the value as the given type
        Type Parameters:
        T - the type parameter
        Parameters:
        tClass - the class information of the type to return
        Returns:
        the value
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object