Class ChildPos

  • All Implemented Interfaces:
    com.ibm.wala.cast.tree.rewrite.CAstRewriter.RewriteContext<com.ibm.wala.cast.tree.rewrite.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.
    • Constructor Detail

      • ChildPos

        public ChildPos​(com.ibm.wala.cast.tree.CAstNode parent,
                        int index,
                        NodePos parent_pos)
    • Method Detail

      • getParent

        public com.ibm.wala.cast.tree.CAstNode getParent()
      • getIndex

        public int getIndex()
      • getParentPos

        public NodePos getParentPos()
      • getChild

        public com.ibm.wala.cast.tree.CAstNode getChild()
      • getChildPos

        public ChildPos getChildPos​(int index)
      • hashCode

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object