W3cubDocs

/OpenJDK 25

Enum Class Opcode.Kind

java.lang.Object
java.lang.Enum<Opcode.Kind>
java.lang.classfile.Opcode.Kind
All Implemented Interfaces:
Serializable, Comparable<Opcode.Kind>, Constable
Enclosing class:
Opcode
public static enum Opcode.Kind extends Enum<Opcode.Kind>
Kinds of opcodes. Each kind of opcode has its own modeling interface for its instructions.
Since:
24

Nested Class Summary

Nested classes/interfaces declared in class Enum

Enum.EnumDesc<E>

Enum Constant Summary

Enum Constant Description
ARRAY_LOAD
Load from array.
ARRAY_STORE
Store into array.
BRANCH
Branch.
CONSTANT
Constants.
CONVERT
Type conversions.
DISCONTINUED_JSR
Discontinued jump subroutine.
DISCONTINUED_RET
Discontinued return from subroutine.
FIELD_ACCESS
Access field.
INCREMENT
Increment local variable.
INVOKE
Invoke method or constructor.
INVOKE_DYNAMIC
Invoke a dynamically-computed call site.
LOAD
Load from local variable.
LOOKUP_SWITCH
Access jump table by key match and jump.
MONITOR
Monitor.
NEW_MULTI_ARRAY
Create new multidimensional array.
NEW_OBJECT
Create new object.
NEW_PRIMITIVE_ARRAY
Create new array.
NEW_REF_ARRAY
Create new reference array.
NOP
Do nothing.
OPERATOR
Operators.
RETURN
Return from method.
STACK
Stack operations.
STORE
Store into local variable.
TABLE_SWITCH
Access jump table by index and jump.
THROW_EXCEPTION
Throw exception or error.
TYPE_CHECK
Check whether object is of given type.

Method Summary

Modifier and Type Method Description
static Opcode.Kind valueOf(String name)
Returns the enum constant of this class with the specified name.
static Opcode.Kind[] values()
Returns an array containing the constants of this enum class, in the order they are declared.

Methods declared in class Object

getClass, notify, notifyAll, wait, wait, wait

Enum Constant Details

LOAD

STORE

INCREMENT

public static final Opcode.Kind INCREMENT
Increment local variable.
See Also:

BRANCH

LOOKUP_SWITCH

public static final Opcode.Kind LOOKUP_SWITCH
Access jump table by key match and jump.
See Also:

TABLE_SWITCH

public static final Opcode.Kind TABLE_SWITCH
Access jump table by index and jump.
See Also:

RETURN

public static final Opcode.Kind RETURN
Return from method.
See Also:

THROW_EXCEPTION

public static final Opcode.Kind THROW_EXCEPTION
Throw exception or error.
See Also:

FIELD_ACCESS

public static final Opcode.Kind FIELD_ACCESS
Access field.
See Also:

INVOKE

public static final Opcode.Kind INVOKE
Invoke method or constructor.
See Also:

INVOKE_DYNAMIC

public static final Opcode.Kind INVOKE_DYNAMIC
Invoke a dynamically-computed call site.
See Also:

NEW_OBJECT

public static final Opcode.Kind NEW_OBJECT
Create new object.
See Also:

NEW_PRIMITIVE_ARRAY

public static final Opcode.Kind NEW_PRIMITIVE_ARRAY
Create new array.
See Also:

NEW_REF_ARRAY

public static final Opcode.Kind NEW_REF_ARRAY
Create new reference array.
See Also:

NEW_MULTI_ARRAY

public static final Opcode.Kind NEW_MULTI_ARRAY
Create new multidimensional array.
See Also:

TYPE_CHECK

public static final Opcode.Kind TYPE_CHECK
Check whether object is of given type.
See Also:

ARRAY_LOAD

ARRAY_STORE

STACK

CONVERT

OPERATOR

CONSTANT

MONITOR

public static final Opcode.Kind MONITOR
Monitor.
See Also:

NOP

public static final Opcode.Kind NOP
Do nothing.
See Also:

DISCONTINUED_JSR

public static final Opcode.Kind DISCONTINUED_JSR
Discontinued jump subroutine.
See Also:

DISCONTINUED_RET

public static final Opcode.Kind DISCONTINUED_RET
Discontinued return from subroutine.
See Also:

Method Details

values

public static Opcode.Kind[] values()
Returns an array containing the constants of this enum class, in the order they are declared.
Returns:
an array containing the constants of this enum class, in the order they are declared

valueOf

public static Opcode.Kind valueOf(String name)
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum class has no constant with the specified name
NullPointerException - if the argument is null

© 1993, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/classfile/Opcode.Kind.html