|
UTJML | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.multijava.util.Utils
org.multijava.util.compiler.Compiler
org.multijava.mjc.Main
org.jmlspecs.checker.Main
org.jmlspecs.jmlrac.Main
edu.utep.cs.utjml.compiler.Main
public class Main
This class implements the entry point of the JML compiler. Use
java org.jmlspecs.checker.Main --help to get usage
options.
| Nested Class Summary | |
|---|---|
class |
Main.UtJmlParseTask
This class parses a group of files, given by filenames as strings, and generates a forest of ASTs. |
| Nested classes/interfaces inherited from class org.jmlspecs.jmlrac.Main |
|---|
Main.JavaParseTask, Main.JmlGenerateAssertionTask, Main.JmlPrettyPrintTask, Main.JmlWriteAssertionTask |
| Nested classes/interfaces inherited from class org.jmlspecs.checker.Main |
|---|
Main.JmlCheckAssignableTask, Main.JmlParseTask, Main.JmlTypecheckTask |
| Nested classes/interfaces inherited from class org.multijava.mjc.Main |
|---|
Main.CheckInitializerTask, Main.CheckInterfaceTask, Main.ContextBehavior, Main.DFilter, Main.ExpectedGF, Main.ExpectedIndifferent, Main.ExpectedResult, Main.ExpectedType, Main.ParseTask, Main.PreprocessTask, Main.PrettyPrintTask, Main.ResolveSpecializerTask, Main.ResolveTopMethodTask, Main.Task, Main.TaskTimes, Main.TranslateMJTask, Main.TreeProcessingTask, Main.Trees, Main.TypecheckTask |
| Field Summary | |
|---|---|
static UtJmlOptions |
utjmlOptions
Command-line options. |
| Fields inherited from class org.jmlspecs.jmlrac.Main |
|---|
isSecondRound, modUtil, PRI_GENERATE_ASSERTION, PRI_GENERATE_SYMBOL, racOptions |
| Fields inherited from class org.jmlspecs.checker.Main |
|---|
jmlOptions, refinedFileSequenceSet |
| Fields inherited from class org.multijava.util.compiler.Compiler |
|---|
PRINT_TO_ERR, PRINT_TO_OUT |
| Fields inherited from class org.multijava.util.Utils |
|---|
DBG_LEVEL_HIGH, DBG_LEVEL_LOW, DBG_LEVEL_NO |
| Constructor Summary | |
|---|---|
Main()
Constructs a JML RAC compiler with a default modifier utility. |
|
| Method Summary | |
|---|---|
JCompilationUnitType |
catchUpRefinedFile(File file)
Parses a file and returns the AST. |
static boolean |
compile(String[] args)
Second entry point. |
static boolean |
compile(String[] args,
UtJmlOptions opt,
OutputStream os)
Entry point for the GUI |
protected JmlRacGenerator |
createRacGenerator(RacOptions opt,
Main main)
|
protected void |
exposeOptions(JmlCommonOptions opt)
Sets the static field, jmlOptions, to the given
arugment so that typechecking routines can access command-line
options. |
Main.ParseTask |
firstTask(ArrayList infiles)
Generates the first task in the compilation sequence. |
Main.ParseTask |
firstTask(File filename,
Main.ExpectedResult expected)
Generates the first task in the compilation sequence. |
protected MjcCommonOptions |
getOptionsInstance(MjcCommonOptions opt)
Assigns opt to the local instance of RacOptions, assigns opt to an instance of jmlOptions in the checker, and returns opt as an instance of MjcCommonOptions so it can be assigned to the options variable in mjc's Main. |
static boolean |
hasOptionXcs()
Returns true if the -Xcs, call sequence, is
specified. |
static boolean |
hasOptionXtgen()
Returns true if the -Xtgen, test case generation, is
specified. |
protected void |
initSession()
Initializes the "class loader" for this compilation session. |
static void |
main(String[] args)
The entry point when starting this program from the command line. |
protected MjcCommonOptions |
makeOptionsInstance()
Creates an object to do the parsing of the command line arguments and to store the values of the flags and options so obtained (it does not actually do the argument parsing). |
| Methods inherited from class org.jmlspecs.jmlrac.Main |
|---|
classToGenerate, compile, createCompilationUnitContext, createTaskAfter, getFileMap, hasOptionXsymr, hasOptionXsymw, initSecondSession, isSpecMode, prepareSecondRound, setFileMap |
| Methods inherited from class org.jmlspecs.checker.Main |
|---|
canStopSequenceBeforeAllPasses, catchUpTask, compile, filenameFilter, getDefaultFilter, getWarningFilterNameFromOptions, hasOptionXobspure, hasUnsafeOpWarningOption, includeAllRefinedCUnits, initialize, isCommandLineFile, isSpecOrJmlMode, jmlNoBodyOK, makeRelative, parseArguments |
| Methods inherited from class org.multijava.util.compiler.Compiler |
|---|
getTimestamp, inform, inform, inform, inform, inform, inform, inform, inform, inform, modUtil, run, setOutputStream, verifyFiles, verifyFiles |
| Methods inherited from class org.multijava.util.Utils |
|---|
assertTrue, assertTrue, combineArrays, escapeString, escapeString, fail, fail, getFilePath, hasFlag, hasOtherFlags, parsePathParts, relativePathTo, splitQualifiedName, splitQualifiedName, stripJavaModifiers, stripNonJavaModifiers, stripPrivateModifier, unescapeString, vectorToArray, vectorToIntArray |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static UtJmlOptions utjmlOptions
invariant racOptions == options;
| Constructor Detail |
|---|
public Main()
| Method Detail |
|---|
public static void main(String[] args)
args - the command line argumentspublic static boolean compile(String[] args)
public static boolean compile(String[] args,
UtJmlOptions opt,
OutputStream os)
args - the file, package, and directory namesopt - the options for the toolos - the output stream for the compiler messagespublic Main.ParseTask firstTask(ArrayList infiles)
also requires infiles != null && (\forall Object o; infiles.contains(o); o instanceof String);
firstTask in class Main
public Main.ParseTask firstTask(File filename,
Main.ExpectedResult expected)
firstTask in class Mainprotected MjcCommonOptions makeOptionsInstance()
makeOptionsInstance in class MainRacOptionsprotected MjcCommonOptions getOptionsInstance(MjcCommonOptions opt)
getOptionsInstance in class Mainprotected void exposeOptions(JmlCommonOptions opt)
jmlOptions, to the given
arugment so that typechecking routines can access command-line
options.
assignable jmlOptions; ensures jmlOptions == opt;
exposeOptions in class Mainprotected void initSession()
initSession in class Mainpublic JCompilationUnitType catchUpRefinedFile(File file)
requires file != null;
catchUpRefinedFile in class Main
protected JmlRacGenerator createRacGenerator(RacOptions opt,
Main main)
createRacGenerator in class Mainpublic static boolean hasOptionXcs()
-Xcs, call sequence, is
specified.
public static boolean hasOptionXtgen()
-Xtgen, test case generation, is
specified.
|
UTJML | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||