protected Signature createParametersSignature(String name, String[] parameters, int index) { return new ConstructorParametersSignature(index, parameters); } }
Constructor<?> constructor = constructorParametersSignature.getConstructor(); if (constructor == null) constructor = SecurityActions.findConstructor(clazz, signature.getParametersTypes(clazz)); if (paramAnnotations[constructorParametersSignature.getParam()].length == 0) return null; return new SimpleMetaDataLoader(paramAnnotations[constructorParametersSignature.getParam()]); Annotation[][] paramAnnotations = constructor.getParameterAnnotations(); ConstructorParametersSignature sig = (ConstructorParametersSignature) signature; if (paramAnnotations[sig.getParam()].length == 0) return null; return new SimpleMetaDataLoader(paramAnnotations[sig.getParam()]);
annotations = constructor.getParameterAnnotations()[cps.getParam()];
/** * Gets the MDR parameters signature for a parameter * * @param i the index of the parameter * @return the parameter signature */ @Override ParametersSignature getParametersSignature(int i) { return new ConstructorParametersSignature(getJavaMember(), i); } }
protected Signature getParameterSignature(MemberInfo info, int index) { if (info instanceof ConstructorInfo) { ConstructorInfo ci = ConstructorInfo.class.cast(info); return new ConstructorParametersSignature(ci, index); } else if (info instanceof MethodInfo) { MethodInfo mi = MethodInfo.class.cast(info); return new MethodParametersSignature(mi, index); } else { throw new IllegalArgumentException("Cannot handle info: " + info); } }
protected Signature getParameterSignature(MemberInfo info, int index) { if (info instanceof ConstructorInfo) { ConstructorInfo ci = ConstructorInfo.class.cast(info); return new ConstructorParametersSignature(ci, index); } else if (info instanceof MethodInfo) { MethodInfo mi = MethodInfo.class.cast(info); return new MethodParametersSignature(mi, index); } else { throw new IllegalArgumentException("Cannot handle info: " + info); } }