@Override public MethodDescriptor[] getMethodDescriptors() { return this.delegate.getMethodDescriptors(); }
@Override public MethodDescriptor[] getMethodDescriptors() { return this.delegate.getMethodDescriptors(); }
private static Method findMethod(Class<?> targetType, String methodName, Class<?>[] argTypes) throws IntrospectionException { BeanInfo beanInfo = Introspector.getBeanInfo(targetType); if (beanInfo != null) { for(MethodDescriptor methodDesc: beanInfo.getMethodDescriptors()) { Method method = methodDesc.getMethod(); Class<?>[] parameterTypes = method.getParameterTypes(); if (methodName.equals(method.getName()) && argTypes.length == parameterTypes.length) { boolean matchedArgTypes = true; for (int i = 0; i < argTypes.length; i++) { if (getWrapperIfPrimitive(argTypes[i]) != parameterTypes[i]) { matchedArgTypes = false; break; } } if (matchedArgTypes) { return method; } } } } return null; }
MethodDescriptor[] methodDescriptors = delegate.getMethodDescriptors(); if (methodDescriptors != null) { for (Method method : findCandidateWriteMethods(methodDescriptors)) {
MethodDescriptor[] introspectorMDArray = beanInfo.getMethodDescriptors(); List<MethodDescriptor> introspectionMDs = introspectorMDArray != null && introspectorMDArray.length != 0 ? Arrays.asList(introspectorMDArray) : Collections.<MethodDescriptor>emptyList();
MethodDescriptor[] methodDescriptors = delegate.getMethodDescriptors(); if (methodDescriptors != null) { for (Method method : findCandidateWriteMethods(methodDescriptors)) {
public MethodDescriptor[] getMethodDescriptors() { return delegate.getMethodDescriptors(); }
/** * Uses JavaBeans {@link Introspector} to computer setters of object to be * configured. */ protected void introspect() { try { BeanInfo bi = Introspector.getBeanInfo(obj.getClass()); propertyDescriptors = bi.getPropertyDescriptors(); methodDescriptors = bi.getMethodDescriptors(); } catch (IntrospectionException ex) { addError("Failed to introspect " + obj + ": " + ex.getMessage()); propertyDescriptors = new PropertyDescriptor[0]; methodDescriptors = new MethodDescriptor[0]; } }
MethodDescriptor[] methodDescriptors = info.getMethodDescriptors(); HashMap<String, Method> methodMap = new HashMap<String, Method>(); for (MethodDescriptor methodDescriptor : methodDescriptors) {
Introspector.getBeanInfo(chart.getClass()).getMethodDescriptors(); HashMap<String, Method> chartMethodMap = new HashMap<String, Method>(); for (MethodDescriptor methodDescriptor : methodDescriptors) { Introspector.getBeanInfo(chart.getStyler().getClass()).getMethodDescriptors(); HashMap<String, Method> stylerMethodMap = new HashMap<String, Method>(); for (MethodDescriptor methodDescriptor : methodDescriptors) {
for (MethodDescriptor md : delegate.getMethodDescriptors()) { Method method = md.getMethod();
/** {@inheritDoc} */ @Override public MethodDescriptor[] getMethodDescriptors() { return rootBeanInfo.getMethodDescriptors(); }
/** * BeanInfo implementation. Just forward the call to the delegate. */ public MethodDescriptor[] getMethodDescriptors() { return m_delegate.getMethodDescriptors(); }
@Override public MethodDescriptor[] getMethodDescriptors() { return this.delegate.getMethodDescriptors(); } }
@Override public MethodDescriptor[] getMethodDescriptors() { return this.delegate.getMethodDescriptors(); } }
@Override public MethodDescriptor[] getMethodDescriptors() { if (mdcache == null) { if (normalBeanInfo == null) return new MethodDescriptor[0]; mdcache = normalBeanInfo.getMethodDescriptors(); } return mdcache; }
public MethodDescriptor[] getMethodDescriptors(final ELContext context, final Object base, final String... additionalBeanInfoPath) { final BeanInfo info = getBeanInfo(base, additionalBeanInfoPath); if (info == null) { return null; } return info.getMethodDescriptors(); }
private Integer getId(final X anotherParameter) { final BeanInfo beanInfo = Introspector.getBeanInfo(anotherParameter.getClass()); for (MethodDescriptor methodDescriptor : beanInfo.getMethodDescriptors()) { final Method method = methodDescriptor.getMethod(); if ("getId".equals(method.getName()) && method.getParameterTypes().length == 0) { return (Integer) method.invoke(anotherParameter); } } return null; }
@Override public Map<String, MethodDescriptor> call() throws Exception { BeanInfo beanInfo = getBeanInfo(beanClass); MethodDescriptor[] methodDescriptors = beanInfo.getMethodDescriptors(); Map<String, MethodDescriptor> map = CollectionUtil.createHashMap(methodDescriptors.length); for (MethodDescriptor methodDescriptor : methodDescriptors) { map.put(methodDescriptor.getName(), methodDescriptor); } return map; } });
/** * Returns the type's MethodDescriptors. */ public MethodDescriptor[] getMethodDescriptors() { BeanInfo info = getBeanInfo(); if (info == null) { return null; } MethodDescriptor[] mds = info.getMethodDescriptors(); getTeaToolsUtils().sortMethodDescriptors(mds); return mds; }