org.mozilla.javascript

Class UniqueTag

Implemented Interfaces:
Serializable

public final class UniqueTag
extends java.lang.Object
implements 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

Field Summary

static UniqueTag
DOUBLE_MARK
Tag to indicate that a object represents "double" with the real value stored somewhere else.
static UniqueTag
NOT_FOUND
Tag to mark non-existing values.
static UniqueTag
NULL_VALUE
Tag to distinguish between uninitialized and null values.

Method Summary

@Override
String toString()
Object
readResolve()

Field Details

DOUBLE_MARK

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

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.

Method Details

String toString

public @Override String toString()

readResolve

public Object readResolve()