|
mjc | ||||||||||
| 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
This class implements the entry point of the MultiJava compiler. Use
java org.multijava.mjc.Main --help to get usage options.
| Nested Class Summary | |
class |
Main.CheckInitializerTask
This class typechecks the initializers of the declarations in the source code. |
class |
Main.CheckInterfaceTask
This class checks the interfaces of the declarations in the source code. |
static class |
Main.ContextBehavior
|
static class |
Main.DFilter
This class is used with the Directory.list method to list the subdirectories in a directory (ignoring the special case of the 'CVS' subdirectory). |
protected static class |
Main.ExpectedGF
|
protected static class |
Main.ExpectedIndifferent
|
protected static class |
Main.ExpectedResult
This class represents the expected result of parsing a file. |
protected static class |
Main.ExpectedType
|
static class |
Main.Filter
This class is used with the Directory.list method to list those files in a directory that this program is interested in processing - in this case, all those that end in '.java' |
class |
Main.ParseTask
This class parses a group of files, given by filenames as strings, and generates a forest of ASTs. |
class |
Main.PreprocessTask
This class preprocesses type and generic function imports and groups external methods. |
class |
Main.PrettyPrintTask
This class pretty prints the trees in the AST forest. |
class |
Main.ResolveSpecializerTask
This class resolves value specializer expressions to the compile-time constants they represent. |
class |
Main.ResolveTopMethodTask
This class resolves the top methods of all method declarations. |
class |
Main.Task
This abstract class represents a single task to be performed by the compiler. |
static class |
Main.TaskTimes
|
class |
Main.TranslateMJTask
This class pretty prints the trees in the AST forest. |
class |
Main.TreeProcessingTask
This class is subclasses by classes that represent tasks operating on a forest of ASTs. |
static interface |
Main.Trees
|
class |
Main.TypecheckTask
This class typechecks the source code. |
| Field Summary | |
protected Object |
activeSequenceID
SequenceID of the currently active Task. |
protected int |
activeTaskPriority
The priority of the top-most active task, where top-most is defined in terms of the recursive invocations of processTaskQueue on the call stack. |
protected boolean |
allowUniverseAnnotations
Enable the generation of extended bytecode that contains the Universe annotations. |
protected boolean |
allowUniverseBytecode
Enable the generation of extended bytecode that contains the Universe annotations. |
protected boolean |
allowUniverseChecks
Whether we should check the program for correctness according to the universe type system. |
protected boolean |
allowUniverseDynChecks
Enable the generation of dynamic checks that verify that the universe invariant holds during the execution. |
protected boolean |
allowUniverseKeywords
Whether the special tokens for the universe type system should be allowed. |
protected boolean |
allowUniversePurity
Whether we should check the purity of methods. |
private HashSet |
alreadyParsedSet
A set of files previously parsed by the compiler for which the results were not discarded. |
protected String |
appName
The name of this app as it should be given in error or information messages. |
protected ArrayList |
classes
|
protected boolean |
codeGenNeeded
|
private static boolean |
compilationInterrupted
|
private static Main.ContextBehavior |
contextBehavior
|
protected HashSet |
contextsCreated
Stores all the compilation unit contexts created for this compiler and not yet disposed of. |
private HashMap |
currentlyParsingRelation
A relation mapping files currently being parsed by the compiler to the expected results. |
protected Destination |
destination
|
protected boolean |
errorFound
Records whether an error was found during processing of a task. |
protected int |
errorLimit
|
private HashMap |
failedParsingRelation
A relation mapping files already parsed by the compiler to the results that were expected but NOT found. |
protected boolean |
filesFound
This simply serves to pass some additional information out of the call of parseArguments, in order to aid error reporting. |
private WarningFilter |
filter
|
private Object |
mainSequenceID
Stores an alias to the sequenceID of the task sequence created for the files given as command line arguments. |
protected int |
mostSevereWarningIssued
|
private static int |
nextUniqueTaskNumber
A unique number that will be assigned to the next task created. |
protected MjcCommonOptions |
options
|
protected boolean |
parseJavadoc
When the following flag is false, the parser ignores javadoc comments (as it does regular comments); when the flag is true, javadoc comments are collected as part of the AST; derived classes should set this flag after the super class constructor is called, but before parsing is begun. |
static int |
PRI_CHECK_INITIALIZER
|
static int |
PRI_CHECK_INTERFACE
|
static int |
PRI_PARSE
|
static int |
PRI_PREPROCESS
|
static int |
PRI_PRETTY_PRINT
|
static int |
PRI_RESOLVE_SPECIALIZER
|
static int |
PRI_TOP_METHODS
|
static int |
PRI_TRANSLATE_MJ
|
static int |
PRI_TYPECHECK
|
protected TreeSet |
taskQueue
Priority queue of tasks to be completed. |
protected boolean |
uncheckedWarningsIssued
Whether any unchecked warning has been issued during compilation. |
static String |
UNIVERSE_ANNOTATIONS
AHS: Command line option that chooses Java 5 annotations as output style for universe modifiers. |
static String |
UNIVERSE_BYTECODE
Command line option to enable allowUniverseBytecode. |
static String |
UNIVERSE_CHECKS
Command line option to enable allowUniverseChecks. |
static String |
UNIVERSE_DYNCHECKS
Command line option to enable allowUniverseDynChecks. |
static String |
UNIVERSE_FULL
Command line option to make all universe features enabled. |
static String |
UNIVERSE_NO
Command line option to disable all universe features. |
static String |
UNIVERSE_PARSE
Command line option to enable allowUniverseKeywords. |
static String |
UNIVERSE_PURITY
Command line option to enable allowUniversePurity. |
protected String |
universeVersion
Universe encoding version. |
| 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()
|
|
Main(ModifierUtility modUtil)
|
|
| Method Summary | |
protected Object |
activeSequenceID()
Returns the sequence ID of the currently active task. |
private void |
addFiles(File directory,
ArrayList infiles)
This is a helper function that (a) adds any relevant files in the directory to 'infiles', and (b) if we are searching directories recursively, calls addFiles on any subdirectories of 'directory'. |
void |
adoptCompilationUnitContext(CCompilationUnitContextType childContext)
Signals to this compiler that the given context is no longer needed. |
static void |
bugReportBoilerplate(boolean isReportBelow)
|
static void |
bugReportProperty(String key)
|
static void |
bugReportRequest(Throwable e,
String[] args)
|
void |
catchUp(File filename)
Compiles the named file (using the options of the current compilation session) up to the same compilation pass as the currently active task in the task queue. |
void |
catchUp(JTypeDeclarationType decl)
Compiles the given AST (using the options of the current compilation session) up to the same compilation pass as the currently active task in the task queue. |
void |
catchUpGF(File filename,
String qualifiedName)
This version of catchUp also parses the given file through the TaskQueue passes as far as other files have been processed, but: after the ParseTask phase, checks that the given qualifiedName actually has a successful generic function definition that is now loaded. |
void |
catchUpType(File filename,
String qualifiedName)
This version of catchUp also parses the given file through the TaskQueue passes as far as other files have been processed, but discards the result if the file did not contain a declaration of the type qualifiedName. |
String |
checkPackageName(String packageName,
boolean quiet)
Checks whether a syntactically valid package name actually exists, and returns the directory location of the root of the package or null if there is no package by that name on the sourcepath or classpath. |
void |
classToGenerate(CSourceClass clazz)
Adds a class to the list of classes to be generated in bytecode. |
static boolean |
compile(String[] args)
Second entry point |
static boolean |
compile(String[] args,
MjcCommonOptions opt,
OutputStream os)
Entry point for the GUI |
static Main.ContextBehavior |
contextBehavior()
|
CCompilationUnitContextType |
createCompilationUnitContext(JCompilationUnitType jc,
CCompilationUnit cunit)
Creates a compilation unit context for this compiler. |
protected Main.Task |
createTaskAfter(Main.Task oldTask)
This method uses the dynamic type of oldTask along
with the command line options to determine what task to add to
the task queue after the given task completes. |
protected void |
currentlyParsingFor(File f,
Main.ExpectedResult expected)
Registers with the current session that the given file is being parsed in hopes of finding the given expected result. |
private Set |
currentlyParsingSetFor(File f)
Returns the set of expected results for processing the given file. |
protected String[] |
expandAtFiles(String[] infiles)
Expands a list of files containing the @files syntax into a list of literal arguments. |
boolean |
experimentalArrayHandling()
|
protected void |
failedParsing(File f,
JCompilationUnitType cu)
Called when a file is parsed and found to not contain the expected declarations. |
protected FilenameFilter |
filenameFilter()
Overridable method that provides a filter to list all the relevant files in a directory; for mjc this is all files whose names end in ".java". |
Main.Task |
firstCheckingTask(JTypeDeclarationType decl)
Generates the first task in the compilation sequence for an already formed AST. |
Main.ParseTask |
firstTask(File filename,
Main.ExpectedResult expected)
Generates the first task in the compilation sequence. |
Main.ParseTask |
firstTask(ArrayList infiles)
Generates the first task in the compilation sequence. |
void |
genCode()
Generates the code for all the classes. |
boolean |
Generic()
|
boolean |
Generic(CClass host)
|
CSourceClass[] |
getClasses()
Returns the classes to generate |
protected WarningFilter |
getDefaultFilter()
Return an instance of the default warning filter. |
protected WarningFilter |
getFilter()
Return the warning filter. |
protected MjcCommonOptions |
getOptionsInstance(MjcCommonOptions opt)
Used as a hook for other subclasses of mjc to override. |
protected String |
getWarningFilterNameFromOptions(MjcCommonOptions opts)
Get the warning filter's class name from the options structure. |
void |
handleDirectories(ArrayList dirs,
ArrayList infiles)
This processes a list of directories found in the command-line, adding files to infiles as the overridable method sees fit; in this case any java files found in the directory are added. |
boolean |
handleNonOptions(ArrayList infiles)
This method does any processing of the non-option arguments on the command-line, by mutating the given ArrayList (of String) containing all those arguments; this implementation replaces any directories by files within the directory that are eligible for processing. |
File |
handlePackageName(String packageName,
ArrayList dirs)
Finds the package named by 'packageName' and adds it to the list of File objects in 'dirs'. |
void |
handlePackages(ArrayList packages,
ArrayList dirs,
ArrayList infiles)
Processes all the package names found on the command-line, altering the list of directories or files as appropriate. |
protected boolean |
hasAlreadyFailedToParseFor(File f,
Main.ExpectedResult expected)
Returns true if we have already tried and failed to parse the given file for the given expected result. |
protected boolean |
hasAlreadySuccessfullyParsed(File f)
Returns true iff the given file has already been parsed and the results were not discarded. |
protected void |
initialize()
Initialize the compiler (read classpath, initialize type descriptors) |
protected void |
initSession()
Initializes this compilation session using the default "class loader". |
protected void |
initSession(TypeLoader l)
Initializes this compilation session using the given type loader. |
static void |
interruptCompilation()
Interrupts an executing compilation process. |
protected boolean |
isAnExpectedResult(File f,
JCompilationUnitType cu)
Returns true iff the given compilation unit contains the results that were expected from parsing the given file. |
protected boolean |
isCurrentlyParsingFor(File f,
Main.ExpectedResult expected)
Returns true iff the given file is currently being parsed in hopes of finding the given expected result. |
static void |
main(String[] args)
Entry point |
Object |
mainSequenceID()
|
protected MjcCommonOptions |
makeOptionsInstance()
Overridable method that returns an instance of an object that will process command-line options. |
boolean |
nonNullTypes()
|
protected void |
noteError()
Register that an error was found during processing of a task. |
int |
optimizeCode()
|
MjcCommonOptions |
options()
|
boolean |
parseArguments(String[] args,
ArrayList infiles)
Parses the argument list. |
protected void |
parseAtFile(File f,
ArrayList v)
Does the actual tokenizing of the @-file, and puts each element into the list v. |
boolean |
parseComments()
Returns true iff comments should be parsed (false if to be skipped) |
void |
prettyPrint(CompilerPassEnterable tree)
|
protected void |
processTaskQueue()
Reentrant procedure processes tasks from the task queue until all tasks have been completed whose priority is higher than the current priority when this was reentered. |
boolean |
quietMode()
Returns true if quiet mode is enabled. |
boolean |
RecommendedWarning(String warning)
Returns whether the recommended warnings type identified by warning is enabled in the compiler. |
void |
reportTrouble(Exception trouble)
Reports a trouble (error or warning). |
void |
reportTroubleFiltered(Exception trouble)
This method is intended for overriding by subclasses - all error and warning output (except that filtered out by the -w or -filter option) should pass through here. |
boolean |
RMJ()
|
boolean |
run(String[] args)
Runs a compilation session |
boolean |
run(String[] args,
MjcCommonOptions opt,
OutputStream os)
Runs a compilation session for the GUI |
protected boolean |
runCompilation(long startTime)
Runs the compilation session for both the command line and GUI |
protected boolean |
runInitialization(String[] args)
Invoked from within the method run to do the argument parsing and compiler setup prior to actually parsing files via the task mechanism; returns true if no errors are encountered during initialization; if false is returned the initialization is not necessarily complete. |
boolean |
runParser(String[] args,
MjcCommonOptions opt,
ArrayList infiles)
Runs the argument parser only so the GUI can process options from the command line |
protected void |
runSetInitialTasks(ArrayList infiles)
Sets up the initial tasks that start the parsing. |
boolean |
safeMath()
|
protected void |
setAllowUniverses(String option)
From the given String parameter determine what universe checks should be enabled. |
protected static void |
setContextBehavior(Main.ContextBehavior cb)
|
void |
setMainSequenceID(Object sequenceID)
|
void |
setUniverseChecks(boolean check)
Used to temporarily disable universe checks, to not cause any confusion with dynamic universe type checks. |
void |
setUniversePurity(boolean check)
Used to temporarily disable purity checks, to not cause any confusion with dynamic universe type checks. |
protected FilenameFilter |
subdirectoryFilter()
Overridable method that provides a filter to list all the relevant subdirectories in a directory; for mjc this is all subdirectories that are not named 'CVS'. |
protected void |
successfullyParsed(File f)
Called when a file is parsed and found to contain the expected declarations. |
protected boolean |
suppressWarning(CWarning warning)
Returns true if the given warning should be suppressed. |
protected void |
taskQueueEmptied()
This method is called by run(String[]) when all
reentrant invocations of processTaskQueue() have been
exited and in this implementation the method generates any
required bytecode. |
boolean |
universeBytecode()
Returns whether the extended bytecode for the universe type system should be enabled. |
boolean |
universeBytecodeAnnotations()
Returns whether to use Java 5 annotations to represent universe modifiers in generated classfiles. |
boolean |
universeChecks()
Returns whether the checking of universes should be enabled. |
boolean |
universeDynChecks()
Returns whether the dynamic checks for the universe type system should be enabled. |
boolean |
universeKeywords()
Returns whether the new keywords for the universe type system should be enabled. |
boolean |
universePurity()
Returns whether the (conservative) purity checking of methods should be enabled. |
String |
universeVersion()
Returns the version of the encoding used to the encode the universe type modifiers. |
static boolean |
validPackageName(String name)
Returns true if the string is syntactically a valid package name. |
boolean |
verboseMode()
|
| 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 |
private static Main.ContextBehavior contextBehavior
protected boolean filesFound
public static final int PRI_PARSE
public static final int PRI_PREPROCESS
public static final int PRI_CHECK_INTERFACE
public static final int PRI_CHECK_INITIALIZER
public static final int PRI_RESOLVE_SPECIALIZER
public static final int PRI_TOP_METHODS
public static final int PRI_TYPECHECK
public static final int PRI_PRETTY_PRINT
public static final int PRI_TRANSLATE_MJ
protected TreeSet taskQueue
Main.Taskprotected int activeTaskPriority
protected boolean errorFound
protected int errorLimit
protected int mostSevereWarningIssued
protected boolean uncheckedWarningsIssued
protected MjcCommonOptions options
private WarningFilter filter
protected ArrayList classes
protected Destination destination
protected boolean codeGenNeeded
protected HashSet contextsCreated
createCompilationUnitContext(JCompilationUnitType, CCompilationUnit),
adoptCompilationUnitContext(CCompilationUnitContextType)protected boolean parseJavadoc
private Object mainSequenceID
private invariant (\forall Task t; t != null; t.sequenceID() == mainSequenceID <==> (* t does not belong to a task sequence used to catch up recursively loaded files *));
protected Object activeSequenceID
private HashMap currentlyParsingRelation
private HashMap failedParsingRelation
private HashSet alreadyParsedSet
private static int nextUniqueTaskNumber
protected String appName
private static boolean compilationInterrupted
protected boolean allowUniverseKeywords
protected boolean allowUniverseChecks
protected boolean allowUniversePurity
protected boolean allowUniverseDynChecks
protected boolean allowUniverseBytecode
protected boolean allowUniverseAnnotations
protected String universeVersion
public static final String UNIVERSE_FULL
public static final String UNIVERSE_DYNCHECKS
public static final String UNIVERSE_BYTECODE
public static final String UNIVERSE_ANNOTATIONS
public static final String UNIVERSE_PARSE
public static final String UNIVERSE_CHECKS
public static final String UNIVERSE_PURITY
public static final String UNIVERSE_NO
| Constructor Detail |
public Main()
public Main(ModifierUtility modUtil)
| Method Detail |
public static void main(String[] args)
args - the command line argumentspublic static boolean compile(String[] args)
public boolean run(String[] args)
args - the command line arguments
public static void bugReportRequest(Throwable e,
String[] args)
public static void bugReportBoilerplate(boolean isReportBelow)
public static void bugReportProperty(String key)
public boolean runParser(String[] args,
MjcCommonOptions opt,
ArrayList infiles)
public static boolean compile(String[] args,
MjcCommonOptions opt,
OutputStream os)
args - the command line argumentsopt - the compiler options from the GUIos - the output stream for the compiler messages
public boolean run(String[] args,
MjcCommonOptions opt,
OutputStream os)
args - the non-options: files, packages, and directoriesopt - the compiler optionsos - the output stream to use for output messages - if null, no change is madeprotected MjcCommonOptions getOptionsInstance(MjcCommonOptions opt)
opt - The compiler optionspublic static final void interruptCompilation()
protected boolean runInitialization(String[] args)
args - The array of command-line arguments
protected boolean runCompilation(long startTime)
startTime - The time the compilation started in the run method
protected String[] expandAtFiles(String[] infiles)
protected void parseAtFile(File f,
ArrayList v)
protected void runSetInitialTasks(ArrayList infiles)
protected void initSession()
protected final void initSession(TypeLoader l)
public static Main.ContextBehavior contextBehavior()
protected static void setContextBehavior(Main.ContextBehavior cb)
public boolean parseArguments(String[] args,
ArrayList infiles)
public boolean handleNonOptions(ArrayList infiles)
public static boolean validPackageName(String name)
public void handleDirectories(ArrayList dirs,
ArrayList infiles)
dirs - a ArrayList of File objectsinfiles - a ArrayList of String names of files
public void handlePackages(ArrayList packages,
ArrayList dirs,
ArrayList infiles)
packages - the ArrayList of String containing a list of package namesdirs - a ArrayList of File containing a list of directory locationsinfiles - a ArrayList of String containing a list of file paths
public File handlePackageName(String packageName,
ArrayList dirs)
packageName - the name of a package from the command-linedirs - a list of File objects that are directories to be processed
public String checkPackageName(String packageName,
boolean quiet)
protected FilenameFilter filenameFilter()
protected FilenameFilter subdirectoryFilter()
private void addFiles(File directory,
ArrayList infiles)
protected MjcCommonOptions makeOptionsInstance()
public CCompilationUnitContextType createCompilationUnitContext(JCompilationUnitType jc,
CCompilationUnit cunit)
requires cunit != null; ensures \result != null && contextsCreated.contains(\result);
public void adoptCompilationUnitContext(CCompilationUnitContextType childContext)
requires childContext != null && contextsCreated.contains(childContext); ensures !contextsCreated.contains(childContext);
public Main.ParseTask firstTask(ArrayList infiles)
requires infiles != null && (\forall Object o; infiles.contains(o); o instanceof String);
public Main.ParseTask firstTask(File filename,
Main.ExpectedResult expected)
requires filename != null && expected != null;
protected final void processTaskQueue()
protected void taskQueueEmptied()
run(String[]) when all
reentrant invocations of processTaskQueue() have been
exited and in this implementation the method generates any
required bytecode. This method should be overridden by
subclasses to perform final work after completion of all tasks.
public void catchUp(File filename)
filename - the file descriptor of the file to be compiled
also requires filename != null && (* filename.canRead() *); // !FIXME!
public void catchUpType(File filename,
String qualifiedName)
requires qualifiedName != null; requires filename != null;
public void catchUpGF(File filename,
String qualifiedName)
requires qualifiedName != null; requires filename != null;
public void catchUp(JTypeDeclarationType decl)
Compiles the given AST (using the options of the current compilation session) up to the same compilation pass as the currently active task in the task queue. Adds the result to the set of compilation units to be processed to completion.
Since in this statically overloaded method the argument is an AST for a type declaration some of the initial passes are skipped.
This entry point is accessed for compiling type declaration statements and anonymous class instantiation expressions.
decl - the AST for the type declaration to be compiled
requires decl != null;
public Main.Task firstCheckingTask(JTypeDeclarationType decl)
requires decl != null && decl.arePassParametersCached;
public void genCode()
protected void initialize()
public boolean verboseMode()
Compiler
public int optimizeCode()
public boolean quietMode()
public boolean RMJ()
public boolean Generic()
public boolean Generic(CClass host)
public boolean RecommendedWarning(String warning)
warning is enabled in the compiler.
warning - The recommended warning type to check for.
public boolean safeMath()
public boolean nonNullTypes()
public boolean experimentalArrayHandling()
public boolean universeChecks()
allowUniverseCheckspublic void setUniverseChecks(boolean check)
check - enable/disable universe checks.
By scdaniel.public boolean universeKeywords()
allowUniverseKeywordspublic boolean universePurity()
allowUniversePuritypublic void setUniversePurity(boolean check)
check - enable/disable purity checks.public boolean universeDynChecks()
allowUniverseBytecodepublic boolean universeBytecode()
allowUniverseBytecodepublic boolean universeBytecodeAnnotations()
#unverseBytecodeAnnotationspublic String universeVersion()
universeVersionprotected void setAllowUniverses(String option)
public void reportTrouble(Exception trouble)
trouble - a description of the trouble to report.public void reportTroubleFiltered(Exception trouble)
trouble - An exception indicating the error or warning. This
will often be a PositionedError or FormattedException
containing information about a source location, but might
also be an unexpected exception that is thrown somewhere.protected boolean suppressWarning(CWarning warning)
protected WarningFilter getFilter()
protected String getWarningFilterNameFromOptions(MjcCommonOptions opts)
protected WarningFilter getDefaultFilter()
public boolean parseComments()
public CSourceClass[] getClasses()
public void classToGenerate(CSourceClass clazz)
requires clazz != null; assignable classes; ensures classes.contains(clazz);
protected final void currentlyParsingFor(File f,
Main.ExpectedResult expected)
requires f != null && expected != null;
protected final boolean isCurrentlyParsingFor(File f,
Main.ExpectedResult expected)
requires f != null && expected != null;
protected final boolean isAnExpectedResult(File f,
JCompilationUnitType cu)
requires f != null; requires (* currentlyParsingRelation.containsKey(getFilePath(f)) *);
private final Set currentlyParsingSetFor(File f)
currentlyParsingRelation and can be mutated to
change the set of expected results mapped to be the given file.
requires f != null;
protected final boolean hasAlreadyFailedToParseFor(File f,
Main.ExpectedResult expected)
protected final void failedParsing(File f,
JCompilationUnitType cu)
protected final void successfullyParsed(File f)
protected final boolean hasAlreadySuccessfullyParsed(File f)
requires f != null;
protected Main.Task createTaskAfter(Main.Task oldTask)
oldTask along
with the command line options to determine what task to add to
the task queue after the given task completes.
requires oldTask != null && oldTask.completed; ensures \result == null || (\result.sequenceID() == oldTask.sequenceID());
public void setMainSequenceID(Object sequenceID)
public Object mainSequenceID()
protected Object activeSequenceID()
null is returned.
public void prettyPrint(CompilerPassEnterable tree)
protected void noteError()
public MjcCommonOptions options()
|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||