You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2015/10/11 09:35:44 UTC
incubator-groovy git commit: GROOVY-7605: Improve docs for MetaClass
getMethods vs getMetaMethod
Repository: incubator-groovy
Updated Branches:
refs/heads/master b70e4c291 -> d0bbb0354
GROOVY-7605: Improve docs for MetaClass getMethods vs getMetaMethod
updated javadoc according to Graeme Rochers explanation in http://www.groovy-lang.org/mailing-lists.html#nabble-td388327
Project: http://git-wip-us.apache.org/repos/asf/incubator-groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-groovy/commit/d0bbb035
Tree: http://git-wip-us.apache.org/repos/asf/incubator-groovy/tree/d0bbb035
Diff: http://git-wip-us.apache.org/repos/asf/incubator-groovy/diff/d0bbb035
Branch: refs/heads/master
Commit: d0bbb03545af09167b0d251131914f32d0d66504
Parents: b70e4c2
Author: pascalschumacher <pa...@gmx.net>
Authored: Sun Oct 11 09:35:26 2015 +0200
Committer: pascalschumacher <pa...@gmx.net>
Committed: Sun Oct 11 09:35:26 2015 +0200
----------------------------------------------------------------------
src/main/groovy/lang/MetaClass.java | 6 +++---
src/main/groovy/lang/MetaClassImpl.java | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/d0bbb035/src/main/groovy/lang/MetaClass.java
----------------------------------------------------------------------
diff --git a/src/main/groovy/lang/MetaClass.java b/src/main/groovy/lang/MetaClass.java
index e6bacb7..42c6a83 100644
--- a/src/main/groovy/lang/MetaClass.java
+++ b/src/main/groovy/lang/MetaClass.java
@@ -159,9 +159,9 @@ public interface MetaClass extends MetaObjectProtocol {
List<MetaProperty> getProperties();
/**
- * Retrieves a list of Methods held by the class
+ * Retrieves a list of MetaMethods held by the class. This list does not include MetaMethods added by groovy.lang.ExpandoMetaClass.
*
- * @return A list of Methods
+ * @return A list of MetaMethods
*/
List<MetaMethod> getMethods();
@@ -173,7 +173,7 @@ public interface MetaClass extends MetaObjectProtocol {
ClassNode getClassNode();
/**
- * Retrieves a list of MetaMethods held by this class
+ * Retrieves a list of MetaMethods held by this class. This list includes MetaMethods added by groovy.lang.ExpandoMetaClass.
*
* @return A list of MetaMethods
*/
http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/d0bbb035/src/main/groovy/lang/MetaClassImpl.java
----------------------------------------------------------------------
diff --git a/src/main/groovy/lang/MetaClassImpl.java b/src/main/groovy/lang/MetaClassImpl.java
index efaea1c..8e2912f 100644
--- a/src/main/groovy/lang/MetaClassImpl.java
+++ b/src/main/groovy/lang/MetaClassImpl.java
@@ -3333,16 +3333,16 @@ public class MetaClassImpl implements MetaClass, MutableMetaClass {
}
/**
- * Retrieves the list of Methods held by the class
+ * Retrieves the list of MetaMethods held by the class. This list does not include MetaMethods added by groovy.lang.ExpandoMetaClass.
*
- * @return A list of Methods
+ * @return A list of MetaMethods
*/
public List<MetaMethod> getMethods() {
return allMethods;
}
/**
- * Retrieves the list of MetaMethods held by this class
+ * Retrieves the list of MetaMethods held by this class. This list includes MetaMethods added by groovy.lang.ExpandoMetaClass.
*
* @return A list of MetaMethods
*/