public void sanityCheckParentAndChildIndexes(Tree parent, int i) { if ( parent!=this.getParent() ) { throw new IllegalStateException("parents don't match; expected "+parent+" found "+this.getParent()); } if ( i!=this.getChildIndex() ) { throw new IllegalStateException("child indexes don't match; expected "+i+" found "+this.getChildIndex()); } int n = this.getChildCount(); for (int c = 0; c < n; c++) { CommonTree child = (CommonTree)this.getChild(c); child.sanityCheckParentAndChildIndexes(this, c); } }
public void sanityCheckParentAndChildIndexes(Tree parent, int i) { if ( parent!=this.getParent() ) { throw new IllegalStateException("parents don't match; expected "+parent+" found "+this.getParent()); } if ( i!=this.getChildIndex() ) { throw new IllegalStateException("child indexes don't match; expected "+i+" found "+this.getChildIndex()); } int n = this.getChildCount(); for (int c = 0; c < n; c++) { CommonTree child = (CommonTree)this.getChild(c); child.sanityCheckParentAndChildIndexes(this, c); } }
public void sanityCheckParentAndChildIndexes(Tree parent, int i) { if ( parent!=this.getParent() ) { throw new IllegalStateException("parents don't match; expected "+parent+" found "+this.getParent()); } if ( i!=this.getChildIndex() ) { throw new IllegalStateException("child indexes don't match; expected "+i+" found "+this.getChildIndex()); } int n = this.getChildCount(); for (int c = 0; c < n; c++) { CommonTree child = (CommonTree)this.getChild(c); child.sanityCheckParentAndChildIndexes(this, c); } }
public void sanityCheckParentAndChildIndexes(Tree parent, int i) { if ( parent!=this.getParent() ) { throw new IllegalStateException("parents don't match; expected "+parent+" found "+this.getParent()); } if ( i!=this.getChildIndex() ) { throw new IllegalStateException("child indexes don't match; expected "+i+" found "+this.getChildIndex()); } int n = this.getChildCount(); for (int c = 0; c < n; c++) { CommonTree child = (CommonTree)this.getChild(c); child.sanityCheckParentAndChildIndexes(this, c); } }
public void sanityCheckParentAndChildIndexes(Tree parent, int i) { if ( parent!=this.getParent() ) { throw new IllegalStateException("parents don't match; expected "+parent+" found "+this.getParent()); } if ( i!=this.getChildIndex() ) { throw new IllegalStateException("child indexes don't match; expected "+i+" found "+this.getChildIndex()); } int n = this.getChildCount(); for (int c = 0; c < n; c++) { CommonTree child = (CommonTree)this.getChild(c); child.sanityCheckParentAndChildIndexes(this, c); } }
public void sanityCheckParentAndChildIndexes(Tree parent, int i) { if ( parent!=this.getParent() ) { throw new IllegalStateException("parents don't match; expected "+parent+" found "+this.getParent()); } if ( i!=this.getChildIndex() ) { throw new IllegalStateException("child indexes don't match; expected "+i+" found "+this.getChildIndex()); } int n = this.getChildCount(); for (int c = 0; c < n; c++) { CommonTree child = (CommonTree)this.getChild(c); child.sanityCheckParentAndChildIndexes(this, c); } }