Class ChildPos

java.lang.Object
com.ibm.wala.cast.js.ipa.callgraph.correlations.extraction.NodePos
com.ibm.wala.cast.js.ipa.callgraph.correlations.extraction.ChildPos
All Implemented Interfaces:
CAstRewriter.RewriteContext<CAstBasicRewriter.NoKey>

public class ChildPos extends NodePos
A NodePos for a non-root node; includes information about the parent node, the child index, and the position of the parent node.
Author:
mschaefer
  • Constructor Details

    • ChildPos

      public ChildPos(CAstNode parent, int index, NodePos parent_pos)
  • Method Details

    • getParent

      public CAstNode getParent()
    • getIndex

      public int getIndex()
    • getParentPos

      public NodePos getParentPos()
    • getChild

      public CAstNode getChild()
    • getChildPos

      public ChildPos getChildPos(int index)
    • accept

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object