Class UniqueTag

  • All Implemented Interfaces:
    java.io.Serializable

    public final class UniqueTag
    extends java.lang.Object
    implements java.io.Serializable
    Class instances represent serializable tags to mark special Object values.

    Compatibility note: under jdk 1.1 use org.mozilla.javascript.serialize.ScriptableInputStream to read serialized instances of UniqueTag as under this JDK version the default ObjectInputStream would not restore them correctly as it lacks support for readResolve method

    See Also:
    Serialized Form
    • Field Detail

      • NOT_FOUND

        public static final UniqueTag NOT_FOUND
        Tag to mark non-existing values.
      • NULL_VALUE

        public static final UniqueTag NULL_VALUE
        Tag to distinguish between uninitialized and null values.
      • DOUBLE_MARK

        public static final UniqueTag DOUBLE_MARK
        Tag to indicate that a object represents "double" with the real value stored somewhere else.
      • tagId

        private final int tagId
    • Constructor Detail

      • UniqueTag

        private UniqueTag​(int tagId)
    • Method Detail

      • readResolve

        public java.lang.Object readResolve()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object