Public Member Functions | |
Unit (File file, InputStream stream) | |
Unit (File file) throws IOException | |
String | getName () |
synchronized void | drop () |
abstract void | parse () throws ParserException |
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 |
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.
cz::muni::stanse::codestructures::Unit::Unit | ( | ) | [inline, protected] |
Intentionally empty, called by derived class constructors.
cz::muni::stanse::codestructures::Unit::Unit | ( | File | file, | |
InputStream | stream | |||
) | [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. |
cz::muni::stanse::codestructures::Unit::Unit | ( | File | file | ) | throws IOException [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. |
String cz::muni::stanse::codestructures::Unit::getName | ( | ) | [inline] |
Document cz::muni::stanse::codestructures::Unit::getXMLDocument | ( | ) | [inline, protected] |
synchronized void cz::muni::stanse::codestructures::Unit::drop | ( | ) | [inline] |
Reimplemented in cz::muni::stanse::cparser::CUnit.
abstract void cz::muni::stanse::codestructures::Unit::parse | ( | ) | throws ParserException [pure virtual] |
Implemented in cz::muni::stanse::cparser::CUnit.
List<CFGHandle> cz::muni::stanse::codestructures::Unit::getCFGHandles | ( | ) | [inline, protected] |
CFG cz::muni::stanse::codestructures::Unit::getCFG | ( | String | functionName | ) | [inline, protected] |
File cz::muni::stanse::codestructures::Unit::fileName [protected] |
Name of the unit
InputStream cz::muni::stanse::codestructures::Unit::stream [protected] |
Stream to read from
Document cz::muni::stanse::codestructures::Unit::xmlDocument [protected] |
XML representation of the unit's AST
List<CFGHandle> cz::muni::stanse::codestructures::Unit::CFGHs = null [protected] |
List of units control flow graphs.
List<CFG> cz::muni::stanse::codestructures::Unit::CFGs = null [protected] |
boolean cz::muni::stanse::codestructures::Unit::available = false [protected] |
Already available/parsed?