Java Doc for AbstractJavaCompiler.java in  » Content-Management-System » apache-lenya-2.0 » org » apache » cocoon » components » language » programming » 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 » Content Management System » apache lenya 2.0 » org.apache.cocoon.components.language.programming.java 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.cocoon.components.language.programming.java.AbstractJavaCompiler

All known Subclasses:   org.apache.cocoon.components.language.programming.java.Jikes,  org.apache.cocoon.components.language.programming.java.Javac,
AbstractJavaCompiler
abstract public class AbstractJavaCompiler extends AbstractLogEnabled implements LanguageCompiler,Recyclable(Code)
This class implements the functionality common to all Java compilers.
author:
   Stefano Mazzocchi
version:
   CVS $Id: AbstractJavaCompiler.java 433543 2006-08-22 06:22:54Z crossley $
since:
   2.0


Field Summary
protected  Stringclasspath
    
protected  intcompilerComplianceLevel
     The version of the JVM for wich the code was written.
protected  StringdestDir
    
protected  Stringencoding
    
protected  InputStreamerrors
    
protected  Stringfile
    
protected  StringsrcDir
    


Method Summary
protected  ListfillArguments(List arguments)
    
public  ListgetErrors()
    
abstract protected  ListparseStream(BufferedReader errors)
    
public  voidrecycle()
     Reset all internal state.
public  voidsetClasspath(String classpath)
    
public  voidsetCompilerComplianceLevel(int compilerComplianceLevel)
    
public  voidsetDestination(String destDir)
    
public  voidsetEncoding(String encoding)
    
public  voidsetFile(String file)
    
public  voidsetSource(String srcDir)
    
protected  String[]toStringArray(List arguments)
    

Field Detail
classpath
protected String classpath(Code)
The classpath to be used for compilation



compilerComplianceLevel
protected int compilerComplianceLevel(Code)
The version of the JVM for wich the code was written. i.e: 130 = Java 1.3, 140 = Java 1.4 and 150 = Java 1.5



destDir
protected String destDir(Code)
The name of the directory to contain the resulting object program file



encoding
protected String encoding(Code)
The encoding of the source program or null to use the platform's default encoding



errors
protected InputStream errors(Code)
The input stream to output compilation errors



file
protected String file(Code)
The source program filename



srcDir
protected String srcDir(Code)
The name of the directory containing the source program file





Method Detail
fillArguments
protected List fillArguments(List arguments)(Code)
Fill the arguments taken by the Java compiler
Parameters:
  arguments - The list of compilation arguments The prepared list of compilation arguments



getErrors
public List getErrors() throws IOException(Code)
Return the list of errors generated by this compilation The list of errors generated by this compilation
exception:
  IOException - If an error occurs during message collection



parseStream
abstract protected List parseStream(BufferedReader errors) throws IOException(Code)
Parse the compiler error stream to produce a list of CompilerErrors
Parameters:
  errors - The error stream The list of compiler error messages
exception:
  IOException - If an error occurs during message collection



recycle
public void recycle()(Code)
Reset all internal state. This method is called by the component manager before this component is return to its pool.



setClasspath
public void setClasspath(String classpath)(Code)
Set the classpath to be used for this compilation
Parameters:
  classpath - The classpath to be used for this compilation



setCompilerComplianceLevel
public void setCompilerComplianceLevel(int compilerComplianceLevel)(Code)
Set the version of the java source code to be compiled
Parameters:
  compilerComplianceLevel - The version of the JVM for wich the code was written.i.e: 130 = Java 1.3, 140 = Java 1.4 and 150 = Java 1.5
since:
   2.1.7



setDestination
public void setDestination(String destDir)(Code)
Set the name of the directory to contain the resulting object program file
Parameters:
  destDir - The name of the directory to contain the resulting objectprogram file



setEncoding
public void setEncoding(String encoding)(Code)
Set the encoding of the input source file or null to use the platform's default encoding
Parameters:
  encoding - The encoding of the input source file or nullto use the platform's default encoding



setFile
public void setFile(String file)(Code)
Set the name of the file containing the source program
Parameters:
  file - The name of the file containing the source program



setSource
public void setSource(String srcDir)(Code)
Set the name of the directory containing the source program file
Parameters:
  srcDir - The name of the directory containing the source program file



toStringArray
protected String[] toStringArray(List arguments)(Code)
Copy arguments to a string array
Parameters:
  arguments - The compiler arguments A string array containing compilation arguments



w_w__w___._j___a___va2__s_.__c_om__ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.