private JClassType getType(TypeOracle oracle, Class cls) { try { return oracle.getType(cls.getName()); } catch (NotFoundException e) { throw new RuntimeException(e); } }
@Override public String toString() { String[] names = TypeOracle.modifierBitsToNamesForField(modifierBits); StringBuffer sb = new StringBuffer(); for (int i = 0; i < names.length; i++) { if (i > 0) { sb.append(" "); } sb.append(names[i]); } if (names.length > 0) { sb.append(" "); } sb.append(type.getParameterizedQualifiedSourceName()); sb.append(" "); sb.append(getName()); return sb.toString(); }