1 6 package com.hp.hpl.jena.graph.query.regexptrees; 7 8 12 public class BackReference extends RegexpTree 13 { 14 protected int index; 15 16 public BackReference( int n ) 17 { this.index = n; } 18 19 public int getIndex() 20 { return index; } 21 22 public boolean equals( Object other ) 23 { return other instanceof BackReference && index == ((BackReference) other).index; } 24 25 public int hashCode() 26 { return index; } 27 28 public String toString() 29 { return "<back " + index + ">"; } 30 } 31 32 33 | Popular Tags |