org.directwebremoting.guice.util
Class DeclaredBy

java.lang.Object
  extended by com.google.inject.matcher.AbstractMatcher<java.lang.reflect.Method>
      extended by org.directwebremoting.guice.util.DeclaredBy
All Implemented Interfaces:
com.google.inject.matcher.Matcher<java.lang.reflect.Method>

public class DeclaredBy
extends com.google.inject.matcher.AbstractMatcher<java.lang.reflect.Method>

For matching methods declared by a given interface or superclass.

Author:
Tim Peierls [tim at peierls dot net]

Method Summary
static com.google.inject.matcher.Matcher<java.lang.reflect.Method> declaredBy(java.lang.Class<?> cls)
          Returns a matcher that matches methods in subclasses of cls (or cls itself) with the same name and parameter types as methods declared in cls.
 boolean matches(java.lang.reflect.Method method)
           
 
Methods inherited from class com.google.inject.matcher.AbstractMatcher
and, or
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

declaredBy

public static com.google.inject.matcher.Matcher<java.lang.reflect.Method> declaredBy(java.lang.Class<?> cls)
Returns a matcher that matches methods in subclasses of cls (or cls itself) with the same name and parameter types as methods declared in cls.


matches

public boolean matches(java.lang.reflect.Method method)

Copyright 2008