|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttip.cfg.AProgramPoint
tip.cfg.CIfThenStmPoint
public class CIfThenStmPoint
CIfThenStmPoint
is a program point in a control flow graph associated with a
AIfThenStm
.
Constructor Summary | |
---|---|
CIfThenStmPoint(AIfThenStm _node_)
Creates a new CIfThenStmPoint associated with the AIfThenStm _node_
with the label "" . |
|
CIfThenStmPoint(AIfThenStm _node_,
String _label_)
Creates a new CIfThenStmPoint associated with the AIfThenStm _node_
with the label _label_ . |
Method Summary | ||
---|---|---|
|
apply(CFGAnswer<A> caller)
Returns an answer by calling CFGAnswer.caseCIfThenStmPoint(AIfThenStm,CIfThenStmPoint)
the visitor caller with this program point. |
|
|
apply(CFGQuestionAnswer<Q,A> caller,
Q question)
Returns an answer by calling CFGQuestionAnswer.caseCIfThenStmPoint(AIfThenStm,CIfThenStmPoint,Object)
the visitor caller with this program point. |
|
boolean |
apply(ICFGAnalysis analysis)
Calls ICFGAnalysis.caseCIfThenStmPoint(AIfThenStm,CIfThenStmPoint) on
analysis and returns the result. |
|
CIfThenStmPoint |
clone()
Returns a clone of the program point with no predecessors or successors. |
|
AIfThenStm |
getNode()
Returns the AIfThenStm associated with this program point. |
|
String |
getNodeText(Answer<String> nodeText)
Returns a textual representation of this program point by calling the Answer.caseAIfThenStm(AIfThenStm) on nodeText . |
|
String |
toString()
Returns a textual representation of this CIfThenStmPoint . |
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 CIfThenStmPoint(AIfThenStm _node_)
CIfThenStmPoint
associated with the AIfThenStm
_node_
with the label ""
.
_node_
- the AIfThenStm
associated the the program pointpublic CIfThenStmPoint(AIfThenStm _node_, String _label_)
CIfThenStmPoint
associated with the AIfThenStm
_node_
with the label _label_
.
_node_
- the AIfThenStm
associated the the program point_label_
- the label of the program pointMethod Detail |
---|
public AIfThenStm getNode()
AIfThenStm
associated with this program point.
getNode
in interface IProgramPoint
getNode
in class AProgramPoint
AIfThenStm
associated with this program pointpublic boolean apply(ICFGAnalysis analysis)
ICFGAnalysis.caseCIfThenStmPoint(AIfThenStm,CIfThenStmPoint)
on
analysis
and returns the result.
ICFGAnalysis.caseCIfThenStmPoint(AIfThenStm,CIfThenStmPoint)
on analysis
public String getNodeText(Answer<String> nodeText)
Answer.caseAIfThenStm(AIfThenStm)
on nodeText
.
nodeText
- the Answer
used
public <A> A apply(CFGAnswer<A> caller)
CFGAnswer.caseCIfThenStmPoint(AIfThenStm,CIfThenStmPoint)
the visitor caller
with this program point.
caller
- the Answer
used
caller
public <Q,A> A apply(CFGQuestionAnswer<Q,A> caller, Q question)
CFGQuestionAnswer.caseCIfThenStmPoint(AIfThenStm,CIfThenStmPoint,Object)
the visitor caller
with this program point.
caller
- the QuestionAnswer
usedquestion
- the question used
caller
on question
public CIfThenStmPoint clone()
clone
in interface IProgramPoint
clone
in class AProgramPoint
public String toString()
CIfThenStmPoint
.
toString
in class Object
CIfThenStmPoint
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |