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 3c9109a9f7e1e6c20b56999e7ac486e7c9b05db1
Author: Gary Gregory <[email protected]>
AuthorDate: Sat Jan 10 13:09:39 2026 -0500

    Javadoc
---
 .../bcel/classfile/ConstantMethodHandle.java       | 26 ++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/src/main/java/org/apache/bcel/classfile/ConstantMethodHandle.java 
b/src/main/java/org/apache/bcel/classfile/ConstantMethodHandle.java
index 0f0f752b..4f312009 100644
--- a/src/main/java/org/apache/bcel/classfile/ConstantMethodHandle.java
+++ b/src/main/java/org/apache/bcel/classfile/ConstantMethodHandle.java
@@ -54,6 +54,12 @@ public final class ConstantMethodHandle extends Constant {
         this(file.readUnsignedByte(), file.readUnsignedShort());
     }
 
+    /**
+     * Constructs a ConstantMethodHandle.
+     *
+     * @param referenceKind Kind of method reference.
+     * @param referenceIndex Index to the method reference.
+     */
     public ConstantMethodHandle(final int referenceKind, final int 
referenceIndex) {
         super(Const.CONSTANT_MethodHandle);
         this.referenceKind = referenceKind;
@@ -84,18 +90,38 @@ public final class ConstantMethodHandle extends Constant {
         file.writeShort(referenceIndex);
     }
 
+    /**
+     * Gets the reference index.
+     *
+     * @return the reference index.
+     */
     public int getReferenceIndex() {
         return referenceIndex;
     }
 
+    /**
+     * Gets the reference kind.
+     *
+     * @return the reference kind.
+     */
     public int getReferenceKind() {
         return referenceKind;
     }
 
+    /**
+     * Sets the reference index.
+     *
+     * @param referenceIndex the reference index.
+     */
     public void setReferenceIndex(final int referenceIndex) {
         this.referenceIndex = referenceIndex;
     }
 
+    /**
+     * Sets the reference kind.
+     *
+     * @param referenceKind the reference kind.
+     */
     public void setReferenceKind(final int referenceKind) {
         this.referenceKind = referenceKind;
     }

Reply via email to