This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-bcel.git

commit a7861ec5578277b7c69c51bf8183dfb314110dc9
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Jan 11 15:19:02 2026 -0500

    Javadoc
---
 .../org/apache/bcel/classfile/MethodParameter.java | 42 +++++++++++++++++++++-
 1 file changed, 41 insertions(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/bcel/classfile/MethodParameter.java 
b/src/main/java/org/apache/bcel/classfile/MethodParameter.java
index abb49a05..90f70539 100644
--- a/src/main/java/org/apache/bcel/classfile/MethodParameter.java
+++ b/src/main/java/org/apache/bcel/classfile/MethodParameter.java
@@ -43,6 +43,9 @@ public class MethodParameter implements Cloneable, Node {
     /** The access flags */
     private int accessFlags;
 
+    /**
+     * Constructs a MethodParameter.
+     */
     public MethodParameter() {
     }
 
@@ -64,7 +67,9 @@ public class MethodParameter implements Cloneable, Node {
     }
 
     /**
-     * @return deep copy of this object
+     * Creates a deep copy of this object.
+     *
+     * @return deep copy of this object.
      */
     public MethodParameter copy() {
         try {
@@ -86,10 +91,20 @@ public class MethodParameter implements Cloneable, Node {
         file.writeShort(accessFlags);
     }
 
+    /**
+     * Gets the access flags.
+     *
+     * @return the access flags.
+     */
     public int getAccessFlags() {
         return accessFlags;
     }
 
+    /**
+     * Gets the name index.
+     *
+     * @return the name index.
+     */
     public int getNameIndex() {
         return nameIndex;
     }
@@ -107,22 +122,47 @@ public class MethodParameter implements Cloneable, Node {
         return constantPool.getConstantUtf8(nameIndex).getBytes();
     }
 
+    /**
+     * Checks if this parameter is final.
+     *
+     * @return true if this parameter is final.
+     */
     public boolean isFinal() {
         return (accessFlags & Const.ACC_FINAL) != 0;
     }
 
+    /**
+     * Checks if this parameter is mandated.
+     *
+     * @return true if this parameter is mandated.
+     */
     public boolean isMandated() {
         return (accessFlags & Const.ACC_MANDATED) != 0;
     }
 
+    /**
+     * Checks if this parameter is synthetic.
+     *
+     * @return true if this parameter is synthetic.
+     */
     public boolean isSynthetic() {
         return (accessFlags & Const.ACC_SYNTHETIC) != 0;
     }
 
+    /**
+     * Sets the access flags.
+     *
+     * @param accessFlags the access flags.
+     */
     public void setAccessFlags(final int accessFlags) {
         this.accessFlags = accessFlags;
     }
 
+    /**
+     * Sets the name index.
+     *
+     * @param nameIndex the name index.
+     */
     public void setNameIndex(final int nameIndex) {
         this.nameIndex = nameIndex;
     }

Reply via email to