|
ESC/Java2 © 2003,2004,2005 David Cok and Joseph Kiniry © 2005 UCD Dublin © 2003,2004 Radboud University Nijmegen © 1999,2000 Compaq Computer Corporation © 1997,1998,1999 Digital Equipment Corporation All Rights Reserved |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavafe.reader.Reader
javafe.reader.BinReader
A BinReader is a Reader that reads in CompilationUnits from binary files (.class files).
BinReaders do not cache the results of their reading and always return spec files.
TypeDecls produced by BinReaders always have specOnly set.
This version is not known to work on Java 1.1 class files. Later versions are planned to return CompilationUnits with stubs where inner classes should be. It is then the caller's responsibility to call this class repeatedly to obtain all the inner classes then stitch them together in a single seamless CompilationUnit. (Most likely, a new class will be introduced to perform this function, mapping P.N's to Compilation Units.
Constructor Summary | |
BinReader()
|
Method Summary | |
static void |
main(java.lang.String[] args)
* Test methods: * * |
CompilationUnit |
read(GenericFile target,
boolean avoidSpec)
Attempt to read and parse a CompilationUnit from *binary* target. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BinReader()
Method Detail |
public CompilationUnit read(GenericFile target, boolean avoidSpec)
We always return a spec file. (avoidSpec is ignored)
This function is not cached.
Target must be non-null.
read
in class Reader
target
- The source to be readavoidSpec
- If true, then bodies are parsed as well, if possible;
if false, no method bodies are parsed.
public static void main(java.lang.String[] args)
|
ESC/Java2 © 2003,2004,2005 David Cok and Joseph Kiniry © 2005 UCD Dublin © 2003,2004 Radboud University Nijmegen © 1999,2000 Compaq Computer Corporation © 1997,1998,1999 Digital Equipment Corporation All Rights Reserved |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |