You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2026/01/11 20:19:35 UTC
(commons-bcel) 02/14: Javadoc
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 32c1fe7536c19f3cc0040a4a33f5068460a236f7
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Jan 11 13:42:38 2026 -0500
Javadoc
---
.../apache/bcel/generic/InstructionFactory.java | 39 +++++++++++++++++++++-
1 file changed, 38 insertions(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/bcel/generic/InstructionFactory.java b/src/main/java/org/apache/bcel/generic/InstructionFactory.java
index 0e9722f8..5ece475f 100644
--- a/src/main/java/org/apache/bcel/generic/InstructionFactory.java
+++ b/src/main/java/org/apache/bcel/generic/InstructionFactory.java
@@ -702,7 +702,8 @@ public class InstructionFactory implements InstructionConstants {
* @param name name of the called method
* @param retType return type of method
* @param argTypes argument types of method
- * @param kind how to invoke, i.e., INVOKEINTERFACE, INVOKESTATIC, INVOKEVIRTUAL, or INVOKESPECIAL
+ * @param kind how to invoke, that is, INVOKEINTERFACE, INVOKESTATIC, INVOKEVIRTUAL, or INVOKESPECIAL
+ * @return the invoke instruction.
* @see Const
*/
public InvokeInstruction createInvoke(final String className, final String name, final Type retType, final Type[] argTypes, final short kind) {
@@ -818,26 +819,62 @@ public class InstructionFactory implements InstructionConstants {
return il;
}
+ /**
+ * Creates a PUTFIELD instruction.
+ *
+ * @param className the class name.
+ * @param name the field name.
+ * @param t the field type.
+ * @return the PUTFIELD instruction.
+ */
public PUTFIELD createPutField(final String className, final String name, final Type t) {
return new PUTFIELD(cp.addFieldref(className, name, t.getSignature()));
}
+ /**
+ * Creates a PUTSTATIC instruction.
+ *
+ * @param className the class name.
+ * @param name the field name.
+ * @param t the field type.
+ * @return the PUTSTATIC instruction.
+ */
public PUTSTATIC createPutStatic(final String className, final String name, final Type t) {
return new PUTSTATIC(cp.addFieldref(className, name, t.getSignature()));
}
+ /**
+ * Gets the class generator.
+ *
+ * @return the class generator.
+ */
public ClassGen getClassGen() {
return cg;
}
+ /**
+ * Gets the constant pool generator.
+ *
+ * @return the constant pool generator.
+ */
public ConstantPoolGen getConstantPool() {
return cp;
}
+ /**
+ * Sets the class generator.
+ *
+ * @param c the class generator.
+ */
public void setClassGen(final ClassGen c) {
cg = c;
}
+ /**
+ * Sets the constant pool generator.
+ *
+ * @param c the constant pool generator.
+ */
public void setConstantPool(final ConstantPoolGen c) {
cp = c;
}