|
Stanse
-1
|
Holds all the relevant data about the code in one compilation unit (usually a file). More...


Public Member Functions | |
| Unit (File file, InputStream stream) | |
| Unit (File file) throws IOException | |
| String | getName () |
| synchronized void | drop () |
| abstract void | parse () throws ParserException |
| Map< String, String > | getAliases () |
Protected Member Functions | |
| Unit () | |
| Document | getXMLDocument () |
| List< CFGHandle > | getCFGHandles () |
| CFG | getCFG (String functionName) |
Protected Attributes | |
| File | fileName |
| InputStream | stream |
| Document | xmlDocument |
| List< CFGHandle > | CFGHs = null |
| List< CFG > | CFGs = null |
| boolean | available = false |
| Map< String, String > | aliases = null |
Holds all the relevant data about the code in one compilation unit (usually a file).
This is intended to be a language-independent superclass. For a concrete language create an appropriate subclass. The constructor calls the appropriate parser and fills the CFG and AST structures.
|
inlineprotected |
Intentionally empty, called by derived class constructors.
|
inline |
Calls the appropriate parser(s) to fill in the data members.
| file | Name of the unit. Needs to be supplied explicitly, because it is not derivable from a stream. |
| stream | Stream to read the compilation unit from. |
| IOException | If there any problems with IO. |
| ParserException | In case of parsing problems not related to IO. |
|
inline |
Calls the appropriate parser(s) to fill in the data members.
| file | Name of the file containing the compilation unit. |
| IOException | If there any problems with IO. |
| ParserException | In case of parsing problems not related to IO. |
|
inline |
|
inline |
|
inlineprotected |
|
inlineprotected |
|
inline |
|
inlineprotected |
|
abstract |
|
protected |
A mapping from machine-readable names to human-readable ones.
|
protected |
Already available/parsed?
|
protected |
List of units control flow graphs.
|
protected |
|
protected |
Name of the unit
|
protected |
Stream to read from
|
protected |
XML representation of the unit's AST
1.8.6