openjava.ptree.util
Class ScopeHandler
java.lang.Object
|
+--openjava.ptree.util.ParseTreeVisitor
|
+--openjava.ptree.util.EvaluationShuttle
|
+--openjava.ptree.util.ScopeHandler
- Direct Known Subclasses:
- ClassCollector, QueryExpander, SubqueryFinder, TypeNameQualifier, VariableBinder
- public abstract class ScopeHandler
- extends EvaluationShuttle
Refinement of EvaluationShuttle
which automatically pushes and
pops the current scope.
- Since:
- %SOFTWARE% 1.0
- Version:
- 1.0
- Author:
- Michiaki Tatsubori
- See Also:
ParseTree
,
ParseTreeVisitor
,
EvaluationShuttle
Methods inherited from class openjava.ptree.util.EvaluationShuttle |
evaluateDown, evaluateDown, evaluateDown, evaluateDown, evaluateDown, evaluateDown, evaluateDown, evaluateDown, evaluateDown, evaluateDown, evaluateDown, evaluateDown, evaluateDown, evaluateDown, evaluateDown, evaluateDown, evaluateDown, evaluateDown, evaluateDown, evaluateDown, evaluateDown, evaluateDown, evaluateDown, evaluateDown, evaluateDown, evaluateDown, evaluateDown, evaluateDown, evaluateDown, evaluateDown, evaluateDown, evaluateDown, evaluateDown, evaluateDown, evaluateDown, evaluateDown, evaluateDown, evaluateDown, evaluateDown, evaluateDown, evaluateDown, evaluateDown, evaluateDown, evaluateDown, evaluateUp, evaluateUp, evaluateUp, evaluateUp, evaluateUp, evaluateUp, evaluateUp, evaluateUp, evaluateUp, evaluateUp, evaluateUp, evaluateUp, evaluateUp, evaluateUp, evaluateUp, evaluateUp, evaluateUp, evaluateUp, evaluateUp, evaluateUp, evaluateUp, evaluateUp, evaluateUp, evaluateUp, evaluateUp, evaluateUp, evaluateUp, evaluateUp, evaluateUp, evaluateUp, evaluateUp, evaluateUp, evaluateUp, evaluateUp, evaluateUp, evaluateUp, evaluateUp, evaluateUp, evaluateUp, evaluateUp, evaluateUp, evaluateUp, evaluateUp, evaluateUp, getEnvironment, setEnvironment, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
env_nest
private Stack env_nest
ScopeHandler
public ScopeHandler(Environment base_env)
pushClosedEnvironment
protected final void pushClosedEnvironment()
push
protected final void push(Environment env)
pop
protected final void pop()
evaluateDown
public CompilationUnit evaluateDown(CompilationUnit ptree)
throws ParseTreeException
- Overrides:
evaluateDown
in class EvaluationShuttle
ParseTreeException
evaluateDown
public ClassDeclaration evaluateDown(ClassDeclaration ptree)
throws ParseTreeException
- Overrides:
evaluateDown
in class EvaluationShuttle
ParseTreeException
evaluateDown
public MemberDeclaration evaluateDown(MethodDeclaration ptree)
throws ParseTreeException
- Overrides:
evaluateDown
in class EvaluationShuttle
ParseTreeException
evaluateDown
public MemberDeclaration evaluateDown(ConstructorDeclaration ptree)
throws ParseTreeException
- Overrides:
evaluateDown
in class EvaluationShuttle
ParseTreeException
evaluateDown
public MemberDeclaration evaluateDown(MemberInitializer ptree)
throws ParseTreeException
- Overrides:
evaluateDown
in class EvaluationShuttle
ParseTreeException
evaluateDown
public Statement evaluateDown(Block ptree)
throws ParseTreeException
- Overrides:
evaluateDown
in class EvaluationShuttle
ParseTreeException
evaluateDown
public Statement evaluateDown(SwitchStatement ptree)
throws ParseTreeException
- Overrides:
evaluateDown
in class EvaluationShuttle
ParseTreeException
evaluateDown
public Statement evaluateDown(IfStatement ptree)
throws ParseTreeException
- Overrides:
evaluateDown
in class EvaluationShuttle
ParseTreeException
evaluateDown
public Statement evaluateDown(WhileStatement ptree)
throws ParseTreeException
- Overrides:
evaluateDown
in class EvaluationShuttle
ParseTreeException
evaluateDown
public Statement evaluateDown(DoWhileStatement ptree)
throws ParseTreeException
- Overrides:
evaluateDown
in class EvaluationShuttle
ParseTreeException
evaluateDown
public Statement evaluateDown(ForStatement ptree)
throws ParseTreeException
- Overrides:
evaluateDown
in class EvaluationShuttle
ParseTreeException
evaluateDown
public Statement evaluateDown(TryStatement ptree)
throws ParseTreeException
- Overrides:
evaluateDown
in class EvaluationShuttle
ParseTreeException
evaluateDown
public Statement evaluateDown(SynchronizedStatement ptree)
throws ParseTreeException
- Overrides:
evaluateDown
in class EvaluationShuttle
ParseTreeException
evaluateDown
public Expression evaluateDown(QueryExpression ptree)
throws ParseTreeException
- Overrides:
evaluateDown
in class EvaluationShuttle
ParseTreeException
evaluateUp
public CompilationUnit evaluateUp(CompilationUnit ptree)
throws ParseTreeException
- Overrides:
evaluateUp
in class EvaluationShuttle
ParseTreeException
evaluateUp
public ClassDeclaration evaluateUp(ClassDeclaration ptree)
throws ParseTreeException
- Overrides:
evaluateUp
in class EvaluationShuttle
ParseTreeException
evaluateUp
public MemberDeclaration evaluateUp(MethodDeclaration ptree)
throws ParseTreeException
- Overrides:
evaluateUp
in class EvaluationShuttle
ParseTreeException
evaluateUp
public MemberDeclaration evaluateUp(ConstructorDeclaration ptree)
throws ParseTreeException
- Overrides:
evaluateUp
in class EvaluationShuttle
ParseTreeException
evaluateUp
public MemberDeclaration evaluateUp(MemberInitializer ptree)
throws ParseTreeException
- Overrides:
evaluateUp
in class EvaluationShuttle
ParseTreeException
evaluateUp
public Statement evaluateUp(Block ptree)
throws ParseTreeException
- Overrides:
evaluateUp
in class EvaluationShuttle
ParseTreeException
evaluateUp
public Statement evaluateUp(SwitchStatement ptree)
throws ParseTreeException
- Overrides:
evaluateUp
in class EvaluationShuttle
ParseTreeException
evaluateUp
public Statement evaluateUp(IfStatement ptree)
throws ParseTreeException
- Overrides:
evaluateUp
in class EvaluationShuttle
ParseTreeException
evaluateUp
public Statement evaluateUp(WhileStatement ptree)
throws ParseTreeException
- Overrides:
evaluateUp
in class EvaluationShuttle
ParseTreeException
evaluateUp
public Statement evaluateUp(DoWhileStatement ptree)
throws ParseTreeException
- Overrides:
evaluateUp
in class EvaluationShuttle
ParseTreeException
evaluateUp
public Statement evaluateUp(ForStatement ptree)
throws ParseTreeException
- Overrides:
evaluateUp
in class EvaluationShuttle
ParseTreeException
evaluateUp
public Statement evaluateUp(TryStatement ptree)
throws ParseTreeException
- Overrides:
evaluateUp
in class EvaluationShuttle
ParseTreeException
evaluateUp
public Statement evaluateUp(SynchronizedStatement ptree)
throws ParseTreeException
- Overrides:
evaluateUp
in class EvaluationShuttle
ParseTreeException
evaluateUp
public Expression evaluateUp(QueryExpression ptree)
- Overrides:
evaluateUp
in class EvaluationShuttle