com.go.tea.compiler
Class MethodMatcher

java.lang.Object
  |
  +--com.go.tea.compiler.MethodMatcher

public class MethodMatcher
extends java.lang.Object

This class finds methods that best fit a given description. The compiler will then bind to one of those methods.

Version:
14 , 9/07/00
Author:
Brian S O'Neill

Constructor Summary
MethodMatcher()
           
 
Method Summary
static int match(java.lang.reflect.Method[] methods, java.lang.String name, Type[] params)
          The best result candidates are stored in the Method array passed in.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodMatcher

public MethodMatcher()
Method Detail

match

public static int match(java.lang.reflect.Method[] methods,
                        java.lang.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.