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>

public class ExtractionPos extends NodePos
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 Details

  • Method Details

    • getParent

      public CAstNode getParent()
    • getStart

      public int getStart()
    • getEnd

      public int getEnd()
    • getRegion

      public ExtractionRegion getRegion()
    • contains

      public boolean contains(CAstNode node)
    • getParameters

      public List<String> getParameters()
    • addGotoTarget

      public void addGotoTarget(String label, CAstNode node)
    • containsReturn

      public boolean containsReturn()
    • addReturn

      public void addReturn()
    • getGotoTargets

      public Set<Pair<String,CAstNode>> getGotoTargets()
    • addThis

      public void addThis()
    • containsThis

      public boolean containsThis()
    • containsGoto

      public boolean containsGoto()
    • containsOuterGoto

      public boolean containsOuterGoto()
    • containsJump

      public boolean containsJump()
    • getThisParmName

      public String getThisParmName()
    • addNestedPos

      public void addNestedPos(ExtractionPos loop)
    • getNestedLoops

      public Iterator<ExtractionPos> getNestedLoops()
    • setExtractedEntity

      public void setExtractedEntity(CAstEntity entity)
    • getExtractedEntity

      public CAstEntity getExtractedEntity()
    • setCallSite

      public void setCallSite(CAstNode callsite)
    • getCallSite

      public CAstNode getCallSite()
    • accept

      public <A> A accept(PosSwitch<A> ps)
      Specified by:
      accept in class NodePos
    • getOutermostEnclosingExtractionPos

      public static ExtractionPos getOutermostEnclosingExtractionPos(NodePos pos)
    • getEnclosingExtractionPos

      public static ExtractionPos getEnclosingExtractionPos(NodePos pos)
    • isOutermost

      public boolean isOutermost()
    • getParentPos

      public NodePos getParentPos()