org.eclipse.xtext.util
Class PolymorphicDispatcher.MethodNameFilter

java.lang.Object
  extended by org.eclipse.xtext.util.PolymorphicDispatcher.MethodNameFilter
All Implemented Interfaces:
com.google.common.base.Predicate<java.lang.reflect.Method>
Direct Known Subclasses:
XbaseInterpreter.PrefixMethodFilter
Enclosing class:
PolymorphicDispatcher<RT>

public static class PolymorphicDispatcher.MethodNameFilter
extends java.lang.Object
implements com.google.common.base.Predicate<java.lang.reflect.Method>


Field Summary
protected  int maxParams
           
protected  java.lang.String methodName
           
protected  int minParams
           
 
Constructor Summary
PolymorphicDispatcher.MethodNameFilter(java.lang.String methodName, int minParams, int maxParams)
           
 
Method Summary
 boolean apply(java.lang.reflect.Method param)
           
 int getMaxParams()
           
 int getMinParams()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.common.base.Predicate
equals
 

Field Detail

maxParams

protected final int maxParams

methodName

protected final java.lang.String methodName

minParams

protected final int minParams
Constructor Detail

PolymorphicDispatcher.MethodNameFilter

public PolymorphicDispatcher.MethodNameFilter(java.lang.String methodName,
                                              int minParams,
                                              int maxParams)
Method Detail

apply

public boolean apply(java.lang.reflect.Method param)
Specified by:
apply in interface com.google.common.base.Predicate<java.lang.reflect.Method>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getMaxParams

public int getMaxParams()

getMinParams

public int getMinParams()