|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttip.analysis.AnalysisAdapter
tip.analysis.DepthFirstAdapter
tip.cfg.CFGBuilder
public class CFGBuilder
CFGBuilder
constructs control flow graphs for an AST based on the
definitions in the SableCC grammar 'Control Flow Graph'-section.
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 |
Method Detail |
---|
public void inABlockStm(ABlockStm node)
DepthFirstAdapter
DepthFirstAdapter.caseABlockStm(ABlockStm)
before traversing the children of ABlockStm
.
inABlockStm
in class DepthFirstAdapter
node
- the visited ABlockStm
nodepublic void inAIfThenStm(AIfThenStm node)
DepthFirstAdapter
DepthFirstAdapter.caseAIfThenStm(AIfThenStm)
before traversing the children of AIfThenStm
.
inAIfThenStm
in class DepthFirstAdapter
node
- the visited AIfThenStm
nodepublic void inAWhileStm(AWhileStm node)
DepthFirstAdapter
DepthFirstAdapter.caseAWhileStm(AWhileStm)
before traversing the children of AWhileStm
.
inAWhileStm
in class DepthFirstAdapter
node
- the visited AWhileStm
nodepublic void inAPointerExp(APointerExp node)
DepthFirstAdapter
DepthFirstAdapter.caseAPointerExp(APointerExp)
before traversing the children of APointerExp
.
inAPointerExp
in class DepthFirstAdapter
node
- the visited APointerExp
nodepublic void inAMallocExp(AMallocExp node)
DepthFirstAdapter
DepthFirstAdapter.caseAMallocExp(AMallocExp)
before traversing the children of AMallocExp
.
inAMallocExp
in class DepthFirstAdapter
node
- the visited AMallocExp
nodepublic void inAFuncDecl(AFuncDecl node)
DepthFirstAdapter
DepthFirstAdapter.caseAFuncDecl(AFuncDecl)
before traversing the children of AFuncDecl
.
inAFuncDecl
in class DepthFirstAdapter
node
- the visited AFuncDecl
nodepublic void outAFuncDecl(AFuncDecl node)
DepthFirstAdapter
DepthFirstAdapter.caseAFuncDecl(AFuncDecl)
after traversing the children of AFuncDecl
.
outAFuncDecl
in class DepthFirstAdapter
node
- the visited AFuncDecl
nodepublic void inABlock(ABlock node)
DepthFirstAdapter
DepthFirstAdapter.caseABlock(ABlock)
before traversing the children of ABlock
.
inABlock
in class DepthFirstAdapter
node
- the visited ABlock
nodepublic void inADerefExp(ADerefExp node)
DepthFirstAdapter
DepthFirstAdapter.caseADerefExp(ADerefExp)
before traversing the children of ADerefExp
.
inADerefExp
in class DepthFirstAdapter
node
- the visited ADerefExp
nodepublic void inANullExp(ANullExp node)
DepthFirstAdapter
DepthFirstAdapter.caseANullExp(ANullExp)
before traversing the children of ANullExp
.
inANullExp
in class DepthFirstAdapter
node
- the visited ANullExp
nodepublic void inAIntConstExp(AIntConstExp node)
DepthFirstAdapter
DepthFirstAdapter.caseAIntConstExp(AIntConstExp)
before traversing the children of AIntConstExp
.
inAIntConstExp
in class DepthFirstAdapter
node
- the visited AIntConstExp
nodepublic void inABinopExp(ABinopExp node)
DepthFirstAdapter
DepthFirstAdapter.caseABinopExp(ABinopExp)
before traversing the children of ABinopExp
.
inABinopExp
in class DepthFirstAdapter
node
- the visited ABinopExp
nodepublic void inAFunctionPtrCallExp(AFunctionPtrCallExp node)
DepthFirstAdapter
DepthFirstAdapter.caseAFunctionPtrCallExp(AFunctionPtrCallExp)
before traversing the children of AFunctionPtrCallExp
.
inAFunctionPtrCallExp
in class DepthFirstAdapter
node
- the visited AFunctionPtrCallExp
nodepublic void inAAssignVarStm(AAssignVarStm node)
DepthFirstAdapter
DepthFirstAdapter.caseAAssignVarStm(AAssignVarStm)
before traversing the children of AAssignVarStm
.
inAAssignVarStm
in class DepthFirstAdapter
node
- the visited AAssignVarStm
nodepublic void inAOutputStm(AOutputStm node)
DepthFirstAdapter
DepthFirstAdapter.caseAOutputStm(AOutputStm)
before traversing the children of AOutputStm
.
inAOutputStm
in class DepthFirstAdapter
node
- the visited AOutputStm
nodepublic void inAReturnStm(AReturnStm node)
DepthFirstAdapter
DepthFirstAdapter.caseAReturnStm(AReturnStm)
before traversing the children of AReturnStm
.
inAReturnStm
in class DepthFirstAdapter
node
- the visited AReturnStm
nodepublic void inAFunctionCallExp(AFunctionCallExp node)
DepthFirstAdapter
DepthFirstAdapter.caseAFunctionCallExp(AFunctionCallExp)
before traversing the children of AFunctionCallExp
.
inAFunctionCallExp
in class DepthFirstAdapter
node
- the visited AFunctionCallExp
nodepublic void inADeclStm(ADeclStm node)
DepthFirstAdapter
DepthFirstAdapter.caseADeclStm(ADeclStm)
before traversing the children of ADeclStm
.
inADeclStm
in class DepthFirstAdapter
node
- the visited ADeclStm
nodepublic void inAInputExp(AInputExp node)
DepthFirstAdapter
DepthFirstAdapter.caseAInputExp(AInputExp)
before traversing the children of AInputExp
.
inAInputExp
in class DepthFirstAdapter
node
- the visited AInputExp
nodepublic void inABody(ABody node)
DepthFirstAdapter
DepthFirstAdapter.caseABody(ABody)
before traversing the children of ABody
.
inABody
in class DepthFirstAdapter
node
- the visited ABody
nodepublic void inAIfThenElseStm(AIfThenElseStm node)
DepthFirstAdapter
DepthFirstAdapter.caseAIfThenElseStm(AIfThenElseStm)
before traversing the children of AIfThenElseStm
.
inAIfThenElseStm
in class DepthFirstAdapter
node
- the visited AIfThenElseStm
nodepublic void inAVarExp(AVarExp node)
DepthFirstAdapter
DepthFirstAdapter.caseAVarExp(AVarExp)
before traversing the children of AVarExp
.
inAVarExp
in class DepthFirstAdapter
node
- the visited AVarExp
nodepublic void inAAssignPtrStm(AAssignPtrStm node)
DepthFirstAdapter
DepthFirstAdapter.caseAAssignPtrStm(AAssignPtrStm)
before traversing the children of AAssignPtrStm
.
inAAssignPtrStm
in class DepthFirstAdapter
node
- the visited AAssignPtrStm
nodepublic static ICFGCollection createCFGCollection(Node node)
node
.
node
- the node in which the traversal starts
node
public static ICFGCollection createCFGCollection(Node node, NodeFilter filter)
node
using filter
to decide which program point such
appear in the resulting control flow graphs.
node
- the node in which the traversal startsfilter
- the NodeFilter
used in the construction
node
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |