public class MethodIterator extends Object
Constructor and Description |
---|
MethodIterator(Class subjectClass) |
Modifier and Type | Method and Description |
---|---|
boolean |
getToString()
Returns true if the method
public String toString() is part of the interface. |
boolean |
hasNext() |
static boolean |
isToString(Method method)
Returns true if the method is the standard toString() method.
|
MethodSignature |
next()
Returns the next method (as a
MethodSignature , returning null when all are exhausted. |
public MethodIterator(Class subjectClass)
public static boolean isToString(Method method)
public boolean hasNext()
public MethodSignature next()
MethodSignature
, returning null when all are exhausted. Each method
signature is returned exactly once (even if the same method signature is defined in multiple inherited classes or
interfaces). The method signatures returned in ascending order, according to the "natural ordering".NoSuchElementException
- if there are no more signaturespublic boolean getToString()
public String toString()
is part of the interface. This will be known
immediately after iterator contruction (it is not necessary to iterate the methods first).5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.