check(name, types); } catch (RuntimeException e) { rethrow(e);
/** * Creates a descriptor that matches all methods with names that * equal the specified name or that match the specified pattern, * regardless of their parameter types. If the specified name starts * with the character '*', then this descriptor matches all methods * with names that end with the rest of the specified name. If the * specified name ends with the character '*', then this descriptor * matches all methods with names that start with the rest of the * specified name. Otherwise, this descriptor matches all methods * with names that equal the specified name. The constraints can be * <code>null</code>, which is treated the same as an empty instance. * * @param name the name of the method, with a prefix or suffix '*' * permitted for pattern matching * @param constraints the constraints, or <code>null</code> * @throws NullPointerException if <code>name</code> is * <code>null</code> * @throws IllegalArgumentException if <code>name</code> does not * match any syntactically valid method name */ public StringMethodDesc(String name, InvocationConstraints constraints) { this(check(name, null), name, null, constraints ); }
StringMethodDesc(String name, String[] types, InvocationConstraints constraints) { this( check(name, types), name, types, constraints ); }