// where
 private String className(Symbol sym, boolean longform) {
   if (sym.name.len == 0 && (sym.flags() & COMPOUND) != 0) {
     StringBuffer s = new StringBuffer(supertype_field.toString());
     for (List<Type> is = interfaces_field; is.nonEmpty(); is = is.tail) {
       s.append("&");
       s.append(is.head.toString());
     }
     return s.toString();
   } else if (sym.name.len == 0) {
     String s;
     ClassType norm = (ClassType) tsym.type;
     if (norm == null) {
       s = Log.getLocalizedString("anonymous.class", (Object) null);
     } else if (norm.interfaces_field != null && norm.interfaces_field.nonEmpty()) {
       s = Log.getLocalizedString("anonymous.class", norm.interfaces_field.head);
     } else {
       s = Log.getLocalizedString("anonymous.class", norm.supertype_field);
     }
     if (moreInfo) s += String.valueOf(sym.hashCode());
     return s;
   } else if (longform) {
     return sym.getQualifiedName().toString();
   } else {
     return sym.name.toString();
   }
 }
Esempio n. 2
0
 public int hashCode() {
   return trigger.hashCode() + action.hashCode();
 }
 /**
  * {@inheritDoc}
  *
  * <p>ParameterDeclarationImpl overrides this implementation.
  */
 public int hashCode() {
   return sym.hashCode() + env.hashCode();
 }