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:
com.ibm.wala.cast.tree.rewrite.CAstRewriter.RewriteContext<com.ibm.wala.cast.tree.rewrite.CAstBasicRewriter.NoKey>
public class ChildPos extends NodePos
ANodePosfor a non-root node; includes information about the parent node, the child index, and the position of the parent node.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <A> Aaccept(PosSwitch<A> ps)booleanequals(java.lang.Object obj)com.ibm.wala.cast.tree.CAstNodegetChild()ChildPosgetChildPos(int index)intgetIndex()com.ibm.wala.cast.tree.CAstNodegetParent()NodePosgetParentPos()inthashCode()
-
-
-
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:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-