|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Analysis
Analysis
defines the interface for node based analyses.
The analysis provides to maps, in
and out
, for
associating Node
nodes to Object
values.
The interface is a visitor pattern.
Method Summary | |
---|---|
void |
caseABinopExp(ABinopExp node)
Called by the ABinopExp node from ABinopExp#apply(Switch) . |
void |
caseABlock(ABlock node)
Called by the ABlock node from ABlock#apply(Switch) . |
void |
caseABlockStm(ABlockStm node)
Called by the ABlockStm node from ABlockStm#apply(Switch) . |
void |
caseABody(ABody node)
Called by the ABody node from ABody#apply(Switch) . |
void |
caseADeclStm(ADeclStm node)
Called by the ADeclStm node from ADeclStm#apply(Switch) . |
void |
caseADerefExp(ADerefExp node)
Called by the ADerefExp node from ADerefExp#apply(Switch) . |
void |
caseADivideBinop(ADivideBinop node)
Called by the ADivideBinop node from ADivideBinop#apply(Switch) . |
void |
caseAEqBinop(AEqBinop node)
Called by the AEqBinop node from AEqBinop#apply(Switch) . |
void |
caseAFuncDecl(AFuncDecl node)
Called by the AFuncDecl node from AFuncDecl#apply(Switch) . |
void |
caseAFunctionCallExp(AFunctionCallExp node)
Called by the AFunctionCallExp node from AFunctionCallExp#apply(Switch) . |
void |
caseAFunctionPtrCallExp(AFunctionPtrCallExp node)
Called by the AFunctionPtrCallExp node from AFunctionPtrCallExp#apply(Switch) . |
void |
caseAGtBinop(AGtBinop node)
Called by the AGtBinop node from AGtBinop#apply(Switch) . |
void |
caseAIfThenElseStm(AIfThenElseStm node)
Called by the AIfThenElseStm node from AIfThenElseStm#apply(Switch) . |
void |
caseAIfThenStm(AIfThenStm node)
Called by the AIfThenStm node from AIfThenStm#apply(Switch) . |
void |
caseAInputExp(AInputExp node)
Called by the AInputExp node from AInputExp#apply(Switch) . |
void |
caseAIntConstExp(AIntConstExp node)
Called by the AIntConstExp node from AIntConstExp#apply(Switch) . |
void |
caseALocalDecl(ALocalDecl node)
Called by the ALocalDecl node from ALocalDecl#apply(Switch) . |
void |
caseAMallocExp(AMallocExp node)
Called by the AMallocExp node from AMallocExp#apply(Switch) . |
void |
caseAMinusBinop(AMinusBinop node)
Called by the AMinusBinop node from AMinusBinop#apply(Switch) . |
void |
caseANullExp(ANullExp node)
Called by the ANullExp node from ANullExp#apply(Switch) . |
void |
caseAOutputStm(AOutputStm node)
Called by the AOutputStm node from AOutputStm#apply(Switch) . |
void |
caseAPlusBinop(APlusBinop node)
Called by the APlusBinop node from APlusBinop#apply(Switch) . |
void |
caseAPointerExp(APointerExp node)
Called by the APointerExp node from APointerExp#apply(Switch) . |
void |
caseAProgram(AProgram node)
Called by the AProgram node from AProgram#apply(Switch) . |
void |
caseAReturnStm(AReturnStm node)
Called by the AReturnStm node from AReturnStm#apply(Switch) . |
void |
caseATimesBinop(ATimesBinop node)
Called by the ATimesBinop node from ATimesBinop#apply(Switch) . |
void |
caseAVarExp(AVarExp node)
Called by the AVarExp node from AVarExp#apply(Switch) . |
void |
caseAWhileStm(AWhileStm node)
Called by the AWhileStm node from AWhileStm#apply(Switch) . |
void |
caseEOF(EOF node)
Called by the EOF node from EOF#apply(Switch) . |
void |
caseStart(Start node)
Called by the Start node from Start#apply(Switch) . |
void |
caseTAnd(TAnd node)
Called by the TAnd node from TAnd#apply(Switch) . |
void |
caseTAssign(TAssign node)
Called by the TAssign node from TAssign#apply(Switch) . |
void |
caseTComma(TComma node)
Called by the TComma node from TComma#apply(Switch) . |
void |
caseTCommentBlock(TCommentBlock node)
Called by the TCommentBlock node from TCommentBlock#apply(Switch) . |
void |
caseTCommentSingle(TCommentSingle node)
Called by the TCommentSingle node from TCommentSingle#apply(Switch) . |
void |
caseTDiv(TDiv node)
Called by the TDiv node from TDiv#apply(Switch) . |
void |
caseTElse(TElse node)
Called by the TElse node from TElse#apply(Switch) . |
void |
caseTEq(TEq node)
Called by the TEq node from TEq#apply(Switch) . |
void |
caseTGt(TGt node)
Called by the TGt node from TGt#apply(Switch) . |
void |
caseTIdentifier(TIdentifier node)
Called by the TIdentifier node from TIdentifier#apply(Switch) . |
void |
caseTIf(TIf node)
Called by the TIf node from TIf#apply(Switch) . |
void |
caseTInput(TInput node)
Called by the TInput node from TInput#apply(Switch) . |
void |
caseTIntegerConst(TIntegerConst node)
Called by the TIntegerConst node from TIntegerConst#apply(Switch) . |
void |
caseTLBrace(TLBrace node)
Called by the TLBrace node from TLBrace#apply(Switch) . |
void |
caseTLPar(TLPar node)
Called by the TLPar node from TLPar#apply(Switch) . |
void |
caseTMalloc(TMalloc node)
Called by the TMalloc node from TMalloc#apply(Switch) . |
void |
caseTMinus(TMinus node)
Called by the TMinus node from TMinus#apply(Switch) . |
void |
caseTNull(TNull node)
Called by the TNull node from TNull#apply(Switch) . |
void |
caseTOutput(TOutput node)
Called by the TOutput node from TOutput#apply(Switch) . |
void |
caseTPlus(TPlus node)
Called by the TPlus node from TPlus#apply(Switch) . |
void |
caseTRBrace(TRBrace node)
Called by the TRBrace node from TRBrace#apply(Switch) . |
void |
caseTReturn(TReturn node)
Called by the TReturn node from TReturn#apply(Switch) . |
void |
caseTRPar(TRPar node)
Called by the TRPar node from TRPar#apply(Switch) . |
void |
caseTSemicolon(TSemicolon node)
Called by the TSemicolon node from TSemicolon#apply(Switch) . |
void |
caseTStar(TStar node)
Called by the TStar node from TStar#apply(Switch) . |
void |
caseTVar(TVar node)
Called by the TVar node from TVar#apply(Switch) . |
void |
caseTWhile(TWhile node)
Called by the TWhile node from TWhile#apply(Switch) . |
void |
caseTWhiteSpace(TWhiteSpace node)
Called by the TWhiteSpace node from TWhiteSpace#apply(Switch) . |
void |
caseAAssignPtrStm(AAssignPtrStm node)
Called by the AAssignPtrStm node from AAssignPtrStm#apply(Switch) . |
void |
caseAAssignVarStm(AAssignVarStm node)
Called by the AAssignVarStm node from AAssignVarStm#apply(Switch) . |
Object |
getIn(Node node)
Returns the Object associated with the Node node in the in map. |
Object |
getOut(Node node)
Returns the Object associated with the Node node in the out map. |
void |
setIn(Node node,
Object o)
Sets the Object o to be a associated with the Node node in the in map. |
void |
setOut(Node node,
Object o)
Sets the Object o to be a associated with the Node node in the out map. |
Method Detail |
---|
Object getIn(Node node)
Object
associated with the Node
node
in the in
map.
Object
associated with the Node
node
in the in
mapvoid setIn(Node node, Object o)
Object
o
to be a associated with the Node
node
in the in
map.
node
- the Node
to which Object
o
is to be associated.o
- the Object
to be associated with the Node
node
in the in
mapObject getOut(Node node)
Object
associated with the Node
node
in the out
map.
Object
associated with the Node
node
in the out
mapvoid setOut(Node node, Object o)
Object
o
to be a associated with the Node
node
in the out
map.
node
- the Node
to which Object
o
is to be associated.o
- the Object
to be associated with the Node
node
in the out
mapvoid caseStart(Start node)
Start
node from Start#apply(Switch)
.
node
- the calling Start
nodevoid caseAProgram(AProgram node)
AProgram
node from AProgram#apply(Switch)
.
node
- the calling AProgram
nodevoid caseAFuncDecl(AFuncDecl node)
AFuncDecl
node from AFuncDecl#apply(Switch)
.
node
- the calling AFuncDecl
nodevoid caseALocalDecl(ALocalDecl node)
ALocalDecl
node from ALocalDecl#apply(Switch)
.
node
- the calling ALocalDecl
nodevoid caseABody(ABody node)
ABody
node from ABody#apply(Switch)
.
node
- the calling ABody
nodevoid caseABlock(ABlock node)
ABlock
node from ABlock#apply(Switch)
.
node
- the calling ABlock
nodevoid caseAPlusBinop(APlusBinop node)
APlusBinop
node from APlusBinop#apply(Switch)
.
node
- the calling APlusBinop
nodevoid caseAMinusBinop(AMinusBinop node)
AMinusBinop
node from AMinusBinop#apply(Switch)
.
node
- the calling AMinusBinop
nodevoid caseATimesBinop(ATimesBinop node)
ATimesBinop
node from ATimesBinop#apply(Switch)
.
node
- the calling ATimesBinop
nodevoid caseADivideBinop(ADivideBinop node)
ADivideBinop
node from ADivideBinop#apply(Switch)
.
node
- the calling ADivideBinop
nodevoid caseAEqBinop(AEqBinop node)
AEqBinop
node from AEqBinop#apply(Switch)
.
node
- the calling AEqBinop
nodevoid caseAGtBinop(AGtBinop node)
AGtBinop
node from AGtBinop#apply(Switch)
.
node
- the calling AGtBinop
nodevoid caseABinopExp(ABinopExp node)
ABinopExp
node from ABinopExp#apply(Switch)
.
node
- the calling ABinopExp
nodevoid caseAPointerExp(APointerExp node)
APointerExp
node from APointerExp#apply(Switch)
.
node
- the calling APointerExp
nodevoid caseADerefExp(ADerefExp node)
ADerefExp
node from ADerefExp#apply(Switch)
.
node
- the calling ADerefExp
nodevoid caseAIntConstExp(AIntConstExp node)
AIntConstExp
node from AIntConstExp#apply(Switch)
.
node
- the calling AIntConstExp
nodevoid caseAFunctionCallExp(AFunctionCallExp node)
AFunctionCallExp
node from AFunctionCallExp#apply(Switch)
.
node
- the calling AFunctionCallExp
nodevoid caseAFunctionPtrCallExp(AFunctionPtrCallExp node)
AFunctionPtrCallExp
node from AFunctionPtrCallExp#apply(Switch)
.
node
- the calling AFunctionPtrCallExp
nodevoid caseAVarExp(AVarExp node)
AVarExp
node from AVarExp#apply(Switch)
.
node
- the calling AVarExp
nodevoid caseAInputExp(AInputExp node)
AInputExp
node from AInputExp#apply(Switch)
.
node
- the calling AInputExp
nodevoid caseAMallocExp(AMallocExp node)
AMallocExp
node from AMallocExp#apply(Switch)
.
node
- the calling AMallocExp
nodevoid caseANullExp(ANullExp node)
ANullExp
node from ANullExp#apply(Switch)
.
node
- the calling ANullExp
nodevoid caseAIfThenStm(AIfThenStm node)
AIfThenStm
node from AIfThenStm#apply(Switch)
.
node
- the calling AIfThenStm
nodevoid caseAIfThenElseStm(AIfThenElseStm node)
AIfThenElseStm
node from AIfThenElseStm#apply(Switch)
.
node
- the calling AIfThenElseStm
nodevoid caseAWhileStm(AWhileStm node)
AWhileStm
node from AWhileStm#apply(Switch)
.
node
- the calling AWhileStm
nodevoid caseADeclStm(ADeclStm node)
ADeclStm
node from ADeclStm#apply(Switch)
.
node
- the calling ADeclStm
nodevoid caseAReturnStm(AReturnStm node)
AReturnStm
node from AReturnStm#apply(Switch)
.
node
- the calling AReturnStm
nodevoid caseAOutputStm(AOutputStm node)
AOutputStm
node from AOutputStm#apply(Switch)
.
node
- the calling AOutputStm
nodevoid caseAAssignVarStm(AAssignVarStm node)
AAssignVarStm
node from AAssignVarStm#apply(Switch)
.
node
- the calling AAssignVarStm
nodevoid caseAAssignPtrStm(AAssignPtrStm node)
AAssignPtrStm
node from AAssignPtrStm#apply(Switch)
.
node
- the calling AAssignPtrStm
nodevoid caseABlockStm(ABlockStm node)
ABlockStm
node from ABlockStm#apply(Switch)
.
node
- the calling ABlockStm
nodevoid caseTWhiteSpace(TWhiteSpace node)
TWhiteSpace
node from TWhiteSpace#apply(Switch)
.
node
- the calling TWhiteSpace
nodevoid caseTCommentSingle(TCommentSingle node)
TCommentSingle
node from TCommentSingle#apply(Switch)
.
node
- the calling TCommentSingle
nodevoid caseTCommentBlock(TCommentBlock node)
TCommentBlock
node from TCommentBlock#apply(Switch)
.
node
- the calling TCommentBlock
nodevoid caseTVar(TVar node)
TVar
node from TVar#apply(Switch)
.
node
- the calling TVar
nodevoid caseTInput(TInput node)
TInput
node from TInput#apply(Switch)
.
node
- the calling TInput
nodevoid caseTOutput(TOutput node)
TOutput
node from TOutput#apply(Switch)
.
node
- the calling TOutput
nodevoid caseTIf(TIf node)
TIf
node from TIf#apply(Switch)
.
node
- the calling TIf
nodevoid caseTElse(TElse node)
TElse
node from TElse#apply(Switch)
.
node
- the calling TElse
nodevoid caseTWhile(TWhile node)
TWhile
node from TWhile#apply(Switch)
.
node
- the calling TWhile
nodevoid caseTReturn(TReturn node)
TReturn
node from TReturn#apply(Switch)
.
node
- the calling TReturn
nodevoid caseTMalloc(TMalloc node)
TMalloc
node from TMalloc#apply(Switch)
.
node
- the calling TMalloc
nodevoid caseTNull(TNull node)
TNull
node from TNull#apply(Switch)
.
node
- the calling TNull
nodevoid caseTLPar(TLPar node)
TLPar
node from TLPar#apply(Switch)
.
node
- the calling TLPar
nodevoid caseTRPar(TRPar node)
TRPar
node from TRPar#apply(Switch)
.
node
- the calling TRPar
nodevoid caseTLBrace(TLBrace node)
TLBrace
node from TLBrace#apply(Switch)
.
node
- the calling TLBrace
nodevoid caseTRBrace(TRBrace node)
TRBrace
node from TRBrace#apply(Switch)
.
node
- the calling TRBrace
nodevoid caseTSemicolon(TSemicolon node)
TSemicolon
node from TSemicolon#apply(Switch)
.
node
- the calling TSemicolon
nodevoid caseTComma(TComma node)
TComma
node from TComma#apply(Switch)
.
node
- the calling TComma
nodevoid caseTAssign(TAssign node)
TAssign
node from TAssign#apply(Switch)
.
node
- the calling TAssign
nodevoid caseTPlus(TPlus node)
TPlus
node from TPlus#apply(Switch)
.
node
- the calling TPlus
nodevoid caseTMinus(TMinus node)
TMinus
node from TMinus#apply(Switch)
.
node
- the calling TMinus
nodevoid caseTStar(TStar node)
TStar
node from TStar#apply(Switch)
.
node
- the calling TStar
nodevoid caseTDiv(TDiv node)
TDiv
node from TDiv#apply(Switch)
.
node
- the calling TDiv
nodevoid caseTAnd(TAnd node)
TAnd
node from TAnd#apply(Switch)
.
node
- the calling TAnd
nodevoid caseTGt(TGt node)
TGt
node from TGt#apply(Switch)
.
node
- the calling TGt
nodevoid caseTEq(TEq node)
TEq
node from TEq#apply(Switch)
.
node
- the calling TEq
nodevoid caseTIntegerConst(TIntegerConst node)
TIntegerConst
node from TIntegerConst#apply(Switch)
.
node
- the calling TIntegerConst
nodevoid caseTIdentifier(TIdentifier node)
TIdentifier
node from TIdentifier#apply(Switch)
.
node
- the calling TIdentifier
nodevoid caseEOF(EOF node)
EOF
node from EOF#apply(Switch)
.
node
- the calling EOF
token
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |