org.jutil.java.reflect
Class Methods

java.lang.Object
  |
  +--org.jutil.java.reflect.Methods

public class Methods
extends java.lang.Object

Utility methods for method reflection.


Field Summary
static Filter ABSTRACT_FILTER
           
static java.lang.String CVS_REVISION
           
static Filter PACKAGE_ACCESS_FILTER
           
static Filter PRIVATE_ACCESS_FILTER
           
static Filter PROTECTED_ACCESS_FILTER
           
static Filter PUBLIC_ACCESS_FILTER
           
 
Constructor Summary
Methods()
           
 
Method Summary
static java.util.Set getAllApplicableMethods(java.lang.Class clazz)
          All methods that are usable in the class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CVS_REVISION

public static final java.lang.String CVS_REVISION

PUBLIC_ACCESS_FILTER

public static final Filter PUBLIC_ACCESS_FILTER

PROTECTED_ACCESS_FILTER

public static final Filter PROTECTED_ACCESS_FILTER

PACKAGE_ACCESS_FILTER

public static final Filter PACKAGE_ACCESS_FILTER

PRIVATE_ACCESS_FILTER

public static final Filter PRIVATE_ACCESS_FILTER

ABSTRACT_FILTER

public static final Filter ABSTRACT_FILTER
Constructor Detail

Methods

public Methods()
Method Detail

getAllApplicableMethods

public static java.util.Set getAllApplicableMethods(java.lang.Class clazz)

All methods that are usable in the class. These are all the methods declared in , and all public, protected and package accessible methods defined in super types (classes or interfaces).

Since the result is a set, overwritten methods only occur once.

The term methods in this context includes instance and class methods, but not constructors.

Parameters:
clazz - The class to get all applicable methods for.
Returns:
instances of java.lang.reflect.AccessibleObject //JDJDJD Java 1.2

Specifications:
requires clazz != null;
ensures \result instanceof Member;