Class ExtractionPos
java.lang.Object
com.ibm.wala.cast.js.ipa.callgraph.correlations.extraction.NodePos
com.ibm.wala.cast.js.ipa.callgraph.correlations.extraction.ExtractionPos
- All Implemented Interfaces:
CAstRewriter.RewriteContext<CAstBasicRewriter.NoKey>
A special
ChildPos
representing the position of a node which is the body of a for-in
loop.
This also stores some additional data obtained while rewriting the loop body, such as whether
return
statements were encountered.
- Author:
- mschaefer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<A> A
void
addGotoTarget
(String label, CAstNode node) void
addNestedPos
(ExtractionPos loop) void
void
addThis()
boolean
boolean
boolean
boolean
boolean
boolean
static ExtractionPos
int
getEnd()
static ExtractionPos
int
getStart()
boolean
void
setCallSite
(CAstNode callsite) void
setExtractedEntity
(CAstEntity entity)
-
Constructor Details
-
ExtractionPos
-
-
Method Details
-
getParent
-
getStart
public int getStart() -
getEnd
public int getEnd() -
getRegion
-
contains
-
getParameters
-
addGotoTarget
-
containsReturn
public boolean containsReturn() -
addReturn
public void addReturn() -
getGotoTargets
-
addThis
public void addThis() -
containsThis
public boolean containsThis() -
containsGoto
public boolean containsGoto() -
containsOuterGoto
public boolean containsOuterGoto() -
containsJump
public boolean containsJump() -
getThisParmName
-
addNestedPos
-
getNestedLoops
-
setExtractedEntity
-
getExtractedEntity
-
setCallSite
-
getCallSite
-
accept
-
getOutermostEnclosingExtractionPos
-
getEnclosingExtractionPos
-
isOutermost
public boolean isOutermost() -
getParentPos
-