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