org.nakedobjects.metamodel.facets
Interface MethodRemover


public interface MethodRemover

Removes the methods from further processing by subsequent Facets.


Method Summary
 void removeMethod(java.lang.reflect.Method method)
           
 void removeMethod(MethodScope methodScope, java.lang.String methodName, java.lang.Class<?> returnType, java.lang.Class<?>[] parameterTypes)
          Locate all methods (that the implementation should somehow know about) that match the criteria and remove them from the implementation's list so that they are not considered for subsequent scans.
 void removeMethods(java.util.List<java.lang.reflect.Method> methods)
           
 java.util.List<java.lang.reflect.Method> removeMethods(MethodScope methodScope, java.lang.String prefix, java.lang.Class<?> returnType, boolean canBeVoid, int paramCount)
          Locate all methods (that the implementation should somehow know about) that match the criteria and remove them from the implementation's list so that they are not considered for subsequent scans.
 

Method Detail

removeMethods

java.util.List<java.lang.reflect.Method> removeMethods(MethodScope methodScope,
                                                       java.lang.String prefix,
                                                       java.lang.Class<?> returnType,
                                                       boolean canBeVoid,
                                                       int paramCount)
Locate all methods (that the implementation should somehow know about) that match the criteria and remove them from the implementation's list so that they are not considered for subsequent scans.

Parameters:
methodScope - - whethre looking for static (class) or instance-level methods.
Returns:
any methods that were removed.

removeMethod

void removeMethod(MethodScope methodScope,
                  java.lang.String methodName,
                  java.lang.Class<?> returnType,
                  java.lang.Class<?>[] parameterTypes)
Locate all methods (that the implementation should somehow know about) that match the criteria and remove them from the implementation's list so that they are not considered for subsequent scans.

Parameters:
forClass - - if true, then looking for static methods (otherwise instance methods).

removeMethod

void removeMethod(java.lang.reflect.Method method)

removeMethods

void removeMethods(java.util.List<java.lang.reflect.Method> methods)


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.