Package org.mozilla.javascript
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 String
private Object
private final boolean
private final String
private final ScriptableObject
private final boolean
private static final long
private int
private static final int
private static final int
private 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
-