Java Doc for JavaCompiler.java in  » EJB-Server-resin-3.1.5 » resin » com » caucho » java » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » EJB Server resin 3.1.5 » resin » com.caucho.java 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.caucho.java.JavaCompiler

JavaCompiler
public class JavaCompiler (Code)
Compiles Java source, returning the loaded class.


Field Summary
final static  L10NL
    
protected  ArrayList<String>_args
    
protected  String_charEncoding
    
protected  long_maxCompileTime
    
final static  Loggerlog
    


Method Summary
public  voidcompile(String fileName, LineMap lineMap)
     Compiles the class.
public  voidcompile(String fileName, LineMap lineMap, boolean ifModified)
     Compiles the class.
public  voidcompileBatch(String[] files)
     Compiles a batch list of classes.
public  voidcompileIfModified(String fileName, LineMap lineMap)
     Compiles the class.
protected  voidcompileInt(String[] path, LineMap lineMap)
    
public static  JavaCompilercreate()
     Creates a new compiler.
public static  JavaCompilercreate(ClassLoader loader)
     Creates a new compiler.
public  ArrayList<String>getArgs()
     Returns the ArrayList of arguments.
 PathgetClassDir()
     Returns the directory where compiled classes go.
 StringgetClassDirName()
     Returns the path to the class directory.
public  ClassLoadergetClassLoader()
     Sets the class loader used to load the compiled class and to grab the classpath from.
public  StringgetClassPath()
     Returns the classpath for the compiler.
public  StringgetCompiler()
     Gets the compiler name, e.g.
public  StringgetEncoding()
     Returns the encoding.
public  longgetMaxCompileTime()
     Returns the maximum time allowed for an external compilation.
public  PathgetSourceDir()
     Returns the directory where compiled classes go.
 StringgetSourceDirName()
     Returns the path to the class directory.
public  StringgetSourceExtension()
     Gets the source extension.
public static  StringmangleName(String name)
     Mangles the path into a valid Java class name.
public  voidmergeSmap(Path classPath, Path smapPath)
    
public  voidsetArgs(String argString)
     Sets any additional arguments for the compiler.
public  voidsetArgs(ArrayList<String> args)
    
public  voidsetClassDir(Path path)
     Sets the directory where compiled classes go.
public  voidsetClassLoader(ClassLoader loader)
     Sets the class loader used to load the compiled class and to grab the classpath from.
public  voidsetClassPath(String classPath)
     Sets the class path for compilation.
public  voidsetCompileParent(boolean compileParent)
    
public  voidsetCompiler(String compiler)
     Sets the compiler name, e.g.
public  voidsetEncoding(String encoding)
     Sets the Java encoding for the compiler.
public  voidsetExtraClassPath(String classPath)
     Sets an extra class path for compilation.
public  voidsetMaxBatch(int maxBatch)
     Sets the maximum time allowed for an external compilation.
public  voidsetMaxCompileTime(long maxCompileTime)
     Sets the maximum time allowed for an external compilation.
public  voidsetSourceDir(Path path)
     Sets the directory the java source comes from.
public  voidsetSourceExtension(String ext)
     Sets the source extension.

Field Detail
L
final static L10N L(Code)



_args
protected ArrayList<String> _args(Code)



_charEncoding
protected String _charEncoding(Code)



_maxCompileTime
protected long _maxCompileTime(Code)



log
final static Logger log(Code)





Method Detail
compile
public void compile(String fileName, LineMap lineMap) throws IOException, ClassNotFoundException(Code)
Compiles the class. className is a fully qualified Java class, e.g. work.jsp.Test
Parameters:
  fileName - Java source name -- in VFS format
Parameters:
  lineMap - mapping from generated class back to the source class compiled class



compile
public void compile(String fileName, LineMap lineMap, boolean ifModified) throws IOException, ClassNotFoundException(Code)
Compiles the class. className is a fully qualified Java class, e.g. work.jsp.Test
Parameters:
  fileName - Java source name -- in VFS format
Parameters:
  lineMap - mapping from generated class back to the source class
Parameters:
  ifModified - compile only if the *.java is modified compiled class



compileBatch
public void compileBatch(String[] files) throws IOException, ClassNotFoundException(Code)
Compiles a batch list of classes. compiled class



compileIfModified
public void compileIfModified(String fileName, LineMap lineMap) throws IOException, ClassNotFoundException(Code)
Compiles the class. className is a fully qualified Java class, e.g. work.jsp.Test
Parameters:
  fileName - Java source name -- in VFS format
Parameters:
  lineMap - mapping from generated class back to the source class compiled class



compileInt
protected void compileInt(String[] path, LineMap lineMap) throws IOException, JavaCompileException(Code)



create
public static JavaCompiler create()(Code)
Creates a new compiler.



create
public static JavaCompiler create(ClassLoader loader)(Code)
Creates a new compiler.
Parameters:
  loader - the parent class loader for the compiler.



getArgs
public ArrayList<String> getArgs()(Code)
Returns the ArrayList of arguments.



getClassDir
Path getClassDir()(Code)
Returns the directory where compiled classes go.



getClassDirName
String getClassDirName()(Code)
Returns the path to the class directory.



getClassLoader
public ClassLoader getClassLoader()(Code)
Sets the class loader used to load the compiled class and to grab the classpath from.



getClassPath
public String getClassPath()(Code)
Returns the classpath for the compiler.



getCompiler
public String getCompiler()(Code)
Gets the compiler name, e.g. jikes.



getEncoding
public String getEncoding()(Code)
Returns the encoding.



getMaxCompileTime
public long getMaxCompileTime()(Code)
Returns the maximum time allowed for an external compilation.



getSourceDir
public Path getSourceDir()(Code)
Returns the directory where compiled classes go.



getSourceDirName
String getSourceDirName()(Code)
Returns the path to the class directory.



getSourceExtension
public String getSourceExtension()(Code)
Gets the source extension.



mangleName
public static String mangleName(String name)(Code)
Mangles the path into a valid Java class name.



mergeSmap
public void mergeSmap(Path classPath, Path smapPath)(Code)



setArgs
public void setArgs(String argString)(Code)
Sets any additional arguments for the compiler.



setArgs
public void setArgs(ArrayList<String> args)(Code)



setClassDir
public void setClassDir(Path path)(Code)
Sets the directory where compiled classes go.
Parameters:
  path - representing the class dir.



setClassLoader
public void setClassLoader(ClassLoader loader)(Code)
Sets the class loader used to load the compiled class and to grab the classpath from.



setClassPath
public void setClassPath(String classPath)(Code)
Sets the class path for compilation. Normally, the classpath from the class loader will be sufficient.



setCompileParent
public void setCompileParent(boolean compileParent)(Code)



setCompiler
public void setCompiler(String compiler)(Code)
Sets the compiler name, e.g. jikes.



setEncoding
public void setEncoding(String encoding)(Code)
Sets the Java encoding for the compiler.



setExtraClassPath
public void setExtraClassPath(String classPath)(Code)
Sets an extra class path for compilation.



setMaxBatch
public void setMaxBatch(int maxBatch)(Code)
Sets the maximum time allowed for an external compilation.



setMaxCompileTime
public void setMaxCompileTime(long maxCompileTime)(Code)
Sets the maximum time allowed for an external compilation.



setSourceDir
public void setSourceDir(Path path)(Code)
Sets the directory the java source comes from.
Parameters:
  path - representing the source dir.



setSourceExtension
public void setSourceExtension(String ext)(Code)
Sets the source extension.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.