Method | Description | |
---|---|---|
Associate ( ScriptableObject topScope ) : bool |
Associate ClassCache object with the given top-level scope. Associate ClassCache object with the given top-level scope. The ClassCache object can only be associated with the given scope once. |
|
ClearCaches ( ) : void |
Empty caches of generated Java classes and Java reflection information. Empty caches of generated Java classes and Java reflection information. |
|
Get ( Scriptable scope ) : |
Search for ClassCache object in the given scope. Search for ClassCache object in the given scope. The method first calls |
|
IsCachingEnabled ( ) : bool |
Check if generated Java classes and Java reflection information is cached. Check if generated Java classes and Java reflection information is cached. |
|
NewClassSerialNumber ( ) : int |
Internal engine method to return serial number for generated classes to ensure name uniqueness. Internal engine method to return serial number for generated classes to ensure name uniqueness. |
|
SetCachingEnabled ( bool enabled ) : void |
Set whether to cache some values. Set whether to cache some values. By default, the engine will cache the results of Class.getMethods() and similar calls. This can speed execution dramatically, but increases the memory footprint. Also, with caching enabled, references may be held to objects past the lifetime of any real usage. If caching is enabled and this method is called with a Caching is enabled by default. |
Method | Description | |
---|---|---|
CacheInterfaceAdapter ( |
||
GetAssociatedScope ( ) : Scriptable | ||
GetClassCacheMap ( ) : JavaMembers>.IDictionary |
||
GetInterfaceAdapter ( |
||
GetInterfaceAdapterCacheMap ( ) : Type>.IDictionary |
||
IsInvokerOptimizationEnabled ( ) : bool | ||
SetInvokerOptimizationEnabled ( bool enabled ) : void |
public Associate ( ScriptableObject topScope ) : bool | ||
topScope | ScriptableObject | scope to associate this ClassCache object with. |
return | bool |
public static Get ( Scriptable scope ) : |
||
scope | Scriptable | scope to search for ClassCache object. |
return |
public SetCachingEnabled ( bool enabled ) : void | ||
enabled | bool | if true, caching is enabled |
return | void |