Method | Description | |
---|---|---|
AddExcludedName ( string name ) : void |
Adds a qualified name to the list of objects to be excluded from serialization. Adds a qualified name to the list of objects to be excluded from serialization. Names excluded from serialization are looked up in the new scope and replaced upon deserialization. |
|
AddOptionalExcludedName ( string name ) : void |
Adds a qualified name to the list of object to be excluded from serialization. Adds a qualified name to the list of object to be excluded from serialization. Names excluded from serialization are looked up in the new scope and replaced upon deserialization. |
|
ExcludeAllIds ( object ids ) : void | ||
ExcludeStandardObjectNames ( ) : void |
Adds the names of the standard objects and their prototypes to the list of excluded names. Adds the names of the standard objects and their prototypes to the list of excluded names. |
|
HasExcludedName ( string name ) : bool |
Returns true if the name is excluded from serialization. Returns true if the name is excluded from serialization. |
|
RemoveExcludedName ( string name ) : void |
Removes a name from the list of names to exclude. Removes a name from the list of names to exclude. |
|
ScriptableOutputStream ( Stream @out, Scriptable scope ) : System |
ScriptableOutputStream constructor. ScriptableOutputStream constructor. Creates a ScriptableOutputStream for use in serializing JavaScript objects. Calls excludeStandardObjectNames. |
Method | Description | |
---|---|---|
ReplaceObject ( object obj ) : object |
Method | Description | |
---|---|---|
LookupQualifiedName ( Scriptable scope, string qualifiedName ) : object |
public AddExcludedName ( string name ) : void | ||
name | string | /// a fully qualified name (of the form "a.b.c", where /// "a" must be a property of the top-level object) /// |
return | void |
public AddOptionalExcludedName ( string name ) : void | ||
name | string | /// a fully qualified name (of the form "a.b.c", where /// "a" must be a property of the top-level object). The object /// need not exist, in which case the name is ignored. /// |
return | void |
public HasExcludedName ( string name ) : bool | ||
name | string | |
return | bool |
public RemoveExcludedName ( string name ) : void | ||
name | string | |
return | void |
protected ReplaceObject ( object obj ) : object | ||
obj | object | |
return | object |
public ScriptableOutputStream ( Stream @out, Scriptable scope ) : System | ||
@out | Stream | |
scope | Scriptable | the scope containing the object. |
return | System |