tip.analysis
Class ReversedDepthFirstAdapter

java.lang.Object
  extended by tip.analysis.AnalysisAdapter
      extended by tip.analysis.ReversedDepthFirstAdapter
All Implemented Interfaces:
Analysis

public class ReversedDepthFirstAdapter
extends AnalysisAdapter

ReversedDepthFirstAdapter extends the AnalysisAdapter to provide a backward depth-first traversal of the AST. The case-methods are overriding to implement the traversal itself. By calling the in-method for the specific node before traversing the child nodes and calling the out-method for the node after traversing the child nodes, DepthFirstAdapter provides a handle for each node at both the traversal down and up the AST. The children of a node are traversed in the reverse order of the order they are defined in the grammar. case-methods for tokens are not overriden, since tokens have no children and thus are leaves in the AST.


Constructor Summary
ReversedDepthFirstAdapter()
           
 
Method Summary
 void caseABinopExp(ABinopExp node)
          Calls inABinopExp(ABinopExp), traverses the children of ABinopExp in the reverse order of the order they are defined in the grammar, and finally calls outABinopExp(ABinopExp).
 void caseABlock(ABlock node)
          Calls inABlock(ABlock), traverses the children of ABlock in the reverse order of the order they are defined in the grammar, and finally calls outABlock(ABlock).
 void caseABlockStm(ABlockStm node)
          Calls inABlockStm(ABlockStm), traverses the children of ABlockStm in the reverse order of the order they are defined in the grammar, and finally calls outABlockStm(ABlockStm).
 void caseABody(ABody node)
          Calls inABody(ABody), traverses the children of ABody in the reverse order of the order they are defined in the grammar, and finally calls outABody(ABody).
 void caseADeclStm(ADeclStm node)
          Calls inADeclStm(ADeclStm), traverses the children of ADeclStm in the reverse order of the order they are defined in the grammar, and finally calls outADeclStm(ADeclStm).
 void caseADerefExp(ADerefExp node)
          Calls inADerefExp(ADerefExp), traverses the children of ADerefExp in the reverse order of the order they are defined in the grammar, and finally calls outADerefExp(ADerefExp).
 void caseADivideBinop(ADivideBinop node)
          Calls inADivideBinop(ADivideBinop), traverses the children of ADivideBinop in the reverse order of the order they are defined in the grammar, and finally calls outADivideBinop(ADivideBinop).
 void caseAEqBinop(AEqBinop node)
          Calls inAEqBinop(AEqBinop), traverses the children of AEqBinop in the reverse order of the order they are defined in the grammar, and finally calls outAEqBinop(AEqBinop).
 void caseAFuncDecl(AFuncDecl node)
          Calls inAFuncDecl(AFuncDecl), traverses the children of AFuncDecl in the reverse order of the order they are defined in the grammar, and finally calls outAFuncDecl(AFuncDecl).
 void caseAFunctionCallExp(AFunctionCallExp node)
          Calls inAFunctionCallExp(AFunctionCallExp), traverses the children of AFunctionCallExp in the reverse order of the order they are defined in the grammar, and finally calls outAFunctionCallExp(AFunctionCallExp).
 void caseAFunctionPtrCallExp(AFunctionPtrCallExp node)
          Calls inAFunctionPtrCallExp(AFunctionPtrCallExp), traverses the children of AFunctionPtrCallExp in the reverse order of the order they are defined in the grammar, and finally calls outAFunctionPtrCallExp(AFunctionPtrCallExp).
 void caseAGtBinop(AGtBinop node)
          Calls inAGtBinop(AGtBinop), traverses the children of AGtBinop in the reverse order of the order they are defined in the grammar, and finally calls outAGtBinop(AGtBinop).
 void caseAIfThenElseStm(AIfThenElseStm node)
          Calls inAIfThenElseStm(AIfThenElseStm), traverses the children of AIfThenElseStm in the reverse order of the order they are defined in the grammar, and finally calls outAIfThenElseStm(AIfThenElseStm).
 void caseAIfThenStm(AIfThenStm node)
          Calls inAIfThenStm(AIfThenStm), traverses the children of AIfThenStm in the reverse order of the order they are defined in the grammar, and finally calls outAIfThenStm(AIfThenStm).
 void caseAInputExp(AInputExp node)
          Calls inAInputExp(AInputExp), traverses the children of AInputExp in the reverse order of the order they are defined in the grammar, and finally calls outAInputExp(AInputExp).
 void caseAIntConstExp(AIntConstExp node)
          Calls inAIntConstExp(AIntConstExp), traverses the children of AIntConstExp in the reverse order of the order they are defined in the grammar, and finally calls outAIntConstExp(AIntConstExp).
 void caseALocalDecl(ALocalDecl node)
          Calls inALocalDecl(ALocalDecl), traverses the children of ALocalDecl in the reverse order of the order they are defined in the grammar, and finally calls outALocalDecl(ALocalDecl).
 void caseAMallocExp(AMallocExp node)
          Calls inAMallocExp(AMallocExp), traverses the children of AMallocExp in the reverse order of the order they are defined in the grammar, and finally calls outAMallocExp(AMallocExp).
 void caseAMinusBinop(AMinusBinop node)
          Calls inAMinusBinop(AMinusBinop), traverses the children of AMinusBinop in the reverse order of the order they are defined in the grammar, and finally calls outAMinusBinop(AMinusBinop).
 void caseANullExp(ANullExp node)
          Calls inANullExp(ANullExp), traverses the children of ANullExp in the reverse order of the order they are defined in the grammar, and finally calls outANullExp(ANullExp).
 void caseAOutputStm(AOutputStm node)
          Calls inAOutputStm(AOutputStm), traverses the children of AOutputStm in the reverse order of the order they are defined in the grammar, and finally calls outAOutputStm(AOutputStm).
 void caseAPlusBinop(APlusBinop node)
          Calls inAPlusBinop(APlusBinop), traverses the children of APlusBinop in the reverse order of the order they are defined in the grammar, and finally calls outAPlusBinop(APlusBinop).
 void caseAPointerExp(APointerExp node)
          Calls inAPointerExp(APointerExp), traverses the children of APointerExp in the reverse order of the order they are defined in the grammar, and finally calls outAPointerExp(APointerExp).
 void caseAProgram(AProgram node)
          Calls inAProgram(AProgram), traverses the children of AProgram in the reverse order of the order they are defined in the grammar, and finally calls outAProgram(AProgram).
 void caseAReturnStm(AReturnStm node)
          Calls inAReturnStm(AReturnStm), traverses the children of AReturnStm in the reverse order of the order they are defined in the grammar, and finally calls outAReturnStm(AReturnStm).
 void caseATimesBinop(ATimesBinop node)
          Calls inATimesBinop(ATimesBinop), traverses the children of ATimesBinop in the reverse order of the order they are defined in the grammar, and finally calls outATimesBinop(ATimesBinop).
 void caseAVarExp(AVarExp node)
          Calls inAVarExp(AVarExp), traverses the children of AVarExp in the reverse order of the order they are defined in the grammar, and finally calls outAVarExp(AVarExp).
 void caseAWhileStm(AWhileStm node)
          Calls inAWhileStm(AWhileStm), traverses the children of AWhileStm in the reverse order of the order they are defined in the grammar, and finally calls outAWhileStm(AWhileStm).
 void caseStart(Start node)
          Calls inStart(Start), traverses the children of Start in the reverse order of the order they are defined in the grammar, and finally calls outStart(Start).
 void caseAAssignPtrStm(AAssignPtrStm node)
          Calls inAAssignPtrStm(AAssignPtrStm), traverses the children of AAssignPtrStm in the reverse order of the order they are defined in the grammar, and finally calls outAAssignPtrStm(AAssignPtrStm).
 void caseAAssignVarStm(AAssignVarStm node)
          Calls inAAssignVarStm(AAssignVarStm), traverses the children of AAssignVarStm in the reverse order of the order they are defined in the grammar, and finally calls outAAssignVarStm(AAssignVarStm).
 void defaultIn(Node node)
          Default case for in-calls.
 void defaultInPBinop(PBinop node)
          Default case for in-calls from PBinop nodes.
 void defaultInPBlock(PBlock node)
          Default case for in-calls from PBlock nodes.
 void defaultInPBody(PBody node)
          Default case for in-calls from PBody nodes.
 void defaultInPDecl(PDecl node)
          Default case for in-calls from PDecl nodes.
 void defaultInPExp(PExp node)
          Default case for in-calls from PExp nodes.
 void defaultInPProgram(PProgram node)
          Default case for in-calls from PProgram nodes.
 void defaultInPStm(PStm node)
          Default case for in-calls from PStm nodes.
 void defaultOut(Node node)
          Default case for out-calls.
 void defaultOutPBinop(PBinop node)
          Default case for out-calls from PBinop nodes.
 void defaultOutPBlock(PBlock node)
          Default case for out-calls from PBlock nodes.
 void defaultOutPBody(PBody node)
          Default case for out-calls from PBody nodes.
 void defaultOutPDecl(PDecl node)
          Default case for out-calls from PDecl nodes.
 void defaultOutPExp(PExp node)
          Default case for out-calls from PExp nodes.
 void defaultOutPProgram(PProgram node)
          Default case for out-calls from PProgram nodes.
 void defaultOutPStm(PStm node)
          Default case for out-calls from PStm nodes.
 void defaultPBinop(PBinop node)
          Not invoked since #casePBinop(PBinop) is overridden.
 void defaultPBlock(PBlock node)
          Not invoked since #casePBlock(PBlock) is overridden.
 void defaultPBody(PBody node)
          Not invoked since #casePBody(PBody) is overridden.
 void defaultPDecl(PDecl node)
          Not invoked since #casePDecl(PDecl) is overridden.
 void defaultPExp(PExp node)
          Not invoked since #casePExp(PExp) is overridden.
 void defaultPProgram(PProgram node)
          Not invoked since #casePProgram(PProgram) is overridden.
 void defaultPStm(PStm node)
          Not invoked since #casePStm(PStm) is overridden.
 void inABinopExp(ABinopExp node)
          Called by caseABinopExp(ABinopExp) before traversing the children of ABinopExp.
 void inABlock(ABlock node)
          Called by caseABlock(ABlock) before traversing the children of ABlock.
 void inABlockStm(ABlockStm node)
          Called by caseABlockStm(ABlockStm) before traversing the children of ABlockStm.
 void inABody(ABody node)
          Called by caseABody(ABody) before traversing the children of ABody.
 void inADeclStm(ADeclStm node)
          Called by caseADeclStm(ADeclStm) before traversing the children of ADeclStm.
 void inADerefExp(ADerefExp node)
          Called by caseADerefExp(ADerefExp) before traversing the children of ADerefExp.
 void inADivideBinop(ADivideBinop node)
          Called by caseADivideBinop(ADivideBinop) before traversing the children of ADivideBinop.
 void inAEqBinop(AEqBinop node)
          Called by caseAEqBinop(AEqBinop) before traversing the children of AEqBinop.
 void inAFuncDecl(AFuncDecl node)
          Called by caseAFuncDecl(AFuncDecl) before traversing the children of AFuncDecl.
 void inAFunctionCallExp(AFunctionCallExp node)
          Called by caseAFunctionCallExp(AFunctionCallExp) before traversing the children of AFunctionCallExp.
 void inAFunctionPtrCallExp(AFunctionPtrCallExp node)
          Called by caseAFunctionPtrCallExp(AFunctionPtrCallExp) before traversing the children of AFunctionPtrCallExp.
 void inAGtBinop(AGtBinop node)
          Called by caseAGtBinop(AGtBinop) before traversing the children of AGtBinop.
 void inAIfThenElseStm(AIfThenElseStm node)
          Called by caseAIfThenElseStm(AIfThenElseStm) before traversing the children of AIfThenElseStm.
 void inAIfThenStm(AIfThenStm node)
          Called by caseAIfThenStm(AIfThenStm) before traversing the children of AIfThenStm.
 void inAInputExp(AInputExp node)
          Called by caseAInputExp(AInputExp) before traversing the children of AInputExp.
 void inAIntConstExp(AIntConstExp node)
          Called by caseAIntConstExp(AIntConstExp) before traversing the children of AIntConstExp.
 void inALocalDecl(ALocalDecl node)
          Called by caseALocalDecl(ALocalDecl) before traversing the children of ALocalDecl.
 void inAMallocExp(AMallocExp node)
          Called by caseAMallocExp(AMallocExp) before traversing the children of AMallocExp.
 void inAMinusBinop(AMinusBinop node)
          Called by caseAMinusBinop(AMinusBinop) before traversing the children of AMinusBinop.
 void inANullExp(ANullExp node)
          Called by caseANullExp(ANullExp) before traversing the children of ANullExp.
 void inAOutputStm(AOutputStm node)
          Called by caseAOutputStm(AOutputStm) before traversing the children of AOutputStm.
 void inAPlusBinop(APlusBinop node)
          Called by caseAPlusBinop(APlusBinop) before traversing the children of APlusBinop.
 void inAPointerExp(APointerExp node)
          Called by caseAPointerExp(APointerExp) before traversing the children of APointerExp.
 void inAProgram(AProgram node)
          Called by caseAProgram(AProgram) before traversing the children of AProgram.
 void inAReturnStm(AReturnStm node)
          Called by caseAReturnStm(AReturnStm) before traversing the children of AReturnStm.
 void inATimesBinop(ATimesBinop node)
          Called by caseATimesBinop(ATimesBinop) before traversing the children of ATimesBinop.
 void inAVarExp(AVarExp node)
          Called by caseAVarExp(AVarExp) before traversing the children of AVarExp.
 void inAWhileStm(AWhileStm node)
          Called by caseAWhileStm(AWhileStm) before traversing the children of AWhileStm.
 void inStart(Start node)
          Called by caseStart(Start) before traversing the children of Start.
 void inAAssignPtrStm(AAssignPtrStm node)
          Called by caseAAssignPtrStm(AAssignPtrStm) before traversing the children of AAssignPtrStm.
 void inAAssignVarStm(AAssignVarStm node)
          Called by caseAAssignVarStm(AAssignVarStm) before traversing the children of AAssignVarStm.
 void outABinopExp(ABinopExp node)
          Called by caseABinopExp(ABinopExp) after traversing the children of ABinopExp.
 void outABlock(ABlock node)
          Called by caseABlock(ABlock) after traversing the children of ABlock.
 void outABlockStm(ABlockStm node)
          Called by caseABlockStm(ABlockStm) after traversing the children of ABlockStm.
 void outABody(ABody node)
          Called by caseABody(ABody) after traversing the children of ABody.
 void outADeclStm(ADeclStm node)
          Called by caseADeclStm(ADeclStm) after traversing the children of ADeclStm.
 void outADerefExp(ADerefExp node)
          Called by caseADerefExp(ADerefExp) after traversing the children of ADerefExp.
 void outADivideBinop(ADivideBinop node)
          Called by caseADivideBinop(ADivideBinop) after traversing the children of ADivideBinop.
 void outAEqBinop(AEqBinop node)
          Called by caseAEqBinop(AEqBinop) after traversing the children of AEqBinop.
 void outAFuncDecl(AFuncDecl node)
          Called by caseAFuncDecl(AFuncDecl) after traversing the children of AFuncDecl.
 void outAFunctionCallExp(AFunctionCallExp node)
          Called by caseAFunctionCallExp(AFunctionCallExp) after traversing the children of AFunctionCallExp.
 void outAFunctionPtrCallExp(AFunctionPtrCallExp node)
          Called by caseAFunctionPtrCallExp(AFunctionPtrCallExp) after traversing the children of AFunctionPtrCallExp.
 void outAGtBinop(AGtBinop node)
          Called by caseAGtBinop(AGtBinop) after traversing the children of AGtBinop.
 void outAIfThenElseStm(AIfThenElseStm node)
          Called by caseAIfThenElseStm(AIfThenElseStm) after traversing the children of AIfThenElseStm.
 void outAIfThenStm(AIfThenStm node)
          Called by caseAIfThenStm(AIfThenStm) after traversing the children of AIfThenStm.
 void outAInputExp(AInputExp node)
          Called by caseAInputExp(AInputExp) after traversing the children of AInputExp.
 void outAIntConstExp(AIntConstExp node)
          Called by caseAIntConstExp(AIntConstExp) after traversing the children of AIntConstExp.
 void outALocalDecl(ALocalDecl node)
          Called by caseALocalDecl(ALocalDecl) after traversing the children of ALocalDecl.
 void outAMallocExp(AMallocExp node)
          Called by caseAMallocExp(AMallocExp) after traversing the children of AMallocExp.
 void outAMinusBinop(AMinusBinop node)
          Called by caseAMinusBinop(AMinusBinop) after traversing the children of AMinusBinop.
 void outANullExp(ANullExp node)
          Called by caseANullExp(ANullExp) after traversing the children of ANullExp.
 void outAOutputStm(AOutputStm node)
          Called by caseAOutputStm(AOutputStm) after traversing the children of AOutputStm.
 void outAPlusBinop(APlusBinop node)
          Called by caseAPlusBinop(APlusBinop) after traversing the children of APlusBinop.
 void outAPointerExp(APointerExp node)
          Called by caseAPointerExp(APointerExp) after traversing the children of APointerExp.
 void outAProgram(AProgram node)
          Called by caseAProgram(AProgram) after traversing the children of AProgram.
 void outAReturnStm(AReturnStm node)
          Called by caseAReturnStm(AReturnStm) after traversing the children of AReturnStm.
 void outATimesBinop(ATimesBinop node)
          Called by caseATimesBinop(ATimesBinop) after traversing the children of ATimesBinop.
 void outAVarExp(AVarExp node)
          Called by caseAVarExp(AVarExp) after traversing the children of AVarExp.
 void outAWhileStm(AWhileStm node)
          Called by caseAWhileStm(AWhileStm) after traversing the children of AWhileStm.
 void outStart(Start node)
          Called by caseStart(Start) after traversing the children of Start.
 void outAAssignPtrStm(AAssignPtrStm node)
          Called by caseAAssignPtrStm(AAssignPtrStm) after traversing the children of AAssignPtrStm.
 void outAAssignVarStm(AAssignVarStm node)
          Called by caseAAssignVarStm(AAssignVarStm) after traversing the children of AAssignVarStm.
 
Methods inherited from class tip.analysis.AnalysisAdapter
caseEOF, caseTAnd, caseTAssign, caseTComma, caseTCommentBlock, caseTCommentSingle, caseTDiv, caseTElse, caseTEq, caseTGt, caseTIdentifier, caseTIf, caseTInput, caseTIntegerConst, caseTLBrace, caseTLPar, caseTMalloc, caseTMinus, caseTNull, caseTOutput, caseTPlus, caseTRBrace, caseTReturn, caseTRPar, caseTSemicolon, caseTStar, caseTVar, caseTWhile, caseTWhiteSpace, defaultNode, defaultToken, getIn, getOut, setIn, setOut
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReversedDepthFirstAdapter

public ReversedDepthFirstAdapter()
Method Detail

inStart

public void inStart(Start node)
Called by caseStart(Start) before traversing the children of Start.

Parameters:
node - the visited Start node

outStart

public void outStart(Start node)
Called by caseStart(Start) after traversing the children of Start.

Parameters:
node - the visited Start node

defaultIn

public void defaultIn(Node node)
Default case for in-calls.

Parameters:
node - the visited Node

defaultOut

public void defaultOut(Node node)
Default case for out-calls.

Parameters:
node - the visited Node

caseStart

public void caseStart(Start node)
Calls inStart(Start), traverses the children of Start in the reverse order of the order they are defined in the grammar, and finally calls outStart(Start).

Specified by:
caseStart in interface Analysis
Overrides:
caseStart in class AnalysisAdapter
Parameters:
node - the visited Start node

inAProgram

public void inAProgram(AProgram node)
Called by caseAProgram(AProgram) before traversing the children of AProgram.

Parameters:
node - the visited AProgram node

outAProgram

public void outAProgram(AProgram node)
Called by caseAProgram(AProgram) after traversing the children of AProgram.

Parameters:
node - the visited AProgram node

caseAProgram

public void caseAProgram(AProgram node)
Calls inAProgram(AProgram), traverses the children of AProgram in the reverse order of the order they are defined in the grammar, and finally calls outAProgram(AProgram).

Specified by:
caseAProgram in interface Analysis
Overrides:
caseAProgram in class AnalysisAdapter
Parameters:
node - the visited AProgram node

inAFuncDecl

public void inAFuncDecl(AFuncDecl node)
Called by caseAFuncDecl(AFuncDecl) before traversing the children of AFuncDecl.

Parameters:
node - the visited AFuncDecl node

outAFuncDecl

public void outAFuncDecl(AFuncDecl node)
Called by caseAFuncDecl(AFuncDecl) after traversing the children of AFuncDecl.

Parameters:
node - the visited AFuncDecl node

caseAFuncDecl

public void caseAFuncDecl(AFuncDecl node)
Calls inAFuncDecl(AFuncDecl), traverses the children of AFuncDecl in the reverse order of the order they are defined in the grammar, and finally calls outAFuncDecl(AFuncDecl).

Specified by:
caseAFuncDecl in interface Analysis
Overrides:
caseAFuncDecl in class AnalysisAdapter
Parameters:
node - the visited AFuncDecl node

inALocalDecl

public void inALocalDecl(ALocalDecl node)
Called by caseALocalDecl(ALocalDecl) before traversing the children of ALocalDecl.

Parameters:
node - the visited ALocalDecl node

outALocalDecl

public void outALocalDecl(ALocalDecl node)
Called by caseALocalDecl(ALocalDecl) after traversing the children of ALocalDecl.

Parameters:
node - the visited ALocalDecl node

caseALocalDecl

public void caseALocalDecl(ALocalDecl node)
Calls inALocalDecl(ALocalDecl), traverses the children of ALocalDecl in the reverse order of the order they are defined in the grammar, and finally calls outALocalDecl(ALocalDecl).

Specified by:
caseALocalDecl in interface Analysis
Overrides:
caseALocalDecl in class AnalysisAdapter
Parameters:
node - the visited ALocalDecl node

inABody

public void inABody(ABody node)
Called by caseABody(ABody) before traversing the children of ABody.

Parameters:
node - the visited ABody node

outABody

public void outABody(ABody node)
Called by caseABody(ABody) after traversing the children of ABody.

Parameters:
node - the visited ABody node

caseABody

public void caseABody(ABody node)
Calls inABody(ABody), traverses the children of ABody in the reverse order of the order they are defined in the grammar, and finally calls outABody(ABody).

Specified by:
caseABody in interface Analysis
Overrides:
caseABody in class AnalysisAdapter
Parameters:
node - the visited ABody node

inABlock

public void inABlock(ABlock node)
Called by caseABlock(ABlock) before traversing the children of ABlock.

Parameters:
node - the visited ABlock node

outABlock

public void outABlock(ABlock node)
Called by caseABlock(ABlock) after traversing the children of ABlock.

Parameters:
node - the visited ABlock node

caseABlock

public void caseABlock(ABlock node)
Calls inABlock(ABlock), traverses the children of ABlock in the reverse order of the order they are defined in the grammar, and finally calls outABlock(ABlock).

Specified by:
caseABlock in interface Analysis
Overrides:
caseABlock in class AnalysisAdapter
Parameters:
node - the visited ABlock node

inAPlusBinop

public void inAPlusBinop(APlusBinop node)
Called by caseAPlusBinop(APlusBinop) before traversing the children of APlusBinop.

Parameters:
node - the visited APlusBinop node

outAPlusBinop

public void outAPlusBinop(APlusBinop node)
Called by caseAPlusBinop(APlusBinop) after traversing the children of APlusBinop.

Parameters:
node - the visited APlusBinop node

caseAPlusBinop

public void caseAPlusBinop(APlusBinop node)
Calls inAPlusBinop(APlusBinop), traverses the children of APlusBinop in the reverse order of the order they are defined in the grammar, and finally calls outAPlusBinop(APlusBinop).

Specified by:
caseAPlusBinop in interface Analysis
Overrides:
caseAPlusBinop in class AnalysisAdapter
Parameters:
node - the visited APlusBinop node

inAMinusBinop

public void inAMinusBinop(AMinusBinop node)
Called by caseAMinusBinop(AMinusBinop) before traversing the children of AMinusBinop.

Parameters:
node - the visited AMinusBinop node

outAMinusBinop

public void outAMinusBinop(AMinusBinop node)
Called by caseAMinusBinop(AMinusBinop) after traversing the children of AMinusBinop.

Parameters:
node - the visited AMinusBinop node

caseAMinusBinop

public void caseAMinusBinop(AMinusBinop node)
Calls inAMinusBinop(AMinusBinop), traverses the children of AMinusBinop in the reverse order of the order they are defined in the grammar, and finally calls outAMinusBinop(AMinusBinop).

Specified by:
caseAMinusBinop in interface Analysis
Overrides:
caseAMinusBinop in class AnalysisAdapter
Parameters:
node - the visited AMinusBinop node

inATimesBinop

public void inATimesBinop(ATimesBinop node)
Called by caseATimesBinop(ATimesBinop) before traversing the children of ATimesBinop.

Parameters:
node - the visited ATimesBinop node

outATimesBinop

public void outATimesBinop(ATimesBinop node)
Called by caseATimesBinop(ATimesBinop) after traversing the children of ATimesBinop.

Parameters:
node - the visited ATimesBinop node

caseATimesBinop

public void caseATimesBinop(ATimesBinop node)
Calls inATimesBinop(ATimesBinop), traverses the children of ATimesBinop in the reverse order of the order they are defined in the grammar, and finally calls outATimesBinop(ATimesBinop).

Specified by:
caseATimesBinop in interface Analysis
Overrides:
caseATimesBinop in class AnalysisAdapter
Parameters:
node - the visited ATimesBinop node

inADivideBinop

public void inADivideBinop(ADivideBinop node)
Called by caseADivideBinop(ADivideBinop) before traversing the children of ADivideBinop.

Parameters:
node - the visited ADivideBinop node

outADivideBinop

public void outADivideBinop(ADivideBinop node)
Called by caseADivideBinop(ADivideBinop) after traversing the children of ADivideBinop.

Parameters:
node - the visited ADivideBinop node

caseADivideBinop

public void caseADivideBinop(ADivideBinop node)
Calls inADivideBinop(ADivideBinop), traverses the children of ADivideBinop in the reverse order of the order they are defined in the grammar, and finally calls outADivideBinop(ADivideBinop).

Specified by:
caseADivideBinop in interface Analysis
Overrides:
caseADivideBinop in class AnalysisAdapter
Parameters:
node - the visited ADivideBinop node

inAEqBinop

public void inAEqBinop(AEqBinop node)
Called by caseAEqBinop(AEqBinop) before traversing the children of AEqBinop.

Parameters:
node - the visited AEqBinop node

outAEqBinop

public void outAEqBinop(AEqBinop node)
Called by caseAEqBinop(AEqBinop) after traversing the children of AEqBinop.

Parameters:
node - the visited AEqBinop node

caseAEqBinop

public void caseAEqBinop(AEqBinop node)
Calls inAEqBinop(AEqBinop), traverses the children of AEqBinop in the reverse order of the order they are defined in the grammar, and finally calls outAEqBinop(AEqBinop).

Specified by:
caseAEqBinop in interface Analysis
Overrides:
caseAEqBinop in class AnalysisAdapter
Parameters:
node - the visited AEqBinop node

inAGtBinop

public void inAGtBinop(AGtBinop node)
Called by caseAGtBinop(AGtBinop) before traversing the children of AGtBinop.

Parameters:
node - the visited AGtBinop node

outAGtBinop

public void outAGtBinop(AGtBinop node)
Called by caseAGtBinop(AGtBinop) after traversing the children of AGtBinop.

Parameters:
node - the visited AGtBinop node

caseAGtBinop

public void caseAGtBinop(AGtBinop node)
Calls inAGtBinop(AGtBinop), traverses the children of AGtBinop in the reverse order of the order they are defined in the grammar, and finally calls outAGtBinop(AGtBinop).

Specified by:
caseAGtBinop in interface Analysis
Overrides:
caseAGtBinop in class AnalysisAdapter
Parameters:
node - the visited AGtBinop node

inABinopExp

public void inABinopExp(ABinopExp node)
Called by caseABinopExp(ABinopExp) before traversing the children of ABinopExp.

Parameters:
node - the visited ABinopExp node

outABinopExp

public void outABinopExp(ABinopExp node)
Called by caseABinopExp(ABinopExp) after traversing the children of ABinopExp.

Parameters:
node - the visited ABinopExp node

caseABinopExp

public void caseABinopExp(ABinopExp node)
Calls inABinopExp(ABinopExp), traverses the children of ABinopExp in the reverse order of the order they are defined in the grammar, and finally calls outABinopExp(ABinopExp).

Specified by:
caseABinopExp in interface Analysis
Overrides:
caseABinopExp in class AnalysisAdapter
Parameters:
node - the visited ABinopExp node

inAPointerExp

public void inAPointerExp(APointerExp node)
Called by caseAPointerExp(APointerExp) before traversing the children of APointerExp.

Parameters:
node - the visited APointerExp node

outAPointerExp

public void outAPointerExp(APointerExp node)
Called by caseAPointerExp(APointerExp) after traversing the children of APointerExp.

Parameters:
node - the visited APointerExp node

caseAPointerExp

public void caseAPointerExp(APointerExp node)
Calls inAPointerExp(APointerExp), traverses the children of APointerExp in the reverse order of the order they are defined in the grammar, and finally calls outAPointerExp(APointerExp).

Specified by:
caseAPointerExp in interface Analysis
Overrides:
caseAPointerExp in class AnalysisAdapter
Parameters:
node - the visited APointerExp node

inADerefExp

public void inADerefExp(ADerefExp node)
Called by caseADerefExp(ADerefExp) before traversing the children of ADerefExp.

Parameters:
node - the visited ADerefExp node

outADerefExp

public void outADerefExp(ADerefExp node)
Called by caseADerefExp(ADerefExp) after traversing the children of ADerefExp.

Parameters:
node - the visited ADerefExp node

caseADerefExp

public void caseADerefExp(ADerefExp node)
Calls inADerefExp(ADerefExp), traverses the children of ADerefExp in the reverse order of the order they are defined in the grammar, and finally calls outADerefExp(ADerefExp).

Specified by:
caseADerefExp in interface Analysis
Overrides:
caseADerefExp in class AnalysisAdapter
Parameters:
node - the visited ADerefExp node

inAIntConstExp

public void inAIntConstExp(AIntConstExp node)
Called by caseAIntConstExp(AIntConstExp) before traversing the children of AIntConstExp.

Parameters:
node - the visited AIntConstExp node

outAIntConstExp

public void outAIntConstExp(AIntConstExp node)
Called by caseAIntConstExp(AIntConstExp) after traversing the children of AIntConstExp.

Parameters:
node - the visited AIntConstExp node

caseAIntConstExp

public void caseAIntConstExp(AIntConstExp node)
Calls inAIntConstExp(AIntConstExp), traverses the children of AIntConstExp in the reverse order of the order they are defined in the grammar, and finally calls outAIntConstExp(AIntConstExp).

Specified by:
caseAIntConstExp in interface Analysis
Overrides:
caseAIntConstExp in class AnalysisAdapter
Parameters:
node - the visited AIntConstExp node

inAFunctionCallExp

public void inAFunctionCallExp(AFunctionCallExp node)
Called by caseAFunctionCallExp(AFunctionCallExp) before traversing the children of AFunctionCallExp.

Parameters:
node - the visited AFunctionCallExp node

outAFunctionCallExp

public void outAFunctionCallExp(AFunctionCallExp node)
Called by caseAFunctionCallExp(AFunctionCallExp) after traversing the children of AFunctionCallExp.

Parameters:
node - the visited AFunctionCallExp node

caseAFunctionCallExp

public void caseAFunctionCallExp(AFunctionCallExp node)
Calls inAFunctionCallExp(AFunctionCallExp), traverses the children of AFunctionCallExp in the reverse order of the order they are defined in the grammar, and finally calls outAFunctionCallExp(AFunctionCallExp).

Specified by:
caseAFunctionCallExp in interface Analysis
Overrides:
caseAFunctionCallExp in class AnalysisAdapter
Parameters:
node - the visited AFunctionCallExp node

inAFunctionPtrCallExp

public void inAFunctionPtrCallExp(AFunctionPtrCallExp node)
Called by caseAFunctionPtrCallExp(AFunctionPtrCallExp) before traversing the children of AFunctionPtrCallExp.

Parameters:
node - the visited AFunctionPtrCallExp node

outAFunctionPtrCallExp

public void outAFunctionPtrCallExp(AFunctionPtrCallExp node)
Called by caseAFunctionPtrCallExp(AFunctionPtrCallExp) after traversing the children of AFunctionPtrCallExp.

Parameters:
node - the visited AFunctionPtrCallExp node

caseAFunctionPtrCallExp

public void caseAFunctionPtrCallExp(AFunctionPtrCallExp node)
Calls inAFunctionPtrCallExp(AFunctionPtrCallExp), traverses the children of AFunctionPtrCallExp in the reverse order of the order they are defined in the grammar, and finally calls outAFunctionPtrCallExp(AFunctionPtrCallExp).

Specified by:
caseAFunctionPtrCallExp in interface Analysis
Overrides:
caseAFunctionPtrCallExp in class AnalysisAdapter
Parameters:
node - the visited AFunctionPtrCallExp node

inAVarExp

public void inAVarExp(AVarExp node)
Called by caseAVarExp(AVarExp) before traversing the children of AVarExp.

Parameters:
node - the visited AVarExp node

outAVarExp

public void outAVarExp(AVarExp node)
Called by caseAVarExp(AVarExp) after traversing the children of AVarExp.

Parameters:
node - the visited AVarExp node

caseAVarExp

public void caseAVarExp(AVarExp node)
Calls inAVarExp(AVarExp), traverses the children of AVarExp in the reverse order of the order they are defined in the grammar, and finally calls outAVarExp(AVarExp).

Specified by:
caseAVarExp in interface Analysis
Overrides:
caseAVarExp in class AnalysisAdapter
Parameters:
node - the visited AVarExp node

inAInputExp

public void inAInputExp(AInputExp node)
Called by caseAInputExp(AInputExp) before traversing the children of AInputExp.

Parameters:
node - the visited AInputExp node

outAInputExp

public void outAInputExp(AInputExp node)
Called by caseAInputExp(AInputExp) after traversing the children of AInputExp.

Parameters:
node - the visited AInputExp node

caseAInputExp

public void caseAInputExp(AInputExp node)
Calls inAInputExp(AInputExp), traverses the children of AInputExp in the reverse order of the order they are defined in the grammar, and finally calls outAInputExp(AInputExp).

Specified by:
caseAInputExp in interface Analysis
Overrides:
caseAInputExp in class AnalysisAdapter
Parameters:
node - the visited AInputExp node

inAMallocExp

public void inAMallocExp(AMallocExp node)
Called by caseAMallocExp(AMallocExp) before traversing the children of AMallocExp.

Parameters:
node - the visited AMallocExp node

outAMallocExp

public void outAMallocExp(AMallocExp node)
Called by caseAMallocExp(AMallocExp) after traversing the children of AMallocExp.

Parameters:
node - the visited AMallocExp node

caseAMallocExp

public void caseAMallocExp(AMallocExp node)
Calls inAMallocExp(AMallocExp), traverses the children of AMallocExp in the reverse order of the order they are defined in the grammar, and finally calls outAMallocExp(AMallocExp).

Specified by:
caseAMallocExp in interface Analysis
Overrides:
caseAMallocExp in class AnalysisAdapter
Parameters:
node - the visited AMallocExp node

inANullExp

public void inANullExp(ANullExp node)
Called by caseANullExp(ANullExp) before traversing the children of ANullExp.

Parameters:
node - the visited ANullExp node

outANullExp

public void outANullExp(ANullExp node)
Called by caseANullExp(ANullExp) after traversing the children of ANullExp.

Parameters:
node - the visited ANullExp node

caseANullExp

public void caseANullExp(ANullExp node)
Calls inANullExp(ANullExp), traverses the children of ANullExp in the reverse order of the order they are defined in the grammar, and finally calls outANullExp(ANullExp).

Specified by:
caseANullExp in interface Analysis
Overrides:
caseANullExp in class AnalysisAdapter
Parameters:
node - the visited ANullExp node

inAIfThenStm

public void inAIfThenStm(AIfThenStm node)
Called by caseAIfThenStm(AIfThenStm) before traversing the children of AIfThenStm.

Parameters:
node - the visited AIfThenStm node

outAIfThenStm

public void outAIfThenStm(AIfThenStm node)
Called by caseAIfThenStm(AIfThenStm) after traversing the children of AIfThenStm.

Parameters:
node - the visited AIfThenStm node

caseAIfThenStm

public void caseAIfThenStm(AIfThenStm node)
Calls inAIfThenStm(AIfThenStm), traverses the children of AIfThenStm in the reverse order of the order they are defined in the grammar, and finally calls outAIfThenStm(AIfThenStm).

Specified by:
caseAIfThenStm in interface Analysis
Overrides:
caseAIfThenStm in class AnalysisAdapter
Parameters:
node - the visited AIfThenStm node

inAIfThenElseStm

public void inAIfThenElseStm(AIfThenElseStm node)
Called by caseAIfThenElseStm(AIfThenElseStm) before traversing the children of AIfThenElseStm.

Parameters:
node - the visited AIfThenElseStm node

outAIfThenElseStm

public void outAIfThenElseStm(AIfThenElseStm node)
Called by caseAIfThenElseStm(AIfThenElseStm) after traversing the children of AIfThenElseStm.

Parameters:
node - the visited AIfThenElseStm node

caseAIfThenElseStm

public void caseAIfThenElseStm(AIfThenElseStm node)
Calls inAIfThenElseStm(AIfThenElseStm), traverses the children of AIfThenElseStm in the reverse order of the order they are defined in the grammar, and finally calls outAIfThenElseStm(AIfThenElseStm).

Specified by:
caseAIfThenElseStm in interface Analysis
Overrides:
caseAIfThenElseStm in class AnalysisAdapter
Parameters:
node - the visited AIfThenElseStm node

inAWhileStm

public void inAWhileStm(AWhileStm node)
Called by caseAWhileStm(AWhileStm) before traversing the children of AWhileStm.

Parameters:
node - the visited AWhileStm node

outAWhileStm

public void outAWhileStm(AWhileStm node)
Called by caseAWhileStm(AWhileStm) after traversing the children of AWhileStm.

Parameters:
node - the visited AWhileStm node

caseAWhileStm

public void caseAWhileStm(AWhileStm node)
Calls inAWhileStm(AWhileStm), traverses the children of AWhileStm in the reverse order of the order they are defined in the grammar, and finally calls outAWhileStm(AWhileStm).

Specified by:
caseAWhileStm in interface Analysis
Overrides:
caseAWhileStm in class AnalysisAdapter
Parameters:
node - the visited AWhileStm node

inADeclStm

public void inADeclStm(ADeclStm node)
Called by caseADeclStm(ADeclStm) before traversing the children of ADeclStm.

Parameters:
node - the visited ADeclStm node

outADeclStm

public void outADeclStm(ADeclStm node)
Called by caseADeclStm(ADeclStm) after traversing the children of ADeclStm.

Parameters:
node - the visited ADeclStm node

caseADeclStm

public void caseADeclStm(ADeclStm node)
Calls inADeclStm(ADeclStm), traverses the children of ADeclStm in the reverse order of the order they are defined in the grammar, and finally calls outADeclStm(ADeclStm).

Specified by:
caseADeclStm in interface Analysis
Overrides:
caseADeclStm in class AnalysisAdapter
Parameters:
node - the visited ADeclStm node

inAReturnStm

public void inAReturnStm(AReturnStm node)
Called by caseAReturnStm(AReturnStm) before traversing the children of AReturnStm.

Parameters:
node - the visited AReturnStm node

outAReturnStm

public void outAReturnStm(AReturnStm node)
Called by caseAReturnStm(AReturnStm) after traversing the children of AReturnStm.

Parameters:
node - the visited AReturnStm node

caseAReturnStm

public void caseAReturnStm(AReturnStm node)
Calls inAReturnStm(AReturnStm), traverses the children of AReturnStm in the reverse order of the order they are defined in the grammar, and finally calls outAReturnStm(AReturnStm).

Specified by:
caseAReturnStm in interface Analysis
Overrides:
caseAReturnStm in class AnalysisAdapter
Parameters:
node - the visited AReturnStm node

inAOutputStm

public void inAOutputStm(AOutputStm node)
Called by caseAOutputStm(AOutputStm) before traversing the children of AOutputStm.

Parameters:
node - the visited AOutputStm node

outAOutputStm

public void outAOutputStm(AOutputStm node)
Called by caseAOutputStm(AOutputStm) after traversing the children of AOutputStm.

Parameters:
node - the visited AOutputStm node

caseAOutputStm

public void caseAOutputStm(AOutputStm node)
Calls inAOutputStm(AOutputStm), traverses the children of AOutputStm in the reverse order of the order they are defined in the grammar, and finally calls outAOutputStm(AOutputStm).

Specified by:
caseAOutputStm in interface Analysis
Overrides:
caseAOutputStm in class AnalysisAdapter
Parameters:
node - the visited AOutputStm node

inAAssignVarStm

public void inAAssignVarStm(AAssignVarStm node)
Called by caseAAssignVarStm(AAssignVarStm) before traversing the children of AAssignVarStm.

Parameters:
node - the visited AAssignVarStm node

outAAssignVarStm

public void outAAssignVarStm(AAssignVarStm node)
Called by caseAAssignVarStm(AAssignVarStm) after traversing the children of AAssignVarStm.

Parameters:
node - the visited AAssignVarStm node

caseAAssignVarStm

public void caseAAssignVarStm(AAssignVarStm node)
Calls inAAssignVarStm(AAssignVarStm), traverses the children of AAssignVarStm in the reverse order of the order they are defined in the grammar, and finally calls outAAssignVarStm(AAssignVarStm).

Specified by:
caseAAssignVarStm in interface Analysis
Overrides:
caseAAssignVarStm in class AnalysisAdapter
Parameters:
node - the visited AAssignVarStm node

inAAssignPtrStm

public void inAAssignPtrStm(AAssignPtrStm node)
Called by caseAAssignPtrStm(AAssignPtrStm) before traversing the children of AAssignPtrStm.

Parameters:
node - the visited AAssignPtrStm node

outAAssignPtrStm

public void outAAssignPtrStm(AAssignPtrStm node)
Called by caseAAssignPtrStm(AAssignPtrStm) after traversing the children of AAssignPtrStm.

Parameters:
node - the visited AAssignPtrStm node

caseAAssignPtrStm

public void caseAAssignPtrStm(AAssignPtrStm node)
Calls inAAssignPtrStm(AAssignPtrStm), traverses the children of AAssignPtrStm in the reverse order of the order they are defined in the grammar, and finally calls outAAssignPtrStm(AAssignPtrStm).

Specified by:
caseAAssignPtrStm in interface Analysis
Overrides:
caseAAssignPtrStm in class AnalysisAdapter
Parameters:
node - the visited AAssignPtrStm node

inABlockStm

public void inABlockStm(ABlockStm node)
Called by caseABlockStm(ABlockStm) before traversing the children of ABlockStm.

Parameters:
node - the visited ABlockStm node

outABlockStm

public void outABlockStm(ABlockStm node)
Called by caseABlockStm(ABlockStm) after traversing the children of ABlockStm.

Parameters:
node - the visited ABlockStm node

caseABlockStm

public void caseABlockStm(ABlockStm node)
Calls inABlockStm(ABlockStm), traverses the children of ABlockStm in the reverse order of the order they are defined in the grammar, and finally calls outABlockStm(ABlockStm).

Specified by:
caseABlockStm in interface Analysis
Overrides:
caseABlockStm in class AnalysisAdapter
Parameters:
node - the visited ABlockStm node

defaultInPProgram

public void defaultInPProgram(PProgram node)
Default case for in-calls from PProgram nodes.

Parameters:
node - the visited PProgram node

defaultPProgram

public final void defaultPProgram(PProgram node)
Not invoked since #casePProgram(PProgram) is overridden.

Overrides:
defaultPProgram in class AnalysisAdapter
Parameters:
node - the visited PProgram node

defaultOutPProgram

public void defaultOutPProgram(PProgram node)
Default case for out-calls from PProgram nodes.

Parameters:
node - the visited PProgram node

defaultInPDecl

public void defaultInPDecl(PDecl node)
Default case for in-calls from PDecl nodes.

Parameters:
node - the visited PDecl node

defaultPDecl

public final void defaultPDecl(PDecl node)
Not invoked since #casePDecl(PDecl) is overridden.

Overrides:
defaultPDecl in class AnalysisAdapter
Parameters:
node - the visited PDecl node

defaultOutPDecl

public void defaultOutPDecl(PDecl node)
Default case for out-calls from PDecl nodes.

Parameters:
node - the visited PDecl node

defaultInPBody

public void defaultInPBody(PBody node)
Default case for in-calls from PBody nodes.

Parameters:
node - the visited PBody node

defaultPBody

public final void defaultPBody(PBody node)
Not invoked since #casePBody(PBody) is overridden.

Overrides:
defaultPBody in class AnalysisAdapter
Parameters:
node - the visited PBody node

defaultOutPBody

public void defaultOutPBody(PBody node)
Default case for out-calls from PBody nodes.

Parameters:
node - the visited PBody node

defaultInPBlock

public void defaultInPBlock(PBlock node)
Default case for in-calls from PBlock nodes.

Parameters:
node - the visited PBlock node

defaultPBlock

public final void defaultPBlock(PBlock node)
Not invoked since #casePBlock(PBlock) is overridden.

Overrides:
defaultPBlock in class AnalysisAdapter
Parameters:
node - the visited PBlock node

defaultOutPBlock

public void defaultOutPBlock(PBlock node)
Default case for out-calls from PBlock nodes.

Parameters:
node - the visited PBlock node

defaultInPBinop

public void defaultInPBinop(PBinop node)
Default case for in-calls from PBinop nodes.

Parameters:
node - the visited PBinop node

defaultPBinop

public final void defaultPBinop(PBinop node)
Not invoked since #casePBinop(PBinop) is overridden.

Overrides:
defaultPBinop in class AnalysisAdapter
Parameters:
node - the visited PBinop node

defaultOutPBinop

public void defaultOutPBinop(PBinop node)
Default case for out-calls from PBinop nodes.

Parameters:
node - the visited PBinop node

defaultInPExp

public void defaultInPExp(PExp node)
Default case for in-calls from PExp nodes.

Parameters:
node - the visited PExp node

defaultPExp

public final void defaultPExp(PExp node)
Not invoked since #casePExp(PExp) is overridden.

Overrides:
defaultPExp in class AnalysisAdapter
Parameters:
node - the visited PExp node

defaultOutPExp

public void defaultOutPExp(PExp node)
Default case for out-calls from PExp nodes.

Parameters:
node - the visited PExp node

defaultInPStm

public void defaultInPStm(PStm node)
Default case for in-calls from PStm nodes.

Parameters:
node - the visited PStm node

defaultPStm

public final void defaultPStm(PStm node)
Not invoked since #casePStm(PStm) is overridden.

Overrides:
defaultPStm in class AnalysisAdapter
Parameters:
node - the visited PStm node

defaultOutPStm

public void defaultOutPStm(PStm node)
Default case for out-calls from PStm nodes.

Parameters:
node - the visited PStm node