org.teatrove.tea.compiler
Class MethodMatcher
java.lang.Object
org.teatrove.tea.compiler.MethodMatcher
public class MethodMatcher
- extends Object
This class finds methods that best fit a given description. The compiler
will then bind to one of those methods.
- Author:
- Brian S O'Neill
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MethodMatcher
public MethodMatcher()
match
public static int match(Method[] methods,
String name,
Type... params)
- The best result candidates are stored in the Method array passed in.
The int returned indicates the number of candidates in the array. Zero
is returned if there is no possible match.
getMethodParam
public static Type getMethodParam(Method method,
int index,
Type type)
Copyright © 1997-2012 TeaTrove.org. All Rights Reserved.