org.jmlspecs.checker
Class Main.JmlParseTask
java.lang.Object
org.multijava.mjc.Main.Task
org.multijava.mjc.Main.ParseTask
org.jmlspecs.checker.Main.JmlParseTask
- All Implemented Interfaces:
- Comparable, Main.Trees
- Enclosing class:
- Main
- public class Main.JmlParseTask
- extends Main.ParseTask
This class parses a group of files, given by filenames as
strings, and generates a forest of ASTs.
| Fields inherited from class org.multijava.mjc.Main.Task |
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
isRefinedCUnit
private boolean isRefinedCUnit
Main.JmlParseTask
public Main.JmlParseTask(ArrayList infiles)
Main.JmlParseTask
public Main.JmlParseTask(File fileName,
Main.ExpectedResult expected)
Main.JmlParseTask
public Main.JmlParseTask(File fileName,
boolean isRefinedCUnit,
Main.ExpectedResult expected)
- Constructs a new parse task for a refined file. The
boolean flag indicates that this is a refined compilation
unit. That information is passed to the parser and is used
to control how the types defined in the file are registered
in the environment.
parseFile
protected JCompilationUnitType parseFile(File file)
- Parses the given file and returns an AST representing it.
- Overrides:
parseFile in class Main.ParseTask
- Parameters:
file - the file to be parsed
- Returns:
- the compilation unit defined by this file, or
null if there was an error reading the file
also
requires file!=null && file.exists();
JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.