|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.prorefactor.macrolevel.ListingParser
public class ListingParser
For parsing Proparse's "preprocessor listing" file. Generates a "macro tree". The macro tree's root is an IncludeRef object. The root IncludeRef represents the main.p source file.
| Field Summary | |
|---|---|
java.util.HashMap<java.lang.Integer,java.lang.String> |
fileIndexes
Map of fileIndex (Integer) to fileName (String) |
| Constructor Summary | |
|---|---|
ListingParser(java.lang.String listingFile)
|
|
| Method Summary | |
|---|---|
IncludeRef |
getRoot()
Get the macro tree's root - an IncludeRef object which represents the main.p source file. |
static void |
main(java.lang.String[] args)
Just for build/test/debug |
void |
parse()
|
MacroRef[] |
sourceArray()
Get an array of the MacroRef objects, which would map to the SOURCENUM attribute from JPNode. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.util.HashMap<java.lang.Integer,java.lang.String> fileIndexes
| Constructor Detail |
|---|
public ListingParser(java.lang.String listingFile)
| Method Detail |
|---|
public IncludeRef getRoot()
public static void main(java.lang.String[] args)
public void parse()
throws java.io.IOException,
RefactorException
java.io.IOException
RefactorExceptionpublic MacroRef[] sourceArray()
MacroLevel.sourceArray(MacroRef)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||