Package gw.lang.reflect
Class ITypeInfo.FIND
java.lang.Object
gw.lang.reflect.ITypeInfo.FIND
- Enclosing interface:
- ITypeInfo
A general purpose class for finding methods and constructors.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static booleanareParamsCompatible(IType[] actualParamTypes, IType[] userParamTypes) static booleanareParamsEqual(IParameterInfo[] srcArgs, IType[] testArgs) static IConstructorInfocallableConstructor(List<? extends IConstructorInfo> constructors, IType... params) If there is a tie this method will throw an IllegalArgumentException.private static IConstructorInfocallableConstructorImpl(List<? extends IConstructorInfo> constructors, boolean strict, IType... params) static IConstructorInfocallableConstructorStrict(List<? extends IConstructorInfo> constructors, IType... params) If there is a tie this method will throw an IllegalArgumentException.static IMethodInfocallableMethod(MethodList methods, CharSequence method, IType... params) If there is a tie this method will throw an IllegalArgumentException.private static IMethodInfocallableMethodImpl(MethodList methodList, CharSequence method, boolean strict, IType... params) If there is a tie this method will throw an IllegalArgumentException.static IMethodInfocallableMethodStrict(MethodList methods, CharSequence method, IType... params) If there is a tie this method will throw an IllegalArgumentException.static IConstructorInfoconstructor(List<? extends IConstructorInfo> constructors, IType... params) private static ITypegetConcreteBoundingType(IType type) static IMethodInfomethod(MethodList methodList, CharSequence method, IType... params) private static booleantypeVarsAreFromDifferentMethods(IType methodParamType, IType testParamType)
-
Field Details
-
EMPTY_TYPES
-
-
Constructor Details
-
FIND
public FIND()
-
-
Method Details
-
method
-
constructor
public static IConstructorInfo constructor(List<? extends IConstructorInfo> constructors, IType... params) -
callableMethod
If there is a tie this method will throw an IllegalArgumentException. This method is not strict, which means that clients calling this method may get back a method where the arguments must be coerced to the expected parameter tyeps. If you wish strict behavior callcallableMethodStrict(MethodList, CharSequence, IType[]) -
callableMethodStrict
public static IMethodInfo callableMethodStrict(MethodList methods, CharSequence method, IType... params) If there is a tie this method will throw an IllegalArgumentException. This version is strict, which means that clients calling this method do not need to do any coercion of arguments in order to invoke the IMethodInfo. -
callableMethodImpl
private static IMethodInfo callableMethodImpl(MethodList methodList, CharSequence method, boolean strict, IType... params) If there is a tie this method will throw an IllegalArgumentException. -
areParamsCompatible
-
callableConstructor
public static IConstructorInfo callableConstructor(List<? extends IConstructorInfo> constructors, IType... params) If there is a tie this method will throw an IllegalArgumentException. This method is not strict, which means that clients calling this method may get back a constructor where the arguments must be coerced to the expected parameter tyeps. If you wish strict behavior callcallableConstructorStrict(java.util.List, IType[]) -
callableConstructorStrict
public static IConstructorInfo callableConstructorStrict(List<? extends IConstructorInfo> constructors, IType... params) If there is a tie this method will throw an IllegalArgumentException. This version is strict, which means that clients calling this method do not need to do any coercion of arguments in order to invoke the IConstructorInfo. -
callableConstructorImpl
private static IConstructorInfo callableConstructorImpl(List<? extends IConstructorInfo> constructors, boolean strict, IType... params) -
areParamsEqual
-
typeVarsAreFromDifferentMethods
-
getConcreteBoundingType
-