groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject [groovy] 01/02: add some javadoc
Date Fri, 12 Apr 2019 04:00:58 GMT
This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit dbe9d2d25c3c926f52d3c8b988893987148a63b4
Author: Paul King <paulk@asert.com.au>
AuthorDate: Fri Apr 12 11:50:48 2019 +1000

    add some javadoc
---
 src/main/java/org/codehaus/groovy/ast/expr/ClosureExpression.java | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/main/java/org/codehaus/groovy/ast/expr/ClosureExpression.java b/src/main/java/org/codehaus/groovy/ast/expr/ClosureExpression.java
index 62ba789..e2b2aee 100644
--- a/src/main/java/org/codehaus/groovy/ast/expr/ClosureExpression.java
+++ b/src/main/java/org/codehaus/groovy/ast/expr/ClosureExpression.java
@@ -74,10 +74,16 @@ public class ClosureExpression extends Expression {
         this.code = code;
     }
 
+    /**
+     * @return an array of zero (for implicit it) or more (when explicit args given) parameters
or null otherwise (representing explicit no args)
+     */
     public Parameter[] getParameters() {
         return parameters;
     }
 
+    /**
+     * @return true if one or more explicit parameters are supplied
+     */
     public boolean isParameterSpecified() {
         return parameters != null && parameters.length > 0;
     }


Mime
View raw message