Пример #1
0
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + ((zeroHandler == null) ? 0 : zeroHandler.hashCode());
   return result;
 }
Пример #2
0
 @Override
 public boolean equals(Object obj) {
   if (this == obj) return true;
   if (obj == null) return false;
   if (getClass() != obj.getClass()) return false;
   ZeroCallEdgeResolver other = (ZeroCallEdgeResolver) obj;
   if (zeroHandler == null) {
     if (other.zeroHandler != null) return false;
   } else if (!zeroHandler.equals(other.zeroHandler)) return false;
   return true;
 }
Пример #3
0
 @Override
 public void resolve(
     Constraint<Field> constraint, InterestCallback<Field, Fact, Stmt, Method> callback) {
   if (zeroHandler.shouldGenerateAccessPath(constraint.applyToAccessPath(new AccessPath<Field>())))
     callback.interest(analyzer, this);
 }