|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttip.cfg.CFGAnswerAdapter<Collection<T>>
tip.util.SubExpressions<T>
T
- the type of the collected child nodespublic class SubExpressions<T extends Node>
SubExpressions
implements the CFGAnswerAdapter
to retrieve
child nodes accepted by a NodeFilter
in subexpressions of nodes
associated with program points in a control flow graph.
Constructor Summary | |
---|---|
SubExpressions(NodeFilter<T> filter)
Creates a new SubExpressions instance using the
NodeFilter filter for filtering nodes. |
Method Summary | |
---|---|
Collection<T> |
caseCIfThenElseStmPoint(AIfThenElseStm node,
CIfThenElseStmPoint point)
Returns all child nodes of the condition expression of node
accepted by the filter and node if it is accepted by the filter. |
Collection<T> |
caseCIfThenStmPoint(AIfThenStm node,
CIfThenStmPoint point)
Returns all child nodes of the condition expression of node
accepted by the filter and node if it is accepted by the filter. |
Collection<T> |
caseCWhileStmPoint(AWhileStm node,
CWhileStmPoint point)
Returns all child nodes of the condition expression of node
accepted by the filter and node if it is accepted by the filter. |
Collection<T> |
caseEntryPoint(Node node,
EntryPoint point)
Returns an empty set of nodes. |
Collection<T> |
caseExitPoint(Node node,
ExitPoint point)
Returns an empty set of nodes. |
Collection<T> |
defaultNode(Node node,
IProgramPoint point)
Returns all child nodes of node accepted by the filter. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SubExpressions(NodeFilter<T> filter)
SubExpressions
instance using the
NodeFilter
filter
for filtering nodes.
filter
- the filter used for filtering nodesMethod Detail |
---|
public Collection<T> defaultNode(Node node, IProgramPoint point)
node
accepted by the filter.
defaultNode
in class CFGAnswerAdapter<Collection<T extends Node>>
node
- the Node
associated with point
point
- the IProgramPoint
calling the method
node
accepted by the filterpublic Collection<T> caseEntryPoint(Node node, EntryPoint point)
caseEntryPoint
in interface CFGAnswer<Collection<T extends Node>>
caseEntryPoint
in class CFGAnswerAdapter<Collection<T extends Node>>
node
- the Node
associated with point
point
- the EntryPoint
calling the method
public Collection<T> caseExitPoint(Node node, ExitPoint point)
caseExitPoint
in interface CFGAnswer<Collection<T extends Node>>
caseExitPoint
in class CFGAnswerAdapter<Collection<T extends Node>>
node
- the Node
associated with point
point
- the ExitPoint
calling the method
public Collection<T> caseCIfThenStmPoint(AIfThenStm node, CIfThenStmPoint point)
node
accepted by the filter and node
if it is accepted by the filter.
caseCIfThenStmPoint
in interface CFGAnswer<Collection<T extends Node>>
caseCIfThenStmPoint
in class CFGAnswerAdapter<Collection<T extends Node>>
node
- the AIfThenStm
associated with point
point
- the CIfThenStmPoint
calling the method
node
accepted by the filterpublic Collection<T> caseCIfThenElseStmPoint(AIfThenElseStm node, CIfThenElseStmPoint point)
node
accepted by the filter and node
if it is accepted by the filter.
caseCIfThenElseStmPoint
in interface CFGAnswer<Collection<T extends Node>>
caseCIfThenElseStmPoint
in class CFGAnswerAdapter<Collection<T extends Node>>
node
- the AIfThenElseStm
associated with point
point
- the CIfThenElseStmPoint
calling the method
node
accepted by the filterpublic Collection<T> caseCWhileStmPoint(AWhileStm node, CWhileStmPoint point)
node
accepted by the filter and node
if it is accepted by the filter.
caseCWhileStmPoint
in interface CFGAnswer<Collection<T extends Node>>
caseCWhileStmPoint
in class CFGAnswerAdapter<Collection<T extends Node>>
node
- the AWhileStm
associated with point
point
- the CWhileStmPoint
calling the method
node
accepted by the filter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |