1 21 package com.db4o.nativequery.expr.cmp.field; 22 23 import com.db4o.nativequery.expr.cmp.*; 24 25 public class StaticFieldRoot extends ComparisonOperandRoot { 26 private String _className; 27 28 public StaticFieldRoot(String className) { 29 this._className = className; 30 } 31 32 public String className() { 33 return _className; 34 } 35 36 public boolean equals(Object obj) { 37 if(obj==this) { 38 return true; 39 } 40 if(obj==null||getClass()!=obj.getClass()) { 41 return false; 42 } 43 StaticFieldRoot casted=(StaticFieldRoot)obj; 44 return _className.equals(casted._className); 45 } 46 47 public int hashCode() { 48 return _className.hashCode(); 49 } 50 51 public String toString() { 52 return _className; 53 } 54 55 public void accept(ComparisonOperandVisitor visitor) { 56 visitor.visit(this); 57 } 58 } 59 | Popular Tags |