private static String wrapText(Element element, AnnotationMirror mirror, String text) { StringBuilder b = new StringBuilder(); if (element != null) { if (element.getKind() == ElementKind.METHOD) { b.append("Method " + ElementUtils.createReferenceName((ExecutableElement) element)); } else { b.append("Element " + element.getSimpleName()); } } if (mirror != null) { b.append(" at annotation @" + ElementUtils.getSimpleName(mirror.getAnnotationType()).trim()); } if (b.length() > 0) { b.append(" is erroneous: ").append(text); return b.toString(); } else { return text; } }
private static String wrapText(Element element, AnnotationMirror mirror, String text) { StringBuilder b = new StringBuilder(); if (element != null) { if (element.getKind() == ElementKind.METHOD) { b.append("Method " + ElementUtils.createReferenceName((ExecutableElement) element)); } else { b.append("Element " + element.getSimpleName()); } } if (mirror != null) { b.append(" at annotation @" + ElementUtils.getSimpleName(mirror.getAnnotationType()).trim()); } if (b.length() > 0) { b.append(" is erroneous: ").append(text); return b.toString(); } else { return text; } }
public String createReferenceName() { if (getMethod() == null) { return "-"; } return ElementUtils.createReferenceName(getMethod()); }
public String createReferenceName() { if (getMethod() == null) { return "-"; } return ElementUtils.createReferenceName(getMethod()); }
protected String toString(Object element) { if (element instanceof SpecializationData) { SpecializationData specialization = (SpecializationData) element; if (specialization.isUninitialized()) { return "uninitialized"; } return ElementUtils.createReferenceName(specialization.getMethod()); } else if (element instanceof TypeGuard) { int index = ((TypeGuard) element).getSignatureIndex(); String simpleName = ElementUtils.getSimpleName(((TypeGuard) element).getType()); return index + ":" + simpleName; } return element.toString(); }
for (ExecutableTypeData type : allExecutes) { if (type.getEvaluatedCount() < nodeChildDeclarationsRequired) { requireNodeChildDeclarations.add(ElementUtils.createReferenceName(type.getMethod()));
for (ExecutableTypeData type : allExecutes) { if (type.getEvaluatedCount() < nodeChildDeclarationsRequired) { requireNodeChildDeclarations.add(ElementUtils.createReferenceName(type.getMethod()));