Skip to content
GitLab
Menu
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
8ef178c4
Commit
8ef178c4
authored
Jun 06, 2021
by
Eric Bruneton
Browse files
Merge branch '317945-fix-ldc-insn-node-javadoc' into 'master'
Fix the Javadoc of LdcInsnNode. Closes
#317945
See merge request
!319
parents
b97cd1ed
0c3dbd42
Pipeline
#13602
passed with stage
in 6 minutes and 21 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 @
8ef178c4
...
...
@@ -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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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