|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttip.analysis.QuestionAdapter<Q>
Q
- the type of the questionspublic class QuestionAdapter<Q>
QuestionAdapter
implements the default behaviour of the Question
interface.
Constructor Summary | |
---|---|
QuestionAdapter()
|
Method Summary | |
---|---|
void |
caseABinopExp(ABinopExp node,
Q question)
Action for applying a question to a ABinopExp node. |
void |
caseABlock(ABlock node,
Q question)
Action for applying a question to a ABlock node. |
void |
caseABlockStm(ABlockStm node,
Q question)
Action for applying a question to a ABlockStm node. |
void |
caseABody(ABody node,
Q question)
Action for applying a question to a ABody node. |
void |
caseADeclStm(ADeclStm node,
Q question)
Action for applying a question to a ADeclStm node. |
void |
caseADerefExp(ADerefExp node,
Q question)
Action for applying a question to a ADerefExp node. |
void |
caseADivideBinop(ADivideBinop node,
Q question)
Action for applying a question to a ADivideBinop node. |
void |
caseAEqBinop(AEqBinop node,
Q question)
Action for applying a question to a AEqBinop node. |
void |
caseAFuncDecl(AFuncDecl node,
Q question)
Action for applying a question to a AFuncDecl node. |
void |
caseAFunctionCallExp(AFunctionCallExp node,
Q question)
Action for applying a question to a AFunctionCallExp node. |
void |
caseAFunctionPtrCallExp(AFunctionPtrCallExp node,
Q question)
Action for applying a question to a AFunctionPtrCallExp node. |
void |
caseAGtBinop(AGtBinop node,
Q question)
Action for applying a question to a AGtBinop node. |
void |
caseAIfThenElseStm(AIfThenElseStm node,
Q question)
Action for applying a question to a AIfThenElseStm node. |
void |
caseAIfThenStm(AIfThenStm node,
Q question)
Action for applying a question to a AIfThenStm node. |
void |
caseAInputExp(AInputExp node,
Q question)
Action for applying a question to a AInputExp node. |
void |
caseAIntConstExp(AIntConstExp node,
Q question)
Action for applying a question to a AIntConstExp node. |
void |
caseALocalDecl(ALocalDecl node,
Q question)
Action for applying a question to a ALocalDecl node. |
void |
caseAMallocExp(AMallocExp node,
Q question)
Action for applying a question to a AMallocExp node. |
void |
caseAMinusBinop(AMinusBinop node,
Q question)
Action for applying a question to a AMinusBinop node. |
void |
caseANullExp(ANullExp node,
Q question)
Action for applying a question to a ANullExp node. |
void |
caseAOutputStm(AOutputStm node,
Q question)
Action for applying a question to a AOutputStm node. |
void |
caseAPlusBinop(APlusBinop node,
Q question)
Action for applying a question to a APlusBinop node. |
void |
caseAPointerExp(APointerExp node,
Q question)
Action for applying a question to a APointerExp node. |
void |
caseAProgram(AProgram node,
Q question)
Action for applying a question to a AProgram node. |
void |
caseAReturnStm(AReturnStm node,
Q question)
Action for applying a question to a AReturnStm node. |
void |
caseATimesBinop(ATimesBinop node,
Q question)
Action for applying a question to a ATimesBinop node. |
void |
caseAVarExp(AVarExp node,
Q question)
Action for applying a question to a AVarExp node. |
void |
caseAWhileStm(AWhileStm node,
Q question)
Action for applying a question to a AWhileStm node. |
void |
caseEOF(EOF node,
Q question)
Action for applying a question to a EOF node. |
void |
caseStart(Start node,
Q question)
Action for applying a question to a Start node. |
void |
caseTAnd(TAnd node,
Q question)
Action for applying a question to a TAnd node. |
void |
caseTAssign(TAssign node,
Q question)
Action for applying a question to a TAssign node. |
void |
caseTComma(TComma node,
Q question)
Action for applying a question to a TComma node. |
void |
caseTCommentBlock(TCommentBlock node,
Q question)
Action for applying a question to a TCommentBlock node. |
void |
caseTCommentSingle(TCommentSingle node,
Q question)
Action for applying a question to a TCommentSingle node. |
void |
caseTDiv(TDiv node,
Q question)
Action for applying a question to a TDiv node. |
void |
caseTElse(TElse node,
Q question)
Action for applying a question to a TElse node. |
void |
caseTEq(TEq node,
Q question)
Action for applying a question to a TEq node. |
void |
caseTGt(TGt node,
Q question)
Action for applying a question to a TGt node. |
void |
caseTIdentifier(TIdentifier node,
Q question)
Action for applying a question to a TIdentifier node. |
void |
caseTIf(TIf node,
Q question)
Action for applying a question to a TIf node. |
void |
caseTInput(TInput node,
Q question)
Action for applying a question to a TInput node. |
void |
caseTIntegerConst(TIntegerConst node,
Q question)
Action for applying a question to a TIntegerConst node. |
void |
caseTLBrace(TLBrace node,
Q question)
Action for applying a question to a TLBrace node. |
void |
caseTLPar(TLPar node,
Q question)
Action for applying a question to a TLPar node. |
void |
caseTMalloc(TMalloc node,
Q question)
Action for applying a question to a TMalloc node. |
void |
caseTMinus(TMinus node,
Q question)
Action for applying a question to a TMinus node. |
void |
caseTNull(TNull node,
Q question)
Action for applying a question to a TNull node. |
void |
caseTOutput(TOutput node,
Q question)
Action for applying a question to a TOutput node. |
void |
caseTPlus(TPlus node,
Q question)
Action for applying a question to a TPlus node. |
void |
caseTRBrace(TRBrace node,
Q question)
Action for applying a question to a TRBrace node. |
void |
caseTReturn(TReturn node,
Q question)
Action for applying a question to a TReturn node. |
void |
caseTRPar(TRPar node,
Q question)
Action for applying a question to a TRPar node. |
void |
caseTSemicolon(TSemicolon node,
Q question)
Action for applying a question to a TSemicolon node. |
void |
caseTStar(TStar node,
Q question)
Action for applying a question to a TStar node. |
void |
caseTVar(TVar node,
Q question)
Action for applying a question to a TVar node. |
void |
caseTWhile(TWhile node,
Q question)
Action for applying a question to a TWhile node. |
void |
caseTWhiteSpace(TWhiteSpace node,
Q question)
Action for applying a question to a TWhiteSpace node. |
void |
caseAAssignPtrStm(AAssignPtrStm node,
Q question)
Action for applying a question to a AAssignPtrStm node. |
void |
caseAAssignVarStm(AAssignVarStm node,
Q question)
Action for applying a question to a AAssignVarStm node. |
void |
defaultNode(Node node,
Q question)
Default action for a question to a Node . |
void |
defaultPBinop(PBinop node,
Q question)
Action for applying a question to a PBinop node. |
void |
defaultPBlock(PBlock node,
Q question)
Action for applying a question to a PBlock node. |
void |
defaultPBody(PBody node,
Q question)
Action for applying a question to a PBody node. |
void |
defaultPDecl(PDecl node,
Q question)
Action for applying a question to a PDecl node. |
void |
defaultPExp(PExp node,
Q question)
Action for applying a question to a PExp node. |
void |
defaultPProgram(PProgram node,
Q question)
Action for applying a question to a PProgram node. |
void |
defaultPStm(PStm node,
Q question)
Action for applying a question to a PStm node. |
void |
defaultToken(Token token,
Q question)
Default action for a question to a Token . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QuestionAdapter()
Method Detail |
---|
public void defaultNode(Node node, Q question)
Node
.
node
- the calling Node
question
- the provided questionpublic void defaultToken(Token token, Q question)
Token
.
The call is deferred to defaultNode(Node,Object)
.
token
- the calling Token
question
- the provided questionpublic void caseStart(Start node, Q question)
Start
node.
The call is deferred to defaultNode(Node,Object)
.
caseStart
in interface Question<Q>
node
- the calling Start
nodequestion
- the provided questionpublic void caseAProgram(AProgram node, Q question)
AProgram
node.
The call is deferred to defaultPProgram(PProgram,Object)
.
caseAProgram
in interface Question<Q>
node
- the calling AProgram
nodequestion
- the provided questionpublic void caseAFuncDecl(AFuncDecl node, Q question)
AFuncDecl
node.
The call is deferred to defaultPDecl(PDecl,Object)
.
caseAFuncDecl
in interface Question<Q>
node
- the calling AFuncDecl
nodequestion
- the provided questionpublic void caseALocalDecl(ALocalDecl node, Q question)
ALocalDecl
node.
The call is deferred to defaultPDecl(PDecl,Object)
.
caseALocalDecl
in interface Question<Q>
node
- the calling ALocalDecl
nodequestion
- the provided questionpublic void caseABody(ABody node, Q question)
ABody
node.
The call is deferred to defaultPBody(PBody,Object)
.
caseABody
in interface Question<Q>
node
- the calling ABody
nodequestion
- the provided questionpublic void caseABlock(ABlock node, Q question)
ABlock
node.
The call is deferred to defaultPBlock(PBlock,Object)
.
caseABlock
in interface Question<Q>
node
- the calling ABlock
nodequestion
- the provided questionpublic void caseAPlusBinop(APlusBinop node, Q question)
APlusBinop
node.
The call is deferred to defaultPBinop(PBinop,Object)
.
caseAPlusBinop
in interface Question<Q>
node
- the calling APlusBinop
nodequestion
- the provided questionpublic void caseAMinusBinop(AMinusBinop node, Q question)
AMinusBinop
node.
The call is deferred to defaultPBinop(PBinop,Object)
.
caseAMinusBinop
in interface Question<Q>
node
- the calling AMinusBinop
nodequestion
- the provided questionpublic void caseATimesBinop(ATimesBinop node, Q question)
ATimesBinop
node.
The call is deferred to defaultPBinop(PBinop,Object)
.
caseATimesBinop
in interface Question<Q>
node
- the calling ATimesBinop
nodequestion
- the provided questionpublic void caseADivideBinop(ADivideBinop node, Q question)
ADivideBinop
node.
The call is deferred to defaultPBinop(PBinop,Object)
.
caseADivideBinop
in interface Question<Q>
node
- the calling ADivideBinop
nodequestion
- the provided questionpublic void caseAEqBinop(AEqBinop node, Q question)
AEqBinop
node.
The call is deferred to defaultPBinop(PBinop,Object)
.
caseAEqBinop
in interface Question<Q>
node
- the calling AEqBinop
nodequestion
- the provided questionpublic void caseAGtBinop(AGtBinop node, Q question)
AGtBinop
node.
The call is deferred to defaultPBinop(PBinop,Object)
.
caseAGtBinop
in interface Question<Q>
node
- the calling AGtBinop
nodequestion
- the provided questionpublic void caseABinopExp(ABinopExp node, Q question)
ABinopExp
node.
The call is deferred to defaultPExp(PExp,Object)
.
caseABinopExp
in interface Question<Q>
node
- the calling ABinopExp
nodequestion
- the provided questionpublic void caseAPointerExp(APointerExp node, Q question)
APointerExp
node.
The call is deferred to defaultPExp(PExp,Object)
.
caseAPointerExp
in interface Question<Q>
node
- the calling APointerExp
nodequestion
- the provided questionpublic void caseADerefExp(ADerefExp node, Q question)
ADerefExp
node.
The call is deferred to defaultPExp(PExp,Object)
.
caseADerefExp
in interface Question<Q>
node
- the calling ADerefExp
nodequestion
- the provided questionpublic void caseAIntConstExp(AIntConstExp node, Q question)
AIntConstExp
node.
The call is deferred to defaultPExp(PExp,Object)
.
caseAIntConstExp
in interface Question<Q>
node
- the calling AIntConstExp
nodequestion
- the provided questionpublic void caseAFunctionCallExp(AFunctionCallExp node, Q question)
AFunctionCallExp
node.
The call is deferred to defaultPExp(PExp,Object)
.
caseAFunctionCallExp
in interface Question<Q>
node
- the calling AFunctionCallExp
nodequestion
- the provided questionpublic void caseAFunctionPtrCallExp(AFunctionPtrCallExp node, Q question)
AFunctionPtrCallExp
node.
The call is deferred to defaultPExp(PExp,Object)
.
caseAFunctionPtrCallExp
in interface Question<Q>
node
- the calling AFunctionPtrCallExp
nodequestion
- the provided questionpublic void caseAVarExp(AVarExp node, Q question)
AVarExp
node.
The call is deferred to defaultPExp(PExp,Object)
.
caseAVarExp
in interface Question<Q>
node
- the calling AVarExp
nodequestion
- the provided questionpublic void caseAInputExp(AInputExp node, Q question)
AInputExp
node.
The call is deferred to defaultPExp(PExp,Object)
.
caseAInputExp
in interface Question<Q>
node
- the calling AInputExp
nodequestion
- the provided questionpublic void caseAMallocExp(AMallocExp node, Q question)
AMallocExp
node.
The call is deferred to defaultPExp(PExp,Object)
.
caseAMallocExp
in interface Question<Q>
node
- the calling AMallocExp
nodequestion
- the provided questionpublic void caseANullExp(ANullExp node, Q question)
ANullExp
node.
The call is deferred to defaultPExp(PExp,Object)
.
caseANullExp
in interface Question<Q>
node
- the calling ANullExp
nodequestion
- the provided questionpublic void caseAIfThenStm(AIfThenStm node, Q question)
AIfThenStm
node.
The call is deferred to defaultPStm(PStm,Object)
.
caseAIfThenStm
in interface Question<Q>
node
- the calling AIfThenStm
nodequestion
- the provided questionpublic void caseAIfThenElseStm(AIfThenElseStm node, Q question)
AIfThenElseStm
node.
The call is deferred to defaultPStm(PStm,Object)
.
caseAIfThenElseStm
in interface Question<Q>
node
- the calling AIfThenElseStm
nodequestion
- the provided questionpublic void caseAWhileStm(AWhileStm node, Q question)
AWhileStm
node.
The call is deferred to defaultPStm(PStm,Object)
.
caseAWhileStm
in interface Question<Q>
node
- the calling AWhileStm
nodequestion
- the provided questionpublic void caseADeclStm(ADeclStm node, Q question)
ADeclStm
node.
The call is deferred to defaultPStm(PStm,Object)
.
caseADeclStm
in interface Question<Q>
node
- the calling ADeclStm
nodequestion
- the provided questionpublic void caseAReturnStm(AReturnStm node, Q question)
AReturnStm
node.
The call is deferred to defaultPStm(PStm,Object)
.
caseAReturnStm
in interface Question<Q>
node
- the calling AReturnStm
nodequestion
- the provided questionpublic void caseAOutputStm(AOutputStm node, Q question)
AOutputStm
node.
The call is deferred to defaultPStm(PStm,Object)
.
caseAOutputStm
in interface Question<Q>
node
- the calling AOutputStm
nodequestion
- the provided questionpublic void caseAAssignVarStm(AAssignVarStm node, Q question)
AAssignVarStm
node.
The call is deferred to defaultPStm(PStm,Object)
.
caseAAssignVarStm
in interface Question<Q>
node
- the calling AAssignVarStm
nodequestion
- the provided questionpublic void caseAAssignPtrStm(AAssignPtrStm node, Q question)
AAssignPtrStm
node.
The call is deferred to defaultPStm(PStm,Object)
.
caseAAssignPtrStm
in interface Question<Q>
node
- the calling AAssignPtrStm
nodequestion
- the provided questionpublic void caseABlockStm(ABlockStm node, Q question)
ABlockStm
node.
The call is deferred to defaultPStm(PStm,Object)
.
caseABlockStm
in interface Question<Q>
node
- the calling ABlockStm
nodequestion
- the provided questionpublic void caseTWhiteSpace(TWhiteSpace node, Q question)
TWhiteSpace
node.
The call is deferred to defaultToken(Token,Object)
.
caseTWhiteSpace
in interface Question<Q>
node
- the calling TWhiteSpace
nodequestion
- the provided questionpublic void caseTCommentSingle(TCommentSingle node, Q question)
TCommentSingle
node.
The call is deferred to defaultToken(Token,Object)
.
caseTCommentSingle
in interface Question<Q>
node
- the calling TCommentSingle
nodequestion
- the provided questionpublic void caseTCommentBlock(TCommentBlock node, Q question)
TCommentBlock
node.
The call is deferred to defaultToken(Token,Object)
.
caseTCommentBlock
in interface Question<Q>
node
- the calling TCommentBlock
nodequestion
- the provided questionpublic void caseTVar(TVar node, Q question)
TVar
node.
The call is deferred to defaultToken(Token,Object)
.
caseTVar
in interface Question<Q>
node
- the calling TVar
nodequestion
- the provided questionpublic void caseTInput(TInput node, Q question)
TInput
node.
The call is deferred to defaultToken(Token,Object)
.
caseTInput
in interface Question<Q>
node
- the calling TInput
nodequestion
- the provided questionpublic void caseTOutput(TOutput node, Q question)
TOutput
node.
The call is deferred to defaultToken(Token,Object)
.
caseTOutput
in interface Question<Q>
node
- the calling TOutput
nodequestion
- the provided questionpublic void caseTIf(TIf node, Q question)
TIf
node.
The call is deferred to defaultToken(Token,Object)
.
caseTIf
in interface Question<Q>
node
- the calling TIf
nodequestion
- the provided questionpublic void caseTElse(TElse node, Q question)
TElse
node.
The call is deferred to defaultToken(Token,Object)
.
caseTElse
in interface Question<Q>
node
- the calling TElse
nodequestion
- the provided questionpublic void caseTWhile(TWhile node, Q question)
TWhile
node.
The call is deferred to defaultToken(Token,Object)
.
caseTWhile
in interface Question<Q>
node
- the calling TWhile
nodequestion
- the provided questionpublic void caseTReturn(TReturn node, Q question)
TReturn
node.
The call is deferred to defaultToken(Token,Object)
.
caseTReturn
in interface Question<Q>
node
- the calling TReturn
nodequestion
- the provided questionpublic void caseTMalloc(TMalloc node, Q question)
TMalloc
node.
The call is deferred to defaultToken(Token,Object)
.
caseTMalloc
in interface Question<Q>
node
- the calling TMalloc
nodequestion
- the provided questionpublic void caseTNull(TNull node, Q question)
TNull
node.
The call is deferred to defaultToken(Token,Object)
.
caseTNull
in interface Question<Q>
node
- the calling TNull
nodequestion
- the provided questionpublic void caseTLPar(TLPar node, Q question)
TLPar
node.
The call is deferred to defaultToken(Token,Object)
.
caseTLPar
in interface Question<Q>
node
- the calling TLPar
nodequestion
- the provided questionpublic void caseTRPar(TRPar node, Q question)
TRPar
node.
The call is deferred to defaultToken(Token,Object)
.
caseTRPar
in interface Question<Q>
node
- the calling TRPar
nodequestion
- the provided questionpublic void caseTLBrace(TLBrace node, Q question)
TLBrace
node.
The call is deferred to defaultToken(Token,Object)
.
caseTLBrace
in interface Question<Q>
node
- the calling TLBrace
nodequestion
- the provided questionpublic void caseTRBrace(TRBrace node, Q question)
TRBrace
node.
The call is deferred to defaultToken(Token,Object)
.
caseTRBrace
in interface Question<Q>
node
- the calling TRBrace
nodequestion
- the provided questionpublic void caseTSemicolon(TSemicolon node, Q question)
TSemicolon
node.
The call is deferred to defaultToken(Token,Object)
.
caseTSemicolon
in interface Question<Q>
node
- the calling TSemicolon
nodequestion
- the provided questionpublic void caseTComma(TComma node, Q question)
TComma
node.
The call is deferred to defaultToken(Token,Object)
.
caseTComma
in interface Question<Q>
node
- the calling TComma
nodequestion
- the provided questionpublic void caseTAssign(TAssign node, Q question)
TAssign
node.
The call is deferred to defaultToken(Token,Object)
.
caseTAssign
in interface Question<Q>
node
- the calling TAssign
nodequestion
- the provided questionpublic void caseTPlus(TPlus node, Q question)
TPlus
node.
The call is deferred to defaultToken(Token,Object)
.
caseTPlus
in interface Question<Q>
node
- the calling TPlus
nodequestion
- the provided questionpublic void caseTMinus(TMinus node, Q question)
TMinus
node.
The call is deferred to defaultToken(Token,Object)
.
caseTMinus
in interface Question<Q>
node
- the calling TMinus
nodequestion
- the provided questionpublic void caseTStar(TStar node, Q question)
TStar
node.
The call is deferred to defaultToken(Token,Object)
.
caseTStar
in interface Question<Q>
node
- the calling TStar
nodequestion
- the provided questionpublic void caseTDiv(TDiv node, Q question)
TDiv
node.
The call is deferred to defaultToken(Token,Object)
.
caseTDiv
in interface Question<Q>
node
- the calling TDiv
nodequestion
- the provided questionpublic void caseTAnd(TAnd node, Q question)
TAnd
node.
The call is deferred to defaultToken(Token,Object)
.
caseTAnd
in interface Question<Q>
node
- the calling TAnd
nodequestion
- the provided questionpublic void caseTGt(TGt node, Q question)
TGt
node.
The call is deferred to defaultToken(Token,Object)
.
caseTGt
in interface Question<Q>
node
- the calling TGt
nodequestion
- the provided questionpublic void caseTEq(TEq node, Q question)
TEq
node.
The call is deferred to defaultToken(Token,Object)
.
caseTEq
in interface Question<Q>
node
- the calling TEq
nodequestion
- the provided questionpublic void caseTIntegerConst(TIntegerConst node, Q question)
TIntegerConst
node.
The call is deferred to defaultToken(Token,Object)
.
caseTIntegerConst
in interface Question<Q>
node
- the calling TIntegerConst
nodequestion
- the provided questionpublic void caseTIdentifier(TIdentifier node, Q question)
TIdentifier
node.
The call is deferred to defaultToken(Token,Object)
.
caseTIdentifier
in interface Question<Q>
node
- the calling TIdentifier
nodequestion
- the provided questionpublic void defaultPProgram(PProgram node, Q question)
PProgram
node.
The call is deferred to defaultNode(Node,Object)
.
node
- the calling PProgram
nodequestion
- the provided questionpublic void defaultPDecl(PDecl node, Q question)
PDecl
node.
The call is deferred to defaultNode(Node,Object)
.
node
- the calling PDecl
nodequestion
- the provided questionpublic void defaultPBody(PBody node, Q question)
PBody
node.
The call is deferred to defaultNode(Node,Object)
.
node
- the calling PBody
nodequestion
- the provided questionpublic void defaultPBlock(PBlock node, Q question)
PBlock
node.
The call is deferred to defaultNode(Node,Object)
.
node
- the calling PBlock
nodequestion
- the provided questionpublic void defaultPBinop(PBinop node, Q question)
PBinop
node.
The call is deferred to defaultNode(Node,Object)
.
node
- the calling PBinop
nodequestion
- the provided questionpublic void defaultPExp(PExp node, Q question)
PExp
node.
The call is deferred to defaultNode(Node,Object)
.
node
- the calling PExp
nodequestion
- the provided questionpublic void defaultPStm(PStm node, Q question)
PStm
node.
The call is deferred to defaultNode(Node,Object)
.
node
- the calling PStm
nodequestion
- the provided questionpublic void caseEOF(EOF node, Q question)
EOF
node.
The call is deferred to defaultToken(Token,Object)
.
caseEOF
in interface Question<Q>
node
- the calling EOF
nodequestion
- the provided question
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |