Commit 0c3dbd42 authored by Eric Bruneton's avatar Eric Bruneton
Browse files

Fix the Javadoc of LdcInsnNode.

parent 5495d4d1
Pipeline #13245 passed with stage
in 9 minutes and 10 seconds
...@@ -28,8 +28,11 @@ ...@@ -28,8 +28,11 @@
package org.objectweb.asm.tree; package org.objectweb.asm.tree;
import java.util.Map; import java.util.Map;
import org.objectweb.asm.ConstantDynamic;
import org.objectweb.asm.Handle;
import org.objectweb.asm.MethodVisitor; import org.objectweb.asm.MethodVisitor;
import org.objectweb.asm.Opcodes; import org.objectweb.asm.Opcodes;
import org.objectweb.asm.Type;
/** /**
* A node that represents an LDC instruction. * A node that represents an LDC instruction.
...@@ -39,17 +42,23 @@ import org.objectweb.asm.Opcodes; ...@@ -39,17 +42,23 @@ import org.objectweb.asm.Opcodes;
public class LdcInsnNode extends AbstractInsnNode { public class LdcInsnNode extends AbstractInsnNode {
/** /**
* The constant to be loaded on the stack. This parameter must be a non null {@link Integer}, a * The constant to be loaded on the stack. This field must be a non null {@link Integer}, a {@link
* {@link Float}, a {@link Long}, a {@link Double}, a {@link String} or a {@link * Float}, a {@link Long}, a {@link Double}, a {@link String}, a {@link Type} of OBJECT or ARRAY
* org.objectweb.asm.Type}. * sort for {@code .class} constants, for classes whose version is 49, a {@link Type} of METHOD
* sort for MethodType, a {@link Handle} for MethodHandle constants, for classes whose version is
* 51 or a {@link ConstantDynamic} for a constant dynamic for classes whose version is 55.
*/ */
public Object cst; public Object cst;
/** /**
* Constructs a new {@link LdcInsnNode}. * Constructs a new {@link LdcInsnNode}.
* *
* @param value the constant to be loaded on the stack. This parameter must be a non null {@link * @param value the constant to be loaded on the stack. This parameter mist be a non null {@link
* Integer}, a {@link Float}, a {@link Long}, a {@link Double} or a {@link String}. * Integer}, a {@link Float}, a {@link Long}, a {@link Double}, a {@link String}, a {@link
* Type} of OBJECT or ARRAY sort for {@code .class} constants, for classes whose version is
* 49, a {@link Type} of METHOD sort for MethodType, a {@link Handle} for MethodHandle
* constants, for classes whose version is 51 or a {@link ConstantDynamic} for a constant
* dynamic for classes whose version is 55.
*/ */
public LdcInsnNode(final Object value) { public LdcInsnNode(final Object value) {
super(Opcodes.LDC); super(Opcodes.LDC);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment