@Override public String toString() { StringBuilder b = new StringBuilder(); for (Class<?> ann : annotations) { b.append(ann.getSimpleName()).append(' '); } b.append((type instanceof Class<?>) ? ((Class<?>) type).getSimpleName() : type.toString()); return b.toString(); }
public boolean matchesDestructor(Class<?> type) { if (!symbol.contains(type.getSimpleName())) { return false; } parse(); try { if (ref != null) { return ref.matchesDestructor(type); } } catch (Exception ex) { ex.printStackTrace(); } return false; }
public boolean matches(Type type, Annotations annotations) { String thisName = getQualifiedName(new StringBuilder(), false).toString(); Class typeClass = getTypeClass(type); String typeName = typeClass.getSimpleName(); return thisName.equals(typeName) || thisName.equals(typeClass.getName()); }