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 d88d07006e58c6a179afdfa1241b3753e5ae2106 Author: Gary Gregory <[email protected]> AuthorDate: Fri Jan 9 15:16:09 2026 -0500 Javadoc --- .../org/apache/bcel/classfile/ClassElementValue.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/main/java/org/apache/bcel/classfile/ClassElementValue.java b/src/main/java/org/apache/bcel/classfile/ClassElementValue.java index 91f85aff..8e2e15fb 100644 --- a/src/main/java/org/apache/bcel/classfile/ClassElementValue.java +++ b/src/main/java/org/apache/bcel/classfile/ClassElementValue.java @@ -32,6 +32,13 @@ public class ClassElementValue extends ElementValue { // For 'class' this points to the class entry in the cpool private final int idx; + /** + * Constructs a ClassElementValue. + * + * @param type the type. + * @param idx the index. + * @param cpool the constant pool. + */ public ClassElementValue(final int type, final int idx, final ConstantPool cpool) { super(type, cpool); this.idx = idx; @@ -43,10 +50,20 @@ public class ClassElementValue extends ElementValue { dos.writeShort(idx); } + /** + * Gets the class string. + * + * @return the class string. + */ public String getClassString() { return super.getConstantPool().getConstantUtf8(idx).getBytes(); } + /** + * Gets the index. + * + * @return the index. + */ public int getIndex() { return idx; }
