Class LazilyLoadedCtor
java.lang.Object
org.mozilla.javascript.LazilyLoadedCtor
- All Implemented Interfaces:
Serializable
Avoid loading classes unless they are used.
This improves startup time and average memory usage.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate Objectprivate final booleanprivate final Stringprivate final ScriptableObjectprivate final booleanprivate static final longprivate intprivate static final intprivate static final intprivate static final int -
Constructor Summary
ConstructorsConstructorDescriptionLazilyLoadedCtor(ScriptableObject scope, String propertyName, String className, boolean sealed) LazilyLoadedCtor(ScriptableObject scope, String propertyName, String className, boolean sealed, boolean privileged) -
Method Summary
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
STATE_BEFORE_INIT
private static final int STATE_BEFORE_INIT- See Also:
-
STATE_INITIALIZING
private static final int STATE_INITIALIZING- See Also:
-
STATE_WITH_VALUE
private static final int STATE_WITH_VALUE- See Also:
-
scope
-
propertyName
-
className
-
sealed
private final boolean sealed -
privileged
private final boolean privileged -
initializedValue
-
state
private int state
-
-
Constructor Details
-
LazilyLoadedCtor
public LazilyLoadedCtor(ScriptableObject scope, String propertyName, String className, boolean sealed) -
LazilyLoadedCtor
LazilyLoadedCtor(ScriptableObject scope, String propertyName, String className, boolean sealed, boolean privileged)
-
-
Method Details
-
init
void init() -
getValue
Object getValue() -
buildValue
-
buildValue0
-
cast
-