org.apache.sling.scripting.javascript.helper
Class SlingContext

java.lang.Object
  extended by org.mozilla.javascript.Context
      extended by org.apache.sling.scripting.javascript.helper.SlingContext

public class SlingContext
extends org.mozilla.javascript.Context

The SlingContext extends Context to overwrite the initStandardObjects(ScriptableObject, boolean) method to add more standard objects.


Field Summary
 
Fields inherited from class org.mozilla.javascript.Context
emptyArgs, errorReporterProperty, FEATURE_DYNAMIC_SCOPE, FEATURE_E4X, FEATURE_LOCATION_INFORMATION_IN_ERROR, FEATURE_MEMBER_EXPR_AS_FUNCTION_NAME, FEATURE_NON_ECMA_GET_YEAR, FEATURE_PARENT_PROTO_PROPERTIES, FEATURE_PARENT_PROTO_PROPRTIES, FEATURE_RESERVED_KEYWORD_AS_IDENTIFIER, FEATURE_STRICT_EVAL, FEATURE_STRICT_MODE, FEATURE_STRICT_VARS, FEATURE_TO_STRING_AS_SOURCE, FEATURE_WARNING_AS_ERROR, languageVersionProperty, VERSION_1_0, VERSION_1_1, VERSION_1_2, VERSION_1_3, VERSION_1_4, VERSION_1_5, VERSION_1_6, VERSION_DEFAULT, VERSION_UNKNOWN
 
Constructor Summary
SlingContext()
           
 
Method Summary
 org.mozilla.javascript.ScriptableObject initStandardObjects(org.mozilla.javascript.ScriptableObject scope, boolean sealed)
           
 
Methods inherited from class org.mozilla.javascript.Context
addActivationName, addContextListener, addPropertyChangeListener, call, call, checkLanguageVersion, checkOptimizationLevel, compileFunction, compileReader, compileReader, compileString, createClassLoader, decompileFunction, decompileFunctionBody, decompileScript, enter, enter, evaluateReader, evaluateString, exit, getApplicationClassLoader, getCurrentContext, getDebuggableView, getDebugger, getDebuggerContextData, getE4xImplementationFactory, getElements, getErrorReporter, getFactory, getImplementationVersion, getInstructionObserverThreshold, getLanguageVersion, getLocale, getMaximumInterpreterStackDepth, getOptimizationLevel, getThreadLocal, getUndefinedValue, getWrapFactory, hasCompileFunctionsWithDynamicScope, hasFeature, initStandardObjects, initStandardObjects, isActivationNeeded, isGeneratingDebug, isGeneratingDebugChanged, isGeneratingSource, isSealed, isValidLanguageVersion, isValidOptimizationLevel, javaToJS, jsToJava, newArray, newArray, newObject, newObject, newObject, observeInstructionCount, putThreadLocal, removeActivationName, removeContextListener, removePropertyChangeListener, removeThreadLocal, reportError, reportError, reportRuntimeError, reportRuntimeError, reportWarning, reportWarning, reportWarning, seal, setApplicationClassLoader, setCachingEnabled, setClassShutter, setCompileFunctionsWithDynamicScope, setDebugger, setErrorReporter, setGeneratingDebug, setGeneratingSource, setInstructionObserverThreshold, setLanguageVersion, setLocale, setMaximumInterpreterStackDepth, setOptimizationLevel, setSecurityController, setWrapFactory, stringIsCompilableUnit, throwAsScriptRuntimeEx, toBoolean, toNumber, toObject, toObject, toString, toType, unseal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SlingContext

public SlingContext()
Method Detail

initStandardObjects

public org.mozilla.javascript.ScriptableObject initStandardObjects(org.mozilla.javascript.ScriptableObject scope,
                                                                   boolean sealed)
Overrides:
initStandardObjects in class org.mozilla.javascript.Context


Copyright © 2007-2009. All Rights Reserved.