Class JSType

    • Field Detail

      • AUTO_DETECT

        public static final JSType AUTO_DETECT
        Special JS type for type auto detection - in this case getType() returns null!!
      • HTML

        public static final JSType HTML
        Constant basic type for HTML. In contrast to STRING values, HTML values are neither quoted not escaped!
      • STRING

        public static final JSType STRING
        Constant basic type for String. Values will be quoted and escaped!
      • INT

        public static final JSType INT
        Constant basic type for Integer.
      • DOUBLE

        public static final JSType DOUBLE
        Constant basic type for Double.
      • BOOLEAN

        public static final JSType BOOLEAN
        Constant basic type for Double.
      • VOID

        public static final JSType VOID
        Constant basic type for Void.
      • JS

        public static final JSType JS
        Constant basic type for objects already having JS code present.
        See Also:
        IHasJSCode
      • JSON

        public static final JSType JSON
        Constant basic type for objects already having JSON code present.
        See Also:
        IHasJSCode
    • Constructor Detail

      • JSType

        protected JSType​(@Nonnull
                         com.helger.html.js.tostring.EJSType eType)
        The constructor is protected to avoid outside instantiation. Use only the above constants.
        Parameters:
        eType - The basic type. May not be null.
    • Method Detail

      • getType

        @Nullable
        public final com.helger.html.js.tostring.EJSType getType()
        Get the contained base type.
        Returns:
        The base type. Is only null for the AUTO_DETECT type.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object