Package | Description |
---|---|
student.testingsupport |
Modifier and Type | Method and Description |
---|---|
ReflectionSupport.ParameterAcceptanceCategory |
ReflectionSupport.ParameterSignature.acceptanceCategory(ReflectionSupport.ParameterSignature typesOfActuals)
Determine if the given set of actual argument types would be
accepted by a method with this parameter signature.
|
boolean |
ReflectionSupport.ParameterSignature.accepts(ReflectionSupport.ParameterSignature typesOfActuals)
Determine if the given set of actual argument types would be
accepted by a method with this parameter signature.
|
static Constructor<?> |
ReflectionSupport.getMatchingConstructor(Class<?> c,
ReflectionSupport.ParameterSignature params)
Look up a constructor by parameter profile, finding the
constructor that will accept the given list of parameters (not
requiring an exact match on parameter types).
|
static Constructor<?> |
ReflectionSupport.getMatchingConstructor(Class<?> c,
ReflectionSupport.VisibilityConstraint visibility,
ReflectionSupport.ParameterSignature params)
Look up a constructor by parameter profile, finding the
constructor that will accept the given list of parameters (not
requiring an exact match on parameter types).
|
static Method |
ReflectionSupport.getMatchingMethod(Class<?> c,
ReflectionSupport.VisibilityConstraint visibility,
String name,
ReflectionSupport.ParameterSignature params)
Look up a method by name and parameter profile, finding the
method that will accept the given list of parameters (not requiring
an exact match on parameter types).
|
static Method |
ReflectionSupport.getMatchingMethod(Class<?> c,
String name,
ReflectionSupport.ParameterSignature params)
Look up a method by name and parameter profile, finding the
method that will accept the given list of parameters (not requiring
an exact match on parameter types).
|
boolean |
ReflectionSupport.ParameterSignature.isMoreSpecificThan(ReflectionSupport.ParameterSignature other)
Determine if this parameter signature is more specific than the
given parameter signature.
|
boolean |
ReflectionSupport.ParameterSignature.isSubSignatureOf(ReflectionSupport.ParameterSignature other)
Determine if this signature is a subsignature of the other one,
as defined by Section 8.4.2 of the JLS.
|
static String |
ReflectionSupport.simpleMethodName(String name,
ReflectionSupport.ParameterSignature params)
Constructs a printable version of a method's name, given
the method name and its parameter type(s), if any.
|