[all packages]
[package pizza.compiler]
[class hierarchy]
[index]
public class pizza.compiler.Main
(source file: pizza/compiler/Main.pizza)
java.lang.Object
|
+----pizza.compiler.Main
The pure class interface.
public class Main
-
The Pizza Compiler access class.
Copyright (C) 1996,97 Martin Odersky. All rights reserved.
Permission is hereby granted to modify and use this software for research
and teaching purposes. Modification for commercial purposes requires
prior written permission by the author.
The software, or modifications thereof, may be redistributed only
if this copyright notice stays attached.
- Main()
-
- argument(String)
-
Sets compiler switches via the command line parameters
- compile(String[])
-
Compiles the given sourcefiles to classfiles.
Make sure init() is called once before
- date()
-
Returns the release date of this compiler version as a String.
- errorCount()
-
Returns the count of compilation errors.
- init()
- Makes global initializations that have to be set before a compilation.
- main(String[])
-
The commandline main method
- setClassPath(String)
-
Sets the classpath.
- setDestinationDir(String)
-
Sets the output directory.
- version()
-
Returns the version information as a String.
Main
public Main();
main
public static void main(String[] argv)
throws Throwable;
-
The commandline main method. On Windows systems the parameters are
transformed.
setDestinationDir
public static void setDestinationDir(String dir);
-
Sets the output directory.
setClassPath
public static void setClassPath(String dir);
-
Sets the classpath.
argument
public static boolean argument(String arg);
-
Sets compiler switches via the command line parameters.
Does NOT do multiple word parameters (-classpath, -d) and version
printout (-version).
- Returns:
- true if the argument is recognized
init
public static void init();
- Makes global initializations that have to be set before a compilation.
- See also:
- compile()
compile
public static void compile(String[] filenames);
-
Compiles the given sourcefiles to classfiles.
Make sure init() is called once before. To compile pizza code
the pizza flag has to be set (argument("-pizza").
- See also:
- init()
errorCount
public static int errorCount();
-
Returns the count of compilation errors.
version
public static String version();
-
Returns the version information as a String.
date
public static String date();
-
Returns the release date of this compiler version as a String.
[all packages]
[package pizza.compiler]
[class hierarchy]
[index]
pizza.compiler.Main.html