Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
asm
asm
Commits
0c3dbd42
Commit
0c3dbd42
authored
May 22, 2021
by
Eric Bruneton
Browse files
Fix the Javadoc of LdcInsnNode.
parent
5495d4d1
Pipeline
#13245
passed with stage
in 9 minutes and 10 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
asm-tree/src/main/java/org/objectweb/asm/tree/LdcInsnNode.java
View file @
0c3dbd42
...
...
@@ -28,8 +28,11 @@
package
org.objectweb.asm.tree
;
import
java.util.Map
;
import
org.objectweb.asm.ConstantDynamic
;
import
org.objectweb.asm.Handle
;
import
org.objectweb.asm.MethodVisitor
;
import
org.objectweb.asm.Opcodes
;
import
org.objectweb.asm.Type
;
/**
* A node that represents an LDC instruction.
...
...
@@ -39,17 +42,23 @@ import org.objectweb.asm.Opcodes;
public
class
LdcInsnNode
extends
AbstractInsnNode
{
/**
* The constant to be loaded on the stack. This parameter must be a non null {@link Integer}, a
* {@link Float}, a {@link Long}, a {@link Double}, a {@link String} or a {@link
* org.objectweb.asm.Type}.
* The constant to be loaded on the stack. This field must be a non null {@link 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
Object
cst
;
/**
* Constructs a new {@link LdcInsnNode}.
*
* @param value the constant to be loaded on the stack. This parameter must be a non null {@link
* Integer}, a {@link Float}, a {@link Long}, a {@link Double} or a {@link String}.
* @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}, 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
)
{
super
(
Opcodes
.
LDC
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment