/** * {@inheritDoc} */ public int size() { return constructor.getExceptionTypes().length; }
public Class[] getExceptionTypes() { return ((Constructor)member).getExceptionTypes(); }
@Override public Class<?>[] getExceptionTypes() { return target.getExceptionTypes(); }
public Class[] getExceptionTypes() { return ((Constructor)member).getExceptionTypes(); }
/** * Returns the exception types as an array of {@code Class} instances. If * this constructor has no declared exceptions, an empty array will be * returned. * * @return the declared exception classes */ public Class<?>[] getExceptionTypes() { return getExceptionTypes(true); } Class<?>[] getExceptionTypes(boolean copy) {
@Override public Class<?>[] getExceptionTypes() { return target.getExceptionTypes(); }
public Class[] getExceptionTypes() { return ((Constructor)member).getExceptionTypes(); }
public static Class[] callGetExceptionTypes(Constructor thiz) { return thiz.getExceptionTypes(); }
public static Type[] getExceptionTypes(Member member) { if (member instanceof Method) { return TypeUtils.getTypes(((Method) member).getExceptionTypes()); } else if (member instanceof Constructor) { return TypeUtils.getTypes(((Constructor) member).getExceptionTypes()); } else { throw new IllegalArgumentException("Cannot get exception types of a field"); } }
/** * {@inheritDoc} */ public TypeDescription.Generic get(int index) { return new OfConstructorExceptionTypes.TypeProjection(constructor, index, constructor.getExceptionTypes()); }
/** * {@inheritDoc} */ public TypeList asErasures() { return new TypeList.ForLoadedTypes(constructor.getExceptionTypes()); }
public static Type[] getExceptionTypes(Member member) { if (member instanceof Method) { return TypeUtils.getTypes(((Method)member).getExceptionTypes()); } else if (member instanceof Constructor) { return TypeUtils.getTypes(((Constructor)member).getExceptionTypes()); } else { throw new IllegalArgumentException("Cannot get exception types of a field"); } }
public static Type[] getExceptionTypes(Member member) { if (member instanceof Method) { return TypeUtils.getTypes(((Method) member).getExceptionTypes()); } else if (member instanceof Constructor) { return TypeUtils.getTypes(((Constructor) member).getExceptionTypes()); } else { throw new IllegalArgumentException("Cannot get exception types of a field"); } }
public static Type[] getExceptionTypes(Member member) { if (member instanceof Method) { return TypeUtils.getTypes(((Method)member).getExceptionTypes()); } else if (member instanceof Constructor) { return TypeUtils.getTypes(((Constructor)member).getExceptionTypes()); } else { throw new IllegalArgumentException("Cannot get exception types of a field"); } }
public static Type[] getExceptionTypes(Member member) { if (member instanceof Method) { return TypeUtils.getTypes(((Method)member).getExceptionTypes()); } else if (member instanceof Constructor) { return TypeUtils.getTypes(((Constructor)member).getExceptionTypes()); } else { throw new IllegalArgumentException("Cannot get exception types of a field"); } }
public static Type[] getExceptionTypes(Member member) { if (member instanceof Method) { return TypeUtils.getTypes(((Method)member).getExceptionTypes()); } else if (member instanceof Constructor) { return TypeUtils.getTypes(((Constructor)member).getExceptionTypes()); } else { throw new IllegalArgumentException("Cannot get exception types of a field"); } }
@SuppressWarnings("unchecked") private synchronized void initGenericTypes() { if (!genericTypesAreInitialized) { String signatureAttribute = getSignatureAttribute(); GenericSignatureParser parser = new GenericSignatureParser( getDeclaringClass().getClassLoader()); parser.parseForConstructor(this, signatureAttribute, getExceptionTypes()); formalTypeParameters = parser.formalTypeParameters; genericParameterTypes = parser.parameterTypes; genericExceptionTypes = parser.exceptionTypes; genericTypesAreInitialized = true; } }
void addConstructors() { for (Constructor<?> constructor : constructors) { String[] expClasses = convertExp(constructor.getExceptionTypes()); String desc = Type.getConstructorDescriptor(constructor); int access = getAccess(constructor.getModifiers()); MethodVisitor mv = cw.visitMethod(access, "<init>", desc, null, expClasses); new ChangeToChildConstructorMethodAdapter(mv, desc, access, enhancedSuperName).visitCode(); } }
private BehaviorStructure newBehaviorStructure(final Constructor constructor) { return new BehaviorStructure( new AccessImplByJDKBehavior(constructor), "<init>", this, this, newInstances(constructor.getParameterTypes()), newInstances(constructor.getExceptionTypes()), newInstances(getAnnotationTypeArray(constructor.getDeclaredAnnotations())) ); }
Class[] et = c.getExceptionTypes(); String[] exceptions = new String[et.length]; for (int i = 0; i < et.length; i++)