|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.plb4jedit.plb.ResourceManager
Description: manages Plb includes of a program to access all interesting resources of
a program (other includes, variable declaration, label definitions).
Notice that on an include not everything may be resolved because the resources are always relative
to the source-file and contain everything defined in the souce file and its includes (recursively).
Constructor Summary | |
ResourceManager(String plbPath,
PlbSource program)
constructs a ResourceManager from a PlbSource and a PLB_PATH. |
Method Summary | |
Set |
getIncludes()
|
TreeMap |
getLabels()
|
TreeMap |
getVariables()
|
Label |
searchLabel(String label)
searches for a label name and returns a label object, which gives access to the source file and line number where this label is defined. |
Variable |
searchVariable(String varname)
searches for a Variable name and returns a Variable object which gives access to the source file and line-number where this variable is defined. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ResourceManager(String plbPath, PlbSource program) throws FileNotFoundException, IOException
plbPath
- PLB_PATH to search for includes.program
- absolute path of the source file name.
FileNotFoundException
- if source can not be resolved or an include is not found in the path
IOException
- if source can not be resolved or an include is not found in the pathMethod Detail |
public Variable searchVariable(String varname)
varname
- to search for
public Label searchLabel(String label)
label
- to search for
public Set getIncludes()
public TreeMap getLabels()
public TreeMap getVariables()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |