|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcetus.hir.SymbolTools
public final class SymbolTools
| Constructor Summary | |
|---|---|
SymbolTools()
|
|
| Method Summary | |
|---|---|
static void |
linkSymbol(Traversable tr)
Makes links from all IDExpression objects in the program to
their corresponding declarators while generating warnings if there is
any undeclared variables or functions. |
static void |
searchAndLink(Identifier id)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SymbolTools()
| Method Detail |
|---|
public static void linkSymbol(Traversable tr)
IDExpression objects in the program to
their corresponding declarators while generating warnings if there is
any undeclared variables or functions. This method is called with the
whole program, before any Cetus passes by default and provides a short cut
to the declaration point, which enables faster access to the declaration
when necessary. Pass writers can call this routine after changing a certain
part of the program, e.g., a specific program section within a scope, to
reflect the change due to new insertion of declaration.
tr - the input cetus IR.public static void searchAndLink(Identifier id)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||