public String getGenericReturnType() { String use = descriptor.toString(); if (signature != null) use = signature; Matcher m = METHOD_DESCRIPTOR.matcher(use); if (!m.matches()) throw new IllegalArgumentException("Not a valid method descriptor: " + descriptor); String returnType = m.group(2); return objectDescriptorToFQN(returnType); }
public String getGenericReturnType() { String use = descriptor.toString(); if (signature != null) use = signature; Matcher m = METHOD_DESCRIPTOR.matcher(use); if (!m.matches()) throw new IllegalArgumentException("Not a valid method descriptor: " + descriptor); String returnType = m.group(2); return objectDescriptorToFQN(returnType); }
public String getGenericReturnType() { String use = descriptor.toString(); if (signature != null) use = signature; Matcher m = METHOD_DESCRIPTOR.matcher(use); if (!m.matches()) throw new IllegalArgumentException("Not a valid method descriptor: " + descriptor); String returnType = m.group(2); return objectDescriptorToFQN(returnType); }
@Override public String getGenericReturnType() { MethodSignature sig = analyzer.getMethodSignature((signature != null) ? signature : descriptor.toString()); return sig.resultType.toString(); }
private MethodSignature getMethodSignature(MethodDef method) { String signature = method.getSignature(); return analyzer.getMethodSignature((signature != null) ? signature : method.getDescriptor() .toString()); }
/** * Parses a field. Always invoked BEFORE eventual field annotation */ @Override public void field(Clazz.FieldDef field) { m_logger.debug("Parsed field %s descriptor=%s", field.getName(), field.getDescriptor()); m_isField = true; m_field = field.getName(); m_fieldDef = field; m_descriptor = field.getDescriptor().toString(); }
@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()); }
public String getGenericReturnType() { FieldSignature sig = analyzer.getFieldSignature((signature != null) ? signature : descriptor.toString()); return sig.type.toString(); }
@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 MethodSignature getMethodSignature(MethodDef method) { String signature = method.getSignature(); return analyzer.getMethodSignature((signature != null) ? signature : method.getDescriptor() .toString()); }
@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(); } }
/** * */ 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(); } }
@Override public String getGenericReturnType() { MethodSignature sig = analyzer.getMethodSignature((signature != null) ? signature : descriptor.toString()); return sig.resultType.toString(); }
/** * */ 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(); } }