|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.mjc.Main.Task
org.multijava.mjc.Main.ParseTask
This class parses a group of files, given by filenames as strings, and generates a forest of ASTs.
| Field Summary | |
private Main.ExpectedResult |
expected
The expected result of parsing files[0]. |
protected File[] |
files
|
protected CompilerPassEnterable[] |
trees
The result of parsing the file(s) on which this was instantiated. |
| Fields inherited from class org.multijava.mjc.Main.Task |
|
| Constructor Summary | |
Main.ParseTask(File fileName,
Main.ExpectedResult expected)
|
|
Main.ParseTask(ArrayList infiles)
|
|
| Method Summary | |
void |
execute()
This is final so that subclasses do not eliminate check for file already being processed. |
protected JCompilationUnitType |
parseFile(File file)
Parses the given file and returns an AST representing it. |
CompilerPassEnterable[] |
trees()
Returns the result of parsing the file(s) on which this was instantiated. |
| Methods inherited from class org.multijava.mjc.Main.Task |
compareTo, priority, sequenceID, setToMainSequenceID |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected File[] files
protected CompilerPassEnterable[] trees
private final Main.ExpectedResult expected
| Constructor Detail |
public Main.ParseTask(ArrayList infiles)
public Main.ParseTask(File fileName,
Main.ExpectedResult expected)
| Method Detail |
public final void execute()
parseFiles(File) method of
this.
protected JCompilationUnitType parseFile(File file)
file - the file to be parsed
requires file!=null && (* file.exists() *); // !FIXME!
public CompilerPassEnterable[] trees()
also requires completed;
trees in interface Main.Trees
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||