Interface MethodParameterInfo
public sealed interface MethodParameterInfo
Models a single method parameter in the 
MethodParametersAttribute.- See Java Virtual Machine Specification:
- 
4.7.24 The MethodParametersAttribute
- Since:
- 24
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptiondefault Set<AccessFlag> flags()Returns the access flags, as a set of flag enums.intReturns the access flags, as a bit mask.default booleanhas(AccessFlag flag) Returns whether the method parameter has a specific flag set.name()Returns the parameter name, if it has one.static MethodParameterInfoReturns a method parameter description.static MethodParameterInfoof(Optional<String> name, AccessFlag... flags) Returns a method parameter description.static MethodParameterInfoofParameter(Optional<String> name, int flags) Returns a method parameter description.
- 
Method Details- 
name
- 
flagsMaskint flagsMask()Returns the access flags, as a bit mask. It is in the range of unsigned short,[0, 0xFFFF].- Returns:
- the access flags, as a bit mask
- See Also:
 
- 
flagsReturns the access flags, as a set of flag enums.- Returns:
- the access flags, as a set of flag enums
- Throws:
- IllegalArgumentException- if the flags mask has any undefined bit set
- See Also:
 
- 
hasReturns whether the method parameter has a specific flag set.- Parameters:
- flag- the method parameter flag
- Returns:
- whether the method parameter has a specific flag set
- See Also:
 
- 
ofReturns a method parameter description.- Parameters:
- name- the method parameter name, may be empty
- flags- the method parameter access flags
- Returns:
- a method parameter description
 
- 
ofReturns a method parameter description.- Parameters:
- name- the method parameter name, may be empty
- flags- the method parameter access flags
- Returns:
- a method parameter description
- Throws:
- IllegalArgumentException- if any flag cannot be applied to the- AccessFlag.Location.METHOD_PARAMETERlocation
 
- 
ofParameterReturns a method parameter description.- Parameters:
- name- the method parameter name, may be empty
- flags- the method parameter access flags
- Returns:
- a method parameter description
 
 
-