|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttip.analysis.AnalysisAdapter
tip.analysis.DepthFirstAdapter
public class DepthFirstAdapter
DepthFirstAdapter
extends the AnalysisAdapter
to
provide a forward 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 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 | |
---|---|
DepthFirstAdapter()
|
Method Summary | |
---|---|
void |
caseABinopExp(ABinopExp node)
Calls inABinopExp(ABinopExp) , traverses the children of ABinopExp in
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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 |
---|
public DepthFirstAdapter()
Method Detail |
---|
public void inStart(Start node)
caseStart(Start)
before traversing the children of Start
.
node
- the visited Start
nodepublic void outStart(Start node)
caseStart(Start)
after traversing the children of Start
.
node
- the visited Start
nodepublic void defaultIn(Node node)
in
-calls.
node
- the visited Node
public void defaultOut(Node node)
out
-calls.
node
- the visited Node
public void caseStart(Start node)
inStart(Start)
, traverses the children of Start
in
the order they are defined in the grammar, and finally calls outStart(Start)
.
caseStart
in interface Analysis
caseStart
in class AnalysisAdapter
node
- the visited Start
nodepublic void inAProgram(AProgram node)
caseAProgram(AProgram)
before traversing the children of AProgram
.
node
- the visited AProgram
nodepublic void outAProgram(AProgram node)
caseAProgram(AProgram)
after traversing the children of AProgram
.
node
- the visited AProgram
nodepublic void caseAProgram(AProgram node)
inAProgram(AProgram)
, traverses the children of AProgram
in
the order they are defined in the grammar, and finally
calls outAProgram(AProgram)
.
caseAProgram
in interface Analysis
caseAProgram
in class AnalysisAdapter
node
- the visited AProgram
nodepublic void inAFuncDecl(AFuncDecl node)
caseAFuncDecl(AFuncDecl)
before traversing the children of AFuncDecl
.
node
- the visited AFuncDecl
nodepublic void outAFuncDecl(AFuncDecl node)
caseAFuncDecl(AFuncDecl)
after traversing the children of AFuncDecl
.
node
- the visited AFuncDecl
nodepublic void caseAFuncDecl(AFuncDecl node)
inAFuncDecl(AFuncDecl)
, traverses the children of AFuncDecl
in
the order they are defined in the grammar, and finally
calls outAFuncDecl(AFuncDecl)
.
caseAFuncDecl
in interface Analysis
caseAFuncDecl
in class AnalysisAdapter
node
- the visited AFuncDecl
nodepublic void inALocalDecl(ALocalDecl node)
caseALocalDecl(ALocalDecl)
before traversing the children of ALocalDecl
.
node
- the visited ALocalDecl
nodepublic void outALocalDecl(ALocalDecl node)
caseALocalDecl(ALocalDecl)
after traversing the children of ALocalDecl
.
node
- the visited ALocalDecl
nodepublic void caseALocalDecl(ALocalDecl node)
inALocalDecl(ALocalDecl)
, traverses the children of ALocalDecl
in
the order they are defined in the grammar, and finally
calls outALocalDecl(ALocalDecl)
.
caseALocalDecl
in interface Analysis
caseALocalDecl
in class AnalysisAdapter
node
- the visited ALocalDecl
nodepublic void inABody(ABody node)
caseABody(ABody)
before traversing the children of ABody
.
node
- the visited ABody
nodepublic void outABody(ABody node)
caseABody(ABody)
after traversing the children of ABody
.
node
- the visited ABody
nodepublic void caseABody(ABody node)
inABody(ABody)
, traverses the children of ABody
in
the order they are defined in the grammar, and finally
calls outABody(ABody)
.
caseABody
in interface Analysis
caseABody
in class AnalysisAdapter
node
- the visited ABody
nodepublic void inABlock(ABlock node)
caseABlock(ABlock)
before traversing the children of ABlock
.
node
- the visited ABlock
nodepublic void outABlock(ABlock node)
caseABlock(ABlock)
after traversing the children of ABlock
.
node
- the visited ABlock
nodepublic void caseABlock(ABlock node)
inABlock(ABlock)
, traverses the children of ABlock
in
the order they are defined in the grammar, and finally
calls outABlock(ABlock)
.
caseABlock
in interface Analysis
caseABlock
in class AnalysisAdapter
node
- the visited ABlock
nodepublic void inAPlusBinop(APlusBinop node)
caseAPlusBinop(APlusBinop)
before traversing the children of APlusBinop
.
node
- the visited APlusBinop
nodepublic void outAPlusBinop(APlusBinop node)
caseAPlusBinop(APlusBinop)
after traversing the children of APlusBinop
.
node
- the visited APlusBinop
nodepublic void caseAPlusBinop(APlusBinop node)
inAPlusBinop(APlusBinop)
, traverses the children of APlusBinop
in
the order they are defined in the grammar, and finally
calls outAPlusBinop(APlusBinop)
.
caseAPlusBinop
in interface Analysis
caseAPlusBinop
in class AnalysisAdapter
node
- the visited APlusBinop
nodepublic void inAMinusBinop(AMinusBinop node)
caseAMinusBinop(AMinusBinop)
before traversing the children of AMinusBinop
.
node
- the visited AMinusBinop
nodepublic void outAMinusBinop(AMinusBinop node)
caseAMinusBinop(AMinusBinop)
after traversing the children of AMinusBinop
.
node
- the visited AMinusBinop
nodepublic void caseAMinusBinop(AMinusBinop node)
inAMinusBinop(AMinusBinop)
, traverses the children of AMinusBinop
in
the order they are defined in the grammar, and finally
calls outAMinusBinop(AMinusBinop)
.
caseAMinusBinop
in interface Analysis
caseAMinusBinop
in class AnalysisAdapter
node
- the visited AMinusBinop
nodepublic void inATimesBinop(ATimesBinop node)
caseATimesBinop(ATimesBinop)
before traversing the children of ATimesBinop
.
node
- the visited ATimesBinop
nodepublic void outATimesBinop(ATimesBinop node)
caseATimesBinop(ATimesBinop)
after traversing the children of ATimesBinop
.
node
- the visited ATimesBinop
nodepublic void caseATimesBinop(ATimesBinop node)
inATimesBinop(ATimesBinop)
, traverses the children of ATimesBinop
in
the order they are defined in the grammar, and finally
calls outATimesBinop(ATimesBinop)
.
caseATimesBinop
in interface Analysis
caseATimesBinop
in class AnalysisAdapter
node
- the visited ATimesBinop
nodepublic void inADivideBinop(ADivideBinop node)
caseADivideBinop(ADivideBinop)
before traversing the children of ADivideBinop
.
node
- the visited ADivideBinop
nodepublic void outADivideBinop(ADivideBinop node)
caseADivideBinop(ADivideBinop)
after traversing the children of ADivideBinop
.
node
- the visited ADivideBinop
nodepublic void caseADivideBinop(ADivideBinop node)
inADivideBinop(ADivideBinop)
, traverses the children of ADivideBinop
in
the order they are defined in the grammar, and finally
calls outADivideBinop(ADivideBinop)
.
caseADivideBinop
in interface Analysis
caseADivideBinop
in class AnalysisAdapter
node
- the visited ADivideBinop
nodepublic void inAEqBinop(AEqBinop node)
caseAEqBinop(AEqBinop)
before traversing the children of AEqBinop
.
node
- the visited AEqBinop
nodepublic void outAEqBinop(AEqBinop node)
caseAEqBinop(AEqBinop)
after traversing the children of AEqBinop
.
node
- the visited AEqBinop
nodepublic void caseAEqBinop(AEqBinop node)
inAEqBinop(AEqBinop)
, traverses the children of AEqBinop
in
the order they are defined in the grammar, and finally
calls outAEqBinop(AEqBinop)
.
caseAEqBinop
in interface Analysis
caseAEqBinop
in class AnalysisAdapter
node
- the visited AEqBinop
nodepublic void inAGtBinop(AGtBinop node)
caseAGtBinop(AGtBinop)
before traversing the children of AGtBinop
.
node
- the visited AGtBinop
nodepublic void outAGtBinop(AGtBinop node)
caseAGtBinop(AGtBinop)
after traversing the children of AGtBinop
.
node
- the visited AGtBinop
nodepublic void caseAGtBinop(AGtBinop node)
inAGtBinop(AGtBinop)
, traverses the children of AGtBinop
in
the order they are defined in the grammar, and finally
calls outAGtBinop(AGtBinop)
.
caseAGtBinop
in interface Analysis
caseAGtBinop
in class AnalysisAdapter
node
- the visited AGtBinop
nodepublic void inABinopExp(ABinopExp node)
caseABinopExp(ABinopExp)
before traversing the children of ABinopExp
.
node
- the visited ABinopExp
nodepublic void outABinopExp(ABinopExp node)
caseABinopExp(ABinopExp)
after traversing the children of ABinopExp
.
node
- the visited ABinopExp
nodepublic void caseABinopExp(ABinopExp node)
inABinopExp(ABinopExp)
, traverses the children of ABinopExp
in
the order they are defined in the grammar, and finally
calls outABinopExp(ABinopExp)
.
caseABinopExp
in interface Analysis
caseABinopExp
in class AnalysisAdapter
node
- the visited ABinopExp
nodepublic void inAPointerExp(APointerExp node)
caseAPointerExp(APointerExp)
before traversing the children of APointerExp
.
node
- the visited APointerExp
nodepublic void outAPointerExp(APointerExp node)
caseAPointerExp(APointerExp)
after traversing the children of APointerExp
.
node
- the visited APointerExp
nodepublic void caseAPointerExp(APointerExp node)
inAPointerExp(APointerExp)
, traverses the children of APointerExp
in
the order they are defined in the grammar, and finally
calls outAPointerExp(APointerExp)
.
caseAPointerExp
in interface Analysis
caseAPointerExp
in class AnalysisAdapter
node
- the visited APointerExp
nodepublic void inADerefExp(ADerefExp node)
caseADerefExp(ADerefExp)
before traversing the children of ADerefExp
.
node
- the visited ADerefExp
nodepublic void outADerefExp(ADerefExp node)
caseADerefExp(ADerefExp)
after traversing the children of ADerefExp
.
node
- the visited ADerefExp
nodepublic void caseADerefExp(ADerefExp node)
inADerefExp(ADerefExp)
, traverses the children of ADerefExp
in
the order they are defined in the grammar, and finally
calls outADerefExp(ADerefExp)
.
caseADerefExp
in interface Analysis
caseADerefExp
in class AnalysisAdapter
node
- the visited ADerefExp
nodepublic void inAIntConstExp(AIntConstExp node)
caseAIntConstExp(AIntConstExp)
before traversing the children of AIntConstExp
.
node
- the visited AIntConstExp
nodepublic void outAIntConstExp(AIntConstExp node)
caseAIntConstExp(AIntConstExp)
after traversing the children of AIntConstExp
.
node
- the visited AIntConstExp
nodepublic void caseAIntConstExp(AIntConstExp node)
inAIntConstExp(AIntConstExp)
, traverses the children of AIntConstExp
in
the order they are defined in the grammar, and finally
calls outAIntConstExp(AIntConstExp)
.
caseAIntConstExp
in interface Analysis
caseAIntConstExp
in class AnalysisAdapter
node
- the visited AIntConstExp
nodepublic void inAFunctionCallExp(AFunctionCallExp node)
caseAFunctionCallExp(AFunctionCallExp)
before traversing the children of AFunctionCallExp
.
node
- the visited AFunctionCallExp
nodepublic void outAFunctionCallExp(AFunctionCallExp node)
caseAFunctionCallExp(AFunctionCallExp)
after traversing the children of AFunctionCallExp
.
node
- the visited AFunctionCallExp
nodepublic void caseAFunctionCallExp(AFunctionCallExp node)
inAFunctionCallExp(AFunctionCallExp)
, traverses the children of AFunctionCallExp
in
the order they are defined in the grammar, and finally
calls outAFunctionCallExp(AFunctionCallExp)
.
caseAFunctionCallExp
in interface Analysis
caseAFunctionCallExp
in class AnalysisAdapter
node
- the visited AFunctionCallExp
nodepublic void inAFunctionPtrCallExp(AFunctionPtrCallExp node)
caseAFunctionPtrCallExp(AFunctionPtrCallExp)
before traversing the children of AFunctionPtrCallExp
.
node
- the visited AFunctionPtrCallExp
nodepublic void outAFunctionPtrCallExp(AFunctionPtrCallExp node)
caseAFunctionPtrCallExp(AFunctionPtrCallExp)
after traversing the children of AFunctionPtrCallExp
.
node
- the visited AFunctionPtrCallExp
nodepublic void caseAFunctionPtrCallExp(AFunctionPtrCallExp node)
inAFunctionPtrCallExp(AFunctionPtrCallExp)
, traverses the children of AFunctionPtrCallExp
in
the order they are defined in the grammar, and finally
calls outAFunctionPtrCallExp(AFunctionPtrCallExp)
.
caseAFunctionPtrCallExp
in interface Analysis
caseAFunctionPtrCallExp
in class AnalysisAdapter
node
- the visited AFunctionPtrCallExp
nodepublic void inAVarExp(AVarExp node)
caseAVarExp(AVarExp)
before traversing the children of AVarExp
.
node
- the visited AVarExp
nodepublic void outAVarExp(AVarExp node)
caseAVarExp(AVarExp)
after traversing the children of AVarExp
.
node
- the visited AVarExp
nodepublic void caseAVarExp(AVarExp node)
inAVarExp(AVarExp)
, traverses the children of AVarExp
in
the order they are defined in the grammar, and finally
calls outAVarExp(AVarExp)
.
caseAVarExp
in interface Analysis
caseAVarExp
in class AnalysisAdapter
node
- the visited AVarExp
nodepublic void inAInputExp(AInputExp node)
caseAInputExp(AInputExp)
before traversing the children of AInputExp
.
node
- the visited AInputExp
nodepublic void outAInputExp(AInputExp node)
caseAInputExp(AInputExp)
after traversing the children of AInputExp
.
node
- the visited AInputExp
nodepublic void caseAInputExp(AInputExp node)
inAInputExp(AInputExp)
, traverses the children of AInputExp
in
the order they are defined in the grammar, and finally
calls outAInputExp(AInputExp)
.
caseAInputExp
in interface Analysis
caseAInputExp
in class AnalysisAdapter
node
- the visited AInputExp
nodepublic void inAMallocExp(AMallocExp node)
caseAMallocExp(AMallocExp)
before traversing the children of AMallocExp
.
node
- the visited AMallocExp
nodepublic void outAMallocExp(AMallocExp node)
caseAMallocExp(AMallocExp)
after traversing the children of AMallocExp
.
node
- the visited AMallocExp
nodepublic void caseAMallocExp(AMallocExp node)
inAMallocExp(AMallocExp)
, traverses the children of AMallocExp
in
the order they are defined in the grammar, and finally
calls outAMallocExp(AMallocExp)
.
caseAMallocExp
in interface Analysis
caseAMallocExp
in class AnalysisAdapter
node
- the visited AMallocExp
nodepublic void inANullExp(ANullExp node)
caseANullExp(ANullExp)
before traversing the children of ANullExp
.
node
- the visited ANullExp
nodepublic void outANullExp(ANullExp node)
caseANullExp(ANullExp)
after traversing the children of ANullExp
.
node
- the visited ANullExp
nodepublic void caseANullExp(ANullExp node)
inANullExp(ANullExp)
, traverses the children of ANullExp
in
the order they are defined in the grammar, and finally
calls outANullExp(ANullExp)
.
caseANullExp
in interface Analysis
caseANullExp
in class AnalysisAdapter
node
- the visited ANullExp
nodepublic void inAIfThenStm(AIfThenStm node)
caseAIfThenStm(AIfThenStm)
before traversing the children of AIfThenStm
.
node
- the visited AIfThenStm
nodepublic void outAIfThenStm(AIfThenStm node)
caseAIfThenStm(AIfThenStm)
after traversing the children of AIfThenStm
.
node
- the visited AIfThenStm
nodepublic void caseAIfThenStm(AIfThenStm node)
inAIfThenStm(AIfThenStm)
, traverses the children of AIfThenStm
in
the order they are defined in the grammar, and finally
calls outAIfThenStm(AIfThenStm)
.
caseAIfThenStm
in interface Analysis
caseAIfThenStm
in class AnalysisAdapter
node
- the visited AIfThenStm
nodepublic void inAIfThenElseStm(AIfThenElseStm node)
caseAIfThenElseStm(AIfThenElseStm)
before traversing the children of AIfThenElseStm
.
node
- the visited AIfThenElseStm
nodepublic void outAIfThenElseStm(AIfThenElseStm node)
caseAIfThenElseStm(AIfThenElseStm)
after traversing the children of AIfThenElseStm
.
node
- the visited AIfThenElseStm
nodepublic void caseAIfThenElseStm(AIfThenElseStm node)
inAIfThenElseStm(AIfThenElseStm)
, traverses the children of AIfThenElseStm
in
the order they are defined in the grammar, and finally
calls outAIfThenElseStm(AIfThenElseStm)
.
caseAIfThenElseStm
in interface Analysis
caseAIfThenElseStm
in class AnalysisAdapter
node
- the visited AIfThenElseStm
nodepublic void inAWhileStm(AWhileStm node)
caseAWhileStm(AWhileStm)
before traversing the children of AWhileStm
.
node
- the visited AWhileStm
nodepublic void outAWhileStm(AWhileStm node)
caseAWhileStm(AWhileStm)
after traversing the children of AWhileStm
.
node
- the visited AWhileStm
nodepublic void caseAWhileStm(AWhileStm node)
inAWhileStm(AWhileStm)
, traverses the children of AWhileStm
in
the order they are defined in the grammar, and finally
calls outAWhileStm(AWhileStm)
.
caseAWhileStm
in interface Analysis
caseAWhileStm
in class AnalysisAdapter
node
- the visited AWhileStm
nodepublic void inADeclStm(ADeclStm node)
caseADeclStm(ADeclStm)
before traversing the children of ADeclStm
.
node
- the visited ADeclStm
nodepublic void outADeclStm(ADeclStm node)
caseADeclStm(ADeclStm)
after traversing the children of ADeclStm
.
node
- the visited ADeclStm
nodepublic void caseADeclStm(ADeclStm node)
inADeclStm(ADeclStm)
, traverses the children of ADeclStm
in
the order they are defined in the grammar, and finally
calls outADeclStm(ADeclStm)
.
caseADeclStm
in interface Analysis
caseADeclStm
in class AnalysisAdapter
node
- the visited ADeclStm
nodepublic void inAReturnStm(AReturnStm node)
caseAReturnStm(AReturnStm)
before traversing the children of AReturnStm
.
node
- the visited AReturnStm
nodepublic void outAReturnStm(AReturnStm node)
caseAReturnStm(AReturnStm)
after traversing the children of AReturnStm
.
node
- the visited AReturnStm
nodepublic void caseAReturnStm(AReturnStm node)
inAReturnStm(AReturnStm)
, traverses the children of AReturnStm
in
the order they are defined in the grammar, and finally
calls outAReturnStm(AReturnStm)
.
caseAReturnStm
in interface Analysis
caseAReturnStm
in class AnalysisAdapter
node
- the visited AReturnStm
nodepublic void inAOutputStm(AOutputStm node)
caseAOutputStm(AOutputStm)
before traversing the children of AOutputStm
.
node
- the visited AOutputStm
nodepublic void outAOutputStm(AOutputStm node)
caseAOutputStm(AOutputStm)
after traversing the children of AOutputStm
.
node
- the visited AOutputStm
nodepublic void caseAOutputStm(AOutputStm node)
inAOutputStm(AOutputStm)
, traverses the children of AOutputStm
in
the order they are defined in the grammar, and finally
calls outAOutputStm(AOutputStm)
.
caseAOutputStm
in interface Analysis
caseAOutputStm
in class AnalysisAdapter
node
- the visited AOutputStm
nodepublic void inAAssignVarStm(AAssignVarStm node)
caseAAssignVarStm(AAssignVarStm)
before traversing the children of AAssignVarStm
.
node
- the visited AAssignVarStm
nodepublic void outAAssignVarStm(AAssignVarStm node)
caseAAssignVarStm(AAssignVarStm)
after traversing the children of AAssignVarStm
.
node
- the visited AAssignVarStm
nodepublic void caseAAssignVarStm(AAssignVarStm node)
inAAssignVarStm(AAssignVarStm)
, traverses the children of AAssignVarStm
in
the order they are defined in the grammar, and finally
calls outAAssignVarStm(AAssignVarStm)
.
caseAAssignVarStm
in interface Analysis
caseAAssignVarStm
in class AnalysisAdapter
node
- the visited AAssignVarStm
nodepublic void inAAssignPtrStm(AAssignPtrStm node)
caseAAssignPtrStm(AAssignPtrStm)
before traversing the children of AAssignPtrStm
.
node
- the visited AAssignPtrStm
nodepublic void outAAssignPtrStm(AAssignPtrStm node)
caseAAssignPtrStm(AAssignPtrStm)
after traversing the children of AAssignPtrStm
.
node
- the visited AAssignPtrStm
nodepublic void caseAAssignPtrStm(AAssignPtrStm node)
inAAssignPtrStm(AAssignPtrStm)
, traverses the children of AAssignPtrStm
in
the order they are defined in the grammar, and finally
calls outAAssignPtrStm(AAssignPtrStm)
.
caseAAssignPtrStm
in interface Analysis
caseAAssignPtrStm
in class AnalysisAdapter
node
- the visited AAssignPtrStm
nodepublic void inABlockStm(ABlockStm node)
caseABlockStm(ABlockStm)
before traversing the children of ABlockStm
.
node
- the visited ABlockStm
nodepublic void outABlockStm(ABlockStm node)
caseABlockStm(ABlockStm)
after traversing the children of ABlockStm
.
node
- the visited ABlockStm
nodepublic void caseABlockStm(ABlockStm node)
inABlockStm(ABlockStm)
, traverses the children of ABlockStm
in
the order they are defined in the grammar, and finally
calls outABlockStm(ABlockStm)
.
caseABlockStm
in interface Analysis
caseABlockStm
in class AnalysisAdapter
node
- the visited ABlockStm
nodepublic void defaultInPProgram(PProgram node)
in
-calls from PProgram
nodes.
node
- the visited PProgram
nodepublic final void defaultPProgram(PProgram node)
#casePProgram(PProgram)
is overridden.
defaultPProgram
in class AnalysisAdapter
node
- the visited PProgram
nodepublic void defaultOutPProgram(PProgram node)
out
-calls from PProgram
nodes.
node
- the visited PProgram
nodepublic void defaultInPDecl(PDecl node)
in
-calls from PDecl
nodes.
node
- the visited PDecl
nodepublic final void defaultPDecl(PDecl node)
#casePDecl(PDecl)
is overridden.
defaultPDecl
in class AnalysisAdapter
node
- the visited PDecl
nodepublic void defaultOutPDecl(PDecl node)
out
-calls from PDecl
nodes.
node
- the visited PDecl
nodepublic void defaultInPBody(PBody node)
in
-calls from PBody
nodes.
node
- the visited PBody
nodepublic final void defaultPBody(PBody node)
#casePBody(PBody)
is overridden.
defaultPBody
in class AnalysisAdapter
node
- the visited PBody
nodepublic void defaultOutPBody(PBody node)
out
-calls from PBody
nodes.
node
- the visited PBody
nodepublic void defaultInPBlock(PBlock node)
in
-calls from PBlock
nodes.
node
- the visited PBlock
nodepublic final void defaultPBlock(PBlock node)
#casePBlock(PBlock)
is overridden.
defaultPBlock
in class AnalysisAdapter
node
- the visited PBlock
nodepublic void defaultOutPBlock(PBlock node)
out
-calls from PBlock
nodes.
node
- the visited PBlock
nodepublic void defaultInPBinop(PBinop node)
in
-calls from PBinop
nodes.
node
- the visited PBinop
nodepublic final void defaultPBinop(PBinop node)
#casePBinop(PBinop)
is overridden.
defaultPBinop
in class AnalysisAdapter
node
- the visited PBinop
nodepublic void defaultOutPBinop(PBinop node)
out
-calls from PBinop
nodes.
node
- the visited PBinop
nodepublic void defaultInPExp(PExp node)
in
-calls from PExp
nodes.
node
- the visited PExp
nodepublic final void defaultPExp(PExp node)
#casePExp(PExp)
is overridden.
defaultPExp
in class AnalysisAdapter
node
- the visited PExp
nodepublic void defaultOutPExp(PExp node)
out
-calls from PExp
nodes.
node
- the visited PExp
nodepublic void defaultInPStm(PStm node)
in
-calls from PStm
nodes.
node
- the visited PStm
nodepublic final void defaultPStm(PStm node)
#casePStm(PStm)
is overridden.
defaultPStm
in class AnalysisAdapter
node
- the visited PStm
nodepublic void defaultOutPStm(PStm node)
out
-calls from PStm
nodes.
node
- the visited PStm
node
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |