@Override public void annotationDefault(MethodDef defined, Object value) { if (!defined.getName() .equals("value")) { hasNoDefault--; } }
@Override public void method(Clazz.MethodDef method) { this.method = method; descriptors.add(method.getName()); }
@Override public void method(Clazz.MethodDef method) { this.method = method; descriptors.add(method.getName()); }
@Override public void method(Clazz.MethodDef method) { int access = method.getAccess(); if (Modifier.isAbstract(access) || Modifier.isStatic(access)) return; if (!baseclass && Modifier.isPrivate(access)) return; this.method = method; methods.add(method.getName(), method.getDescriptor().toString()); }
private static void method(PrintWriter out, String element, Clazz.MethodDef source, String closeElement) { out.println(" <" + element + " class='" + source.getContainingClass() .getFQN() + "'" + getAccess(source.getAccess()) + (source.isConstructor() ? "" : " name='" + source.getName() + "'") + " descriptor='" + source.getDescriptor() + "' pretty='" + source.toString() + "'" + closeElement); }
@Override public void method(Clazz.MethodDef method) { int access = method.getAccess(); if (Modifier.isAbstract(access) || Modifier.isStatic(access)) return; if (!baseclass && Modifier.isPrivate(access)) return; this.method = method; methods.add(method.getName(), method.getDescriptor().toString()); }
private static void method(PrintWriter out, String element, Clazz.MethodDef source, String closeElement) { out.println(" <" + element + " class='" + source.getContainingClass().getFQN() + "'" + getAccess(source.getAccess()) + (source.isConstructor() ? "" : " name='" + source.getName() + "'") + " descriptor='" + source.getDescriptor() + "' pretty='" + source.toString() + "'" + closeElement); }
@Override public void method(MethodDef defined) { if (defined.isStatic()) { return; } hasMethods = true; if (defined.getName() .equals("value")) { hasValue = true; } else { hasNoDefault++; } }
@Override public void method(Clazz.MethodDef method) { int access = method.getAccess(); if (Modifier.isAbstract(access) || Modifier.isStatic(access)) return; if (!baseclass && Modifier.isPrivate(access)) return; this.method = method; methods.add(method.getName(), method.getDescriptor().toString()); }
/** * */ protected void doDeactivate() { if (!LIFECYCLEDESCRIPTOR.matcher(method.getDescriptor().toString()).matches()) analyzer.error( "Deactivate method for %s does not have an acceptable prototype, only Map, ComponentContext, or BundleContext is allowed. Found: %s", clazz, method.getDescriptor()); else { component.deactivate = method.getName(); } }
private static void method(PrintWriter out, String element, Clazz.MethodDef source, String closeElement) { out.println(" <" + element + " class='" + source.getContainingClass().getFQN() + "'" + getAccess(source.getAccess()) + (source.isConstructor() ? "" : " name='" + source.getName() + "'") + " descriptor='" + source.getDescriptor() + "' pretty='" + source.toString() + "'" + closeElement); }
private static void method(PrintWriter out, String element, Clazz.MethodDef source, String closeElement) { out.println(" <" + element + " class='" + source.getContainingClass() .getFQN() + "'" + getAccess(source.getAccess()) + (source.isConstructor() ? "" : " name='" + source.getName() + "'") + " descriptor='" + source.getDescriptor() + "' pretty='" + source.toString() + "'" + closeElement); }
/** * */ protected void doModified() { if (!LIFECYCLEDESCRIPTOR.matcher(method.getDescriptor().toString()).matches()) analyzer.error( "Modified method for %s does not have an acceptable prototype, only Map, ComponentContext, or BundleContext is allowed. Found: %s", clazz, method.getDescriptor()); else { component.modified = method.getName(); } }
/** * */ protected void doActivate() { if (!LIFECYCLEDESCRIPTOR.matcher(method.getDescriptor().toString()).matches()) analyzer.error( "Activate method for %s does not have an acceptable prototype, only Map, ComponentContext, or BundleContext is allowed. Found: %s", clazz, method.getDescriptor()); else { component.activate = method.getName(); } }
@Override public void method(MethodDef defined) { lastMethodSeen = defined.getName(); } }