|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoscript.compiler.CompilerScope
This class helps the compiler track declarations of variables within a
scope, in order to optimize resolving references to variables by caching
and, when possible, statically resolving the reference in order to avoid
performing the normal hashtable lookup(s). It is also responsible for
generating the Scope.createMember(java.lang.String, int)
and Scope.lookupInScope(java.lang.String)
code, so that the rest of the compiler does not need to worry about what
optimization strategy (if any) is used to resolve references.
Note that this class is fairly tightly coupled to CompilerVisitor
.
It would be an inner class if it were not for file size issues.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |