From d7c5ad7d6263fd1baf9bfdbaa4c50b70ef2fbdb2 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Tue, 8 Jun 2010 08:22:05 +0200 Subject: reverted folder structure change for better mergeing with upstream --- .../javadoc/org/mozilla/javascript/ClassCache.html | 445 +++++++++++++++++++++ 1 file changed, 445 insertions(+) create mode 100644 trunk/infrastructure/rhino1_7R1/javadoc/org/mozilla/javascript/ClassCache.html (limited to 'trunk/infrastructure/rhino1_7R1/javadoc/org/mozilla/javascript/ClassCache.html') diff --git a/trunk/infrastructure/rhino1_7R1/javadoc/org/mozilla/javascript/ClassCache.html b/trunk/infrastructure/rhino1_7R1/javadoc/org/mozilla/javascript/ClassCache.html new file mode 100644 index 0000000..8d8b3ef --- /dev/null +++ b/trunk/infrastructure/rhino1_7R1/javadoc/org/mozilla/javascript/ClassCache.html @@ -0,0 +1,445 @@ + + + + + + +ClassCache (Rhino) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.mozilla.javascript +
+Class ClassCache

+
+java.lang.Object
+  extended by org.mozilla.javascript.ClassCache
+
+
+
+
public class ClassCache
extends java.lang.Object
+ + +

+Cache of generated classes and data structures to access Java runtime + from JavaScript. +

+ +

+

+
Since:
+
Rhino 1.5 Release 5
+
Author:
+
Igor Bukanov
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
ClassCache() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleanassociate(ScriptableObject topScope) + +
+          Associate ClassCache object with the given top-level scope.
+ voidclearCaches() + +
+          Empty caches of generated Java classes and Java reflection information.
+static ClassCacheget(Scriptable scope) + +
+          Search for ClassCache object in the given scope.
+ booleanisCachingEnabled() + +
+          Check if generated Java classes and Java reflection information + is cached.
+ booleanisInvokerOptimizationEnabled() + +
+          Deprecated. The method always returns false.
+ intnewClassSerialNumber() + +
+          Internal engine method to return serial number for generated classes + to ensure name uniqueness.
+ voidsetCachingEnabled(boolean enabled) + +
+          Set whether to cache some values.
+ voidsetInvokerOptimizationEnabled(boolean enabled) + +
+          Deprecated. The method does nothing. + Invoker optimization is no longer used by Rhino. + On modern JDK like 1.4 or 1.5 the disadvantages of the optimization + like increased memory usage or longer initialization time overweight + small speed increase that can be gained using generated proxy class + to replace reflection.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ClassCache

+
+public ClassCache()
+
+
+ + + + + + + + +
+Method Detail
+ +

+get

+
+public static ClassCache get(Scriptable scope)
+
+
Search for ClassCache object in the given scope. + The method first calls + ScriptableObject.getTopLevelScope(Scriptable scope) + to get the top most scope and then tries to locate associated + ClassCache object in the prototype chain of the top scope. +

+

+
Parameters:
scope - scope to search for ClassCache object. +
Returns:
previously associated ClassCache object or a new instance of + ClassCache if no ClassCache object was found.
See Also:
associate(ScriptableObject topScope)
+
+
+
+ +

+associate

+
+public boolean associate(ScriptableObject topScope)
+
+
Associate ClassCache object with the given top-level scope. + The ClassCache object can only be associated with the given scope once. +

+

+
Parameters:
topScope - scope to associate this ClassCache object with. +
Returns:
true if no previous ClassCache objects were embedded into + the scope and this ClassCache were successfully associated + or false otherwise.
See Also:
get(Scriptable scope)
+
+
+
+ +

+clearCaches

+
+public void clearCaches()
+
+
Empty caches of generated Java classes and Java reflection information. +

+

+
+
+
+
+ +

+isCachingEnabled

+
+public final boolean isCachingEnabled()
+
+
Check if generated Java classes and Java reflection information + is cached. +

+

+
+
+
+
+ +

+setCachingEnabled

+
+public void setCachingEnabled(boolean enabled)
+
+
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 + false argument, the caches will be emptied. +

+ Caching is enabled by default. +

+

+
Parameters:
enabled - if true, caching is enabled
See Also:
clearCaches()
+
+
+
+ +

+isInvokerOptimizationEnabled

+
+public boolean isInvokerOptimizationEnabled()
+
+
Deprecated. The method always returns false. +

+

+
See Also:
setInvokerOptimizationEnabled(boolean enabled)
+
+
+
+ +

+setInvokerOptimizationEnabled

+
+public void setInvokerOptimizationEnabled(boolean enabled)
+
+
Deprecated. The method does nothing. + Invoker optimization is no longer used by Rhino. + On modern JDK like 1.4 or 1.5 the disadvantages of the optimization + like increased memory usage or longer initialization time overweight + small speed increase that can be gained using generated proxy class + to replace reflection. +

+

+
+
+
+
+ +

+newClassSerialNumber

+
+public final int newClassSerialNumber()
+
+
Internal engine method to return serial number for generated classes + to ensure name uniqueness. +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + -- cgit v1.2.3