|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectclassUtils.javassist.preproc.Compiler
public class Compiler
This is a preprocessor for Java source programs using annotated import declarations.
import class-name by assistant-name [(arg1, arg2, ...)]
To process this annotation, run this class as follows:
java javassist.preproc.Compiler sample.j
This command produces sample.java, which only includes
regular import declarations. Also, the Javassist program
specified by assistant-name is executed so that it produces
class files under the ./tmpjvst directory. The class
specified by assistant-name must implement
javassist.preproc.Assistant.
Assistant| Constructor Summary | |
|---|---|
Compiler(java.lang.String inputname)
Constructs a Compiler with a source file. |
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
|
void |
process()
Starts preprocessing. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Compiler(java.lang.String inputname)
throws CannotCompileException
Compiler with a source file.
inputname - the name of the source file.
CannotCompileException| Method Detail |
|---|
public void process()
throws java.io.IOException,
CannotCompileException
java.io.IOException
CannotCompileExceptionpublic static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||