|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttip.cfg.AProgramPoint
tip.cfg.ExitPoint
public class ExitPoint
ExitPoint
represents the exit point of a control flow graph.
Constructor Summary | |
---|---|
ExitPoint()
Creates a new exit point with no associated node. |
|
ExitPoint(Node _node_)
Creates a new exit point associated with _node_ . |
Method Summary | ||
---|---|---|
|
apply(CFGAnswer<A> caller)
Returns an answer by calling CFGAnswer.caseExitPoint(Node,ExitPoint)
the visitor caller with this exit point. |
|
|
apply(CFGQuestionAnswer<Q,A> caller,
Q question)
Returns an answer by calling CFGQuestionAnswer.caseExitPoint(Node,ExitPoint,Object)
the visitor caller with this exit point. |
|
boolean |
apply(ICFGAnalysis analysis)
Calls ICFGAnalysis.caseExitPoint(Node,ExitPoint) on
analysis and returns the result. |
|
ExitPoint |
clone()
Returns a clone of the exit point with no predecessors or successors. |
|
String |
getNodeText(Answer<String> nodeText)
Returns a textual representation of the exit point, which is "{exit}" . |
|
String |
toString()
Returns a textual representation of this ExitPoint . |
Methods inherited from class tip.cfg.AProgramPoint |
---|
addPredecessor, addSuccessor, getNode, getPredecessors, getSuccessors, getVicinity, removePredecessor, removeSuccessor |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ExitPoint()
public ExitPoint(Node _node_)
_node_
.
_node_
- the Node
associated with this exit pointMethod Detail |
---|
public boolean apply(ICFGAnalysis analysis)
ICFGAnalysis.caseExitPoint(Node,ExitPoint)
on
analysis
and returns the result.
ICFGAnalysis.caseExitPoint(Node,ExitPoint)
on analysis
public String getNodeText(Answer<String> nodeText)
"{exit}"
.
nodeText
- the Answer
used
public <A> A apply(CFGAnswer<A> caller)
CFGAnswer.caseExitPoint(Node,ExitPoint)
the visitor caller
with this exit point.
caller
- the Answer
used
caller
public <Q,A> A apply(CFGQuestionAnswer<Q,A> caller, Q question)
CFGQuestionAnswer.caseExitPoint(Node,ExitPoint,Object)
the visitor caller
with this exit point.
caller
- the QuestionAnswer
usedquestion
- the question used
caller
on question
public ExitPoint clone()
clone
in interface IProgramPoint
clone
in class AProgramPoint
public String toString()
ExitPoint
.
toString
in class Object
ExitPoint
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |