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 a32cd2a7c120b1a18b8e535253c067d5221b9eb3
Author: Gary Gregory <[email protected]>
AuthorDate: Sat Jan 10 22:01:20 2026 -0500

    Javadoc
---
 .../org/apache/bcel/classfile/ElementValue.java    | 25 ++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/src/main/java/org/apache/bcel/classfile/ElementValue.java 
b/src/main/java/org/apache/bcel/classfile/ElementValue.java
index f5d9c4d8..64627619 100644
--- a/src/main/java/org/apache/bcel/classfile/ElementValue.java
+++ b/src/main/java/org/apache/bcel/classfile/ElementValue.java
@@ -53,19 +53,33 @@ import org.apache.bcel.Const;
  */
 public abstract class ElementValue {
 
+    /** Element value type: string. */
     public static final byte STRING = 's';
+    /** Element value type: enum constant. */
     public static final byte ENUM_CONSTANT = 'e';
+    /** Element value type: class. */
     public static final byte CLASS = 'c';
+    /** Element value type: annotation. */
     public static final byte ANNOTATION = '@';
+    /** Element value type: array. */
     public static final byte ARRAY = '[';
+    /** Element value type: primitive int. */
     public static final byte PRIMITIVE_INT = 'I';
+    /** Element value type: primitive byte. */
     public static final byte PRIMITIVE_BYTE = 'B';
+    /** Element value type: primitive char. */
     public static final byte PRIMITIVE_CHAR = 'C';
+    /** Element value type: primitive double. */
     public static final byte PRIMITIVE_DOUBLE = 'D';
+    /** Element value type: primitive float. */
     public static final byte PRIMITIVE_FLOAT = 'F';
+    /** Element value type: primitive long. */
     public static final byte PRIMITIVE_LONG = 'J';
+    /** Element value type: primitive short. */
     public static final byte PRIMITIVE_SHORT = 'S';
+    /** Element value type: primitive boolean. */
     public static final byte PRIMITIVE_BOOLEAN = 'Z';
+    /** Empty array constant. */
     static final ElementValue[] EMPTY_ARRAY = {};
 
     /**
@@ -145,6 +159,12 @@ public abstract class ElementValue {
     @java.lang.Deprecated
     protected ConstantPool cpool; // TODO should be final
 
+    /**
+     * Constructs an ElementValue.
+     *
+     * @param type the element value type.
+     * @param cpool the constant pool.
+     */
     protected ElementValue(final int type, final ConstantPool cpool) {
         this.type = type;
         this.cpool = cpool;
@@ -168,6 +188,11 @@ public abstract class ElementValue {
         return cpool;
     }
 
+    /**
+     * Gets the element value type.
+     *
+     * @return the element value type.
+     */
     public int getElementValueType() {
         return type;
     }

Reply via email to