Skip to content

Commit

Permalink
doc: Clarify CtType#getAllMethods documentation (INRIA#1644)
Browse files Browse the repository at this point in the history
  • Loading branch information
surli authored and monperrus committed Oct 30, 2017
1 parent 67269b1 commit f7347f3
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/main/java/spoon/reflect/declaration/CtType.java
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,12 @@ public interface CtType<T> extends CtNamedElement, CtTypeInformation, CtTypeMemb
* Return all the accessible methods (concrete and abstract) for this type.
* It recursively collects all methods from super-classes and super-interfaces.
*
* As of 5.3: Really all methods (incl. those of library super-classes
* and Object are returned, thanks to runtime reflection)
*
* Up to 5.2: The recursion stops when the super-type/super-interface is not in the model,
* which means that no method of library super-classes, or of Object are present.
* It includes the methods of types whose source code is in the Spoon model,
* the methods of types from the JDK and from libraries present in the classpath,
* the methods of java.lang.Object (for all CtClass objects).
* However, in noclasspath mode, it does not include methods from unknown types.
* If methods are overridden somewhere in the type hierarchy, it returns only top methods (ie method definitions).
* Each method signature is returned only once
*/
@DerivedProperty
Set<CtMethod<?>> getAllMethods();
Expand Down

0 comments on commit f7347f3

Please sign in to comment.