/** * Finds the no-argument non-synthetic constructor in the specified class. */ static ExecutableElement getNoArgConstructor(CompilationController controller, TypeElement typeElement) { assert controller != null; assert typeElement != null; for (Element element : typeElement.getEnclosedElements()) { if (element.getKind() == ElementKind.CONSTRUCTOR) { ExecutableElement constructor = (ExecutableElement)element; if (constructor.getParameters().size() == 0 && !controller.getElementUtilities().isSynthetic(constructor)) { return constructor; } } } return null; } }
if (!eu.isSynthetic(ee)) { List<? extends VariableElement> parameters = ee.getParameters(); if (parameters.isEmpty()) {
if (e == null || javac.getElementUtilities().isSynthetic(e)) return null;