public sealed interface MethodParameterInfo
MethodParametersAttribute.MethodParameters Attribute| Modifier and Type | Method | Description |
|---|---|---|
default Set |
flags() |
Returns the access flags, as a set of flag enums. |
int |
flagsMask() |
Returns the access flags, as a bit mask. |
default boolean |
has |
Returns whether the method parameter has a specific flag set. |
Optional |
name() |
Returns the parameter name, if it has one. |
static MethodParameterInfo |
of |
Returns a method parameter description. |
static MethodParameterInfo |
of |
Returns a method parameter description. |
static MethodParameterInfo |
ofParameter |
Returns a method parameter description. |
Optional<Utf8Entry> name()
int flagsMask()
[0, 0xFFFF].default Set<AccessFlag> flags()
IllegalArgumentException - if the flags mask has any undefined bit setdefault boolean has(AccessFlag flag)
flag - the method parameter flagstatic MethodParameterInfo of(Optional<Utf8Entry> name, int flags)
name - the method parameter name, may be emptyflags - the method parameter access flagsstatic MethodParameterInfo of(Optional<String> name, AccessFlag... flags)
name - the method parameter name, may be emptyflags - the method parameter access flagsIllegalArgumentException - if any flag cannot be applied to the AccessFlag.Location.METHOD_PARAMETER locationstatic MethodParameterInfo ofParameter(Optional<String> name, int flags)
name - the method parameter name, may be emptyflags - the method parameter access flags
© 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/attribute/MethodParameterInfo.html