JSAPI Reference
From MDC
JSAPI is the SpiderMonkey API. SpiderMonkey, used in Gecko, is a JavaScript engine written in C.
目录 |
[编辑] Data Structures
- JSClass
- JSConstDoubleSpec
- JSErrorReport
- JSExceptionState
- JSExtendedClass
- JSFunctionSpec
- JSIdArray
- JSLocaleCallbacks
- JSObjectOps
- JSPrincipals
- JSProperty
- JSPropertySpec
- JSXMLObjectOps
[编辑] Functions
- JS_AddArgumentFormatter
- JS_AddExternalStringFinalizer
- JS_AddNamedRoot
- JS_AddNamedRootRT
- JS_AddRoot
- JS_AliasElement Deprecated
- JS_AliasProperty Deprecated
- JS_BeginRequest
- JS_BufferIsCompilableUnit
- JS_CallFunction
- JS_CallFunctionName
- JS_CallFunctionValue
- JS_CheckAccess
- JS_ClearContextThread
- JS_ClearNewbornRoots
- JS_ClearPendingException
- JS_ClearRegExpRoots
- JS_ClearRegExpStatics
- JS_ClearScope
- JS_CloneFunctionObject
- JS_CompareStrings
- JS_CompileFile
- JS_CompileFileHandle
- JS_CompileFileHandleForPrincipals
- JS_CompileFunction
- JS_CompileFunctionForPrincipals
- JS_CompileScript
- JS_CompileScriptForPrincipals
- JS_CompileUCFunction
- JS_CompileUCFunctionForPrincipals
- JS_CompileUCScript
- JS_ConcatStrings
- JS_CompileUCScriptForPrincipals
- JS_ConstructObject
- JS_ConstructObjectWithArguments
- JS_ContextIterator
- JS_ConvertArguments
- JS_ConvertArgumentsVA
- JS_ConvertStub
- JS_ConvertValue
- JS_DecodeBytes
- JS_DecompileFunction
- JS_DecompileFunctionBody
- JS_DecompileScript
- JS_DefineConstDoubles
- JS_DefineElement
- JS_DefineFunction
- JS_DefineFunctions
- JS_DefineObject
- JS_DefineProperties
- JS_DefineProperty
- JS_DefinePropertyWithTinyId
- JS_DefineUCFunction
- JS_DefineUCProperty
- JS_DefineUCPropertyWithTinyID
- JS_DeleteElement
- JS_DeleteElement2
- JS_DeleteProperty
- JS_DeleteProperty2
- JS_DeleteUCProperty2
- JS_DestroyContext
- JS_DestroyContextMaybeGC
- JS_DestroyContextNoGC
- JS_DestroyIdArray
- JS_DestroyRuntime
- JS_DestroyScript
- JS_DropExceptionState
- JS_DropPrincipals
- JS_DumpNamedRoots
- JS_EndRequest
- JS_EncodeCharacters
- JS_EnterLocalRootScope
- JS_Enumerate
- JS_EnumerateStandardClasses
- JS_EnumerateStub
- JS_EnumerateResolvedStandardClasses
- JS_ErrorFromException
- JS_EvaluateScript
- JS_EvaluateScriptForPrincipals
- JS_EvaluateUCScript
- JS_EvaluateUCScriptForPrincipals
- JS_ExecuteScript
- JS_ExecuteScriptPart
- JS_FinalizeStub
- JS_Finish Deprecated
- JS_ForgetLocalRoot
- JS_GC
- JS_GetArrayLength
- JS_GetClass
- JS_GetConstructor
- JS_GetContextPrivate
- JS_GetContextThread
- JS_GetElement
- JS_GetEmptyStringValue
- JS_GetExternalStringGCType
- JS_GetFunctionArity
- JS_GetFunctionFlags
- JS_GetFunctionId
- JS_GetFunctionName Deprecated
- JS_GetFunctionObject
- JS_GetGlobalObject
- JS_GetImplementationVersion
- JS_GetInstancePrivate
- JS_GetLocaleCallbacks
- JS_GetMethod
- JS_GetNaNValue
- JS_GetNegativeInfinityValue
- JS_GetObjectId
- JS_GetOptions
- JS_GetParent
- JS_GetPendingException
- JS_GetPositiveInfinityValue
- JS_GetPrivate
- JS_GetProperty
- JS_GetPropertyAttributes
- JS_GetPropertyAttrsGetterAndSetter
- JS_GetPrototype
- JS_GetReservedSlot
- JS_GetRuntime
- JS_GetRuntimePrivate
- JS_GetScopeChain
- JS_GetScriptObject
- JS_GetStringBytes
- JS_GetStringChars
- JS_GetStringLength
- JS_GetTypeName
- JS_GetUCProperty
- JS_GetUCPRopertyAttributes
- JS_GetUCPropertyAttrsGetterAndSetter
- JS_GetVersion
- JS_HasArrayLength
- JS_HasInstance
- JS_HasProperty
- JS_HasUCProperty
- JS_HoldPrincipals
- JS_IdToValue
- JS_Init Deprecated
- JS_InitClass
- JS_InitStandardClasses
- JS_InstanceOf
- JS_InternString
- JS_InternUCString
- JS_InternUCStringN
- JS_IsAboutToBeFinalized
- JS_IsArrayObject
- JS_IsAssigning
- JS_IsConstructing
- JS_IsExceptionPending
- JS_IsRunning
- JS_LeaveLocalRootScope
- JS_Lock Deprecated
- JS_LockGCThing Deprecated
- JS_LockGCThingRT
- JS_LockRuntime
- JS_LookupElement
- JS_LookupProperty
- JS_LookupPropertyWithFlags
- JS_LookupUCProperty
- JS_MakeStringImmutable
- JS_MapGCRoots
- JS_MarkGCThing
- JS_MaybeGC
- JS_NewArrayObject
- JS_NewContext
- JS_NewDependentString
- JS_NewDouble
- JS_NewDoubleValue
- JS_NewExternalString
- JS_NewFunction
- JS_NewGrowableString
- JS_NewIdArray
- JS_NewNumberValue
- JS_NewObject
- JS_NewPropertyIterator
- JS_NewRegExpObject
- JS_NewRuntime
- JS_NewRegExpObject
- JS_NewScriptObject
- JS_NewString
- JS_NewStringCopyN
- JS_NewStringCopyZ
- JS_NewUCString
- JS_NewUCStringCopyN
- JS_NewUCStringCopyZ
- JS_NewRegExpObject
- JS_Now
- JS_NextProperty
- JS_ObjectIsFunction
- JS_PopArguments
- JS_PropertyStub
- JS_PushArguments
- JS_PushArgumentsVA
- JS_RemoveArgumentFormatter
- JS_RemoveExternalStringFinalizer
- JS_RemoveRoot
- JS_RemoveRootRT
- JS_ReportError
- JS_ReportErrorFlagsAndNumber
- JS_ReportErrorFlagsAndNumberUC
- JS_ReportErrorNumber
- JS_ReportErrorNumberUC
- JS_ReportOutOfMemory
- JS_ReportPendingException
- JS_ReportWarning
- JS_ResolveStandardClass
- JS_ResolveStub
- JS_RestoreExceptionState
- JS_ResumeRequest
- JS_SaveExceptionState
- JS_SealObject
- JS_SetArrayLength
- JS_SetBranchCallback
- JS_SetCallReturnValue2
- JS_SetCheckObjectAccessCallback
- JS_SetContextPrivate
- JS_SetContextThread
- JS_SetElement
- JS_SetErrorReporter
- JS_SetGCCallback
- JS_SetGCCallbackRT
- JS_SetGCParameter
- JS_SetGlobalObject
- JS_SetLocaleCallbacks
- JS_SetObjectPrincipalsFinder
- JS_SetOptions
- JS_SetParent
- JS_SetPendingException
- JS_SetPrincipalsTranscoder
- JS_SetPrivate
- JS_SetProperty
- JS_SetPropertyAttributes
- JS_SetPrototype
- JS_SetRegExpInput
- JS_SetThreadStackLimit
- JS_SetUCProperty
- JS_SetUCPropertyAttributes
- JS_SetRegExpInput
- JS_SetReservedSlot
- JS_SetRuntimePrivate
- JS_SetVersion
- JS_ShutDown
- JS_StringToVersion
- JS_StringsAreUTF8
- JS_SuspendRequest
- JS_ToggleOptions
- JS_ThrowReportedError
- JS_TypeOfValue
- JS_UndependString
- JS_Unlock Deprecated
- JS_UnlockGCThing Deprecated
- JS_UnlockGCThingRT
- JS_UnlockRuntime
- JS_ValueToBoolean
- JS_ValueToConstructor
- JS_ValueToECMAInt32
- JS_ValueToECMAUint32
- JS_ValueToFunction
- JS_ValueToId
- JS_ValueToInt32
- JS_ValueToNumber
- JS_ValueToObject
- JS_ValueToString
- JS_ValueToUint16
- JS_VersionToString
- JS_YieldRequest
- JS_free
- JS_malloc
- JS_realloc
- JS_strdup
[编辑] Macros
- BOOLEAN_TO_JSVAL
- DOUBLE_TO_JSVAL
- INT_FITS_IN_JSVAL
- INT_TO_JSVAL
- JS_DEFAULT_XML_NAMESPACE_ID
- JS_GET_CLASS
- JS_MAP_GCROOT_NEXT
- JS_MAP_GCROOT_REMOVE
- JS_MAP_GCROOT_STOP
- JSCLASS_CONSTUCT_PROTOTYPE
- JSCLASS_HAS_PRIVATE
- JSCLASS_HAS_RESERVED_SLOTS
- JSCLASS_IS_EXTENDED
- JSCLASS_NEW_ENUMERATE
- JSCLASS_NEW_RESOLVE
- JSCLASS_RESERVED_SLOTS
- JSCLASS_SHARE_ALL_PROPERTIES
- JSFUN_BOUND_METHOD Deprecated
- JSFUN_GETTER
- JSFUN_GLOBAL_PARENT Deprecated
- JSFUN_HEAVYWEIGHT
- JSFUN_LAMBDA
- JSFUN_SETTER
- JSGC_MAX_BYTES
- JSGC_MAX_MALLOC_BYTES
- JSOPTION_ATLINE
- JSOPTION_COMPILE_N_GO
- JSOPTION_DONT_REPORT_UNCAUGHT
- JSOPTION_NATIVE_BRANCH_CALLBACK
- JSOPTION_RELIMIT
- JSOPTION_STRICT
- JSOPTION_VAROBJFIX
- JSOPTION_WERROR
- JSOPTION_XML
- JSPRINCIPALS_DROP
- JSPRINCIPALS_HOLD
- JSPROP_ENUMERATE
- JSPROP_EXPORTED
- JSPROP_GETTER
- JSPROP_INDEX
- JSPROP_PERMANENT
- JSPROP_READONLY
- JSPROP_SETTER
- JSPROP_SHARED
- JSREG_GLOB
- JSREG_FOLD
- JSREG_MULTILINE
- JSREPORT_ERROR
- JSREPORT_EXCEPTION
- JSREPORT_STRICT
- JSREPORT_WARNING
- JSREPORT_IS_EXCEPTION
- JSREPORT_IS_STRICT
- JSREPORT_IS_WARNING
- JSRESOLVE_ASSIGNING
- JSRESOLVE_CLASSNAME
- JSRESOLVE_DECLARING
- JSRESOLVE_DETECTING
- JSRESOLVE_QUALIFIED
- JSVAL_FALSE
- JSVAL_IS_BOOLEAN
- JSVAL_IS_DOUBLE
- JSVAL_IS_GCTHING
- JSVAL_IS_INT
- JSVAL_IS_NULL
- JSVAL_IS_NUMBER
- JSVAL_IS_OBJECT
- JSVAL_IS_PRIMITIVE
- JSVAL_IS_STRING
- JSVAL_IS_VOID
- JSVAL_LOCK Deprecated
- JSVAL_NULL
- JSVAL_ONE
- JSVAL_TO_BOOLEAN
- JSVAL_TO_DOUBLE
- JSVAL_TO_GCTHING
- JSVAL_TO_INT
- JSVAL_TO_OBJECT
- JSVAL_TO_PRIVATE
- JSVAL_TO_STRING
- JSVAL_TRUE
- JSVAL_UNLOCK Deprecated
- JSVAL_VOID
- JSVAL_ZERO
- OBJECT_TO_JSVAL
- PRIVATE_TO_JSVAL
- STRING_TO_JSVAL
[编辑] Deprecated
- JSFUN_BOUND_METHOD Deprecated
- JSFUN_GLOBAL_PARENT Deprecated
- JSVAL_LOCK Deprecated
- JSVAL_UNLOCK Deprecated
- JS_AliasElement Deprecated
- JS_AliasProperty Deprecated
- JS_Finish Deprecated
- JS_GetFunctionName Deprecated
- JS_Init Deprecated
- JS_Lock Deprecated
- JS_LockGCThing Deprecated
- JS_Unlock Deprecated
- JS_UnlockGCThing Deprecated
[编辑] Preprocessor conditionals
--AndyYard 01:44 2007年11月15日 (PST)