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 --- .../javascript/optimizer/ClassCompiler.html | 461 +++++++++++++++++++++ .../javascript/optimizer/package-frame.html | 32 ++ .../javascript/optimizer/package-summary.html | 155 +++++++ .../mozilla/javascript/optimizer/package-tree.html | 151 +++++++ 4 files changed, 799 insertions(+) create mode 100644 trunk/infrastructure/rhino1_7R1/javadoc/org/mozilla/javascript/optimizer/ClassCompiler.html create mode 100644 trunk/infrastructure/rhino1_7R1/javadoc/org/mozilla/javascript/optimizer/package-frame.html create mode 100644 trunk/infrastructure/rhino1_7R1/javadoc/org/mozilla/javascript/optimizer/package-summary.html create mode 100644 trunk/infrastructure/rhino1_7R1/javadoc/org/mozilla/javascript/optimizer/package-tree.html (limited to 'trunk/infrastructure/rhino1_7R1/javadoc/org/mozilla/javascript/optimizer') diff --git a/trunk/infrastructure/rhino1_7R1/javadoc/org/mozilla/javascript/optimizer/ClassCompiler.html b/trunk/infrastructure/rhino1_7R1/javadoc/org/mozilla/javascript/optimizer/ClassCompiler.html new file mode 100644 index 0000000..bdce431 --- /dev/null +++ b/trunk/infrastructure/rhino1_7R1/javadoc/org/mozilla/javascript/optimizer/ClassCompiler.html @@ -0,0 +1,461 @@ + + + + + + +ClassCompiler (Rhino) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.mozilla.javascript.optimizer +
+Class ClassCompiler

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

+Generates class files from script sources. + + since 1.5 Release 5 +

+ +

+

+
Author:
+
Igor Bukanov
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
ClassCompiler(CompilerEnvirons compilerEnv) + +
+          Construct ClassCompiler that uses the specified compiler environment + when generating classes.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ java.lang.Object[]compileToClassFiles(java.lang.String source, + java.lang.String sourceLocation, + int lineno, + java.lang.String mainClassName) + +
+          Compile JavaScript source into one or more Java class files.
+ CompilerEnvironsgetCompilerEnv() + +
+          Get the compiler environment the compiler uses.
+ java.lang.StringgetMainMethodClass() + +
+          Get the name of the class for main method implementation.
+ java.lang.ClassgetTargetExtends() + +
+          Get the class that the generated target will extend.
+ java.lang.Class[]getTargetImplements() + +
+          Get the interfaces that the generated target will implement.
+protected  java.lang.StringmakeAuxiliaryClassName(java.lang.String mainClassName, + java.lang.String auxMarker) + +
+          Build class name for a auxiliary class generated by compiler.
+ voidsetMainMethodClass(java.lang.String className) + +
+          Set the class name to use for main method implementation.
+ voidsetTargetExtends(java.lang.Class extendsClass) + +
+          Set the class that the generated target will extend.
+ voidsetTargetImplements(java.lang.Class[] implementsClasses) + +
+          Set the interfaces that the generated target will implement.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

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

+ClassCompiler

+
+public ClassCompiler(CompilerEnvirons compilerEnv)
+
+
Construct ClassCompiler that uses the specified compiler environment + when generating classes. +

+

+ + + + + + + + +
+Method Detail
+ +

+setMainMethodClass

+
+public void setMainMethodClass(java.lang.String className)
+
+
Set the class name to use for main method implementation. + The class must have a method matching + public static void main(Script sc, String[] args), it will be + called when main(String[] args) is called in the generated + class. The class name should be fully qulified name and include the + package name like in org.foo.Bar. +

+

+
+
+
+
+ +

+getMainMethodClass

+
+public java.lang.String getMainMethodClass()
+
+
Get the name of the class for main method implementation. +

+

+
See Also:
setMainMethodClass(String)
+
+
+
+ +

+getCompilerEnv

+
+public CompilerEnvirons getCompilerEnv()
+
+
Get the compiler environment the compiler uses. +

+

+
+
+
+
+ +

+getTargetExtends

+
+public java.lang.Class getTargetExtends()
+
+
Get the class that the generated target will extend. +

+

+
+
+
+
+ +

+setTargetExtends

+
+public void setTargetExtends(java.lang.Class extendsClass)
+
+
Set the class that the generated target will extend. +

+

+
Parameters:
extendsClass - the class it extends
+
+
+
+ +

+getTargetImplements

+
+public java.lang.Class[] getTargetImplements()
+
+
Get the interfaces that the generated target will implement. +

+

+
+
+
+
+ +

+setTargetImplements

+
+public void setTargetImplements(java.lang.Class[] implementsClasses)
+
+
Set the interfaces that the generated target will implement. +

+

+
Parameters:
implementsClasses - an array of Class objects, one for each + interface the target will extend
+
+
+
+ +

+makeAuxiliaryClassName

+
+protected java.lang.String makeAuxiliaryClassName(java.lang.String mainClassName,
+                                                  java.lang.String auxMarker)
+
+
Build class name for a auxiliary class generated by compiler. + If the compiler needs to generate extra classes beyond the main class, + it will call this function to build the auxiliary class name. + The default implementation simply appends auxMarker to mainClassName + but this can be overridden. +

+

+
+
+
+
+ +

+compileToClassFiles

+
+public java.lang.Object[] compileToClassFiles(java.lang.String source,
+                                              java.lang.String sourceLocation,
+                                              int lineno,
+                                              java.lang.String mainClassName)
+
+
Compile JavaScript source into one or more Java class files. + The first compiled class will have name mainClassName. + If the results of getTargetExtends() or + getTargetImplements() are not null, then the first compiled + class will extend the specified super class and implement + specified interfaces. +

+

+ +
Returns:
array where elements with even indexes specifies class name + and the following odd index gives class file body as byte[] + array. The initial element of the array always holds + mainClassName and array[1] holds its byte code.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/trunk/infrastructure/rhino1_7R1/javadoc/org/mozilla/javascript/optimizer/package-frame.html b/trunk/infrastructure/rhino1_7R1/javadoc/org/mozilla/javascript/optimizer/package-frame.html new file mode 100644 index 0000000..1dc284b --- /dev/null +++ b/trunk/infrastructure/rhino1_7R1/javadoc/org/mozilla/javascript/optimizer/package-frame.html @@ -0,0 +1,32 @@ + + + + + + +org.mozilla.javascript.optimizer (Rhino) + + + + + + + + + + + +org.mozilla.javascript.optimizer + + + + +
+Classes  + +
+ClassCompiler
+ + + + diff --git a/trunk/infrastructure/rhino1_7R1/javadoc/org/mozilla/javascript/optimizer/package-summary.html b/trunk/infrastructure/rhino1_7R1/javadoc/org/mozilla/javascript/optimizer/package-summary.html new file mode 100644 index 0000000..8b86a40 --- /dev/null +++ b/trunk/infrastructure/rhino1_7R1/javadoc/org/mozilla/javascript/optimizer/package-summary.html @@ -0,0 +1,155 @@ + + + + + + +org.mozilla.javascript.optimizer (Rhino) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.mozilla.javascript.optimizer +

+ + + + + + + + + +
+Class Summary
ClassCompilerGenerates class files from script sources.
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/trunk/infrastructure/rhino1_7R1/javadoc/org/mozilla/javascript/optimizer/package-tree.html b/trunk/infrastructure/rhino1_7R1/javadoc/org/mozilla/javascript/optimizer/package-tree.html new file mode 100644 index 0000000..55e23d0 --- /dev/null +++ b/trunk/infrastructure/rhino1_7R1/javadoc/org/mozilla/javascript/optimizer/package-tree.html @@ -0,0 +1,151 @@ + + + + + + +org.mozilla.javascript.optimizer Class Hierarchy (Rhino) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.mozilla.javascript.optimizer +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+
    +
  • java.lang.Object +
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + -- cgit v1.2.3