public class jakarta.servlet.HttpMethodConstraintElement extends jakarta.servlet.HttpConstraintElement
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jakarta.servlet.HttpMethodConstraintElement
super_class: jakarta.servlet.HttpConstraintElement
{
private java.lang.String methodName;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 // jakarta.servlet.HttpMethodConstraintElement this
start local 1 // java.lang.String methodName
0: .line 37
aload 0 /* this */
invokespecial jakarta.servlet.HttpConstraintElement.<init>:()V
1: .line 38
aload 1 /* methodName */
ifnull 2
aload 1 /* methodName */
invokevirtual java.lang.String.length:()I
ifne 3
2: .line 39
StackMap locals: jakarta.servlet.HttpMethodConstraintElement java.lang.String
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "invalid HTTP method name"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: .line 41
StackMap locals:
StackMap stack:
aload 0 /* this */
aload 1 /* methodName */
putfield jakarta.servlet.HttpMethodConstraintElement.methodName:Ljava/lang/String;
4: .line 42
return
end local 1 // java.lang.String methodName
end local 0 // jakarta.servlet.HttpMethodConstraintElement this
LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljakarta/servlet/HttpMethodConstraintElement;
0 5 1 methodName Ljava/lang/String;
MethodParameters:
Name Flags
methodName
public void <init>(java.lang.String, jakarta.servlet.HttpConstraintElement);
descriptor: (Ljava/lang/String;Ljakarta/servlet/HttpConstraintElement;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 // jakarta.servlet.HttpMethodConstraintElement this
start local 1 // java.lang.String methodName
start local 2 // jakarta.servlet.HttpConstraintElement constraint
0: .line 53
aload 0 /* this */
aload 2 /* constraint */
invokevirtual jakarta.servlet.HttpConstraintElement.getEmptyRoleSemantic:()Ljakarta/servlet/annotation/ServletSecurity$EmptyRoleSemantic;
aload 2 /* constraint */
invokevirtual jakarta.servlet.HttpConstraintElement.getTransportGuarantee:()Ljakarta/servlet/annotation/ServletSecurity$TransportGuarantee;
aload 2 /* constraint */
invokevirtual jakarta.servlet.HttpConstraintElement.getRolesAllowed:()[Ljava/lang/String;
invokespecial jakarta.servlet.HttpConstraintElement.<init>:(Ljakarta/servlet/annotation/ServletSecurity$EmptyRoleSemantic;Ljakarta/servlet/annotation/ServletSecurity$TransportGuarantee;[Ljava/lang/String;)V
1: .line 54
aload 1 /* methodName */
ifnull 2
aload 1 /* methodName */
invokevirtual java.lang.String.length:()I
ifne 3
2: .line 55
StackMap locals: jakarta.servlet.HttpMethodConstraintElement java.lang.String jakarta.servlet.HttpConstraintElement
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "invalid HTTP method name"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: .line 57
StackMap locals:
StackMap stack:
aload 0 /* this */
aload 1 /* methodName */
putfield jakarta.servlet.HttpMethodConstraintElement.methodName:Ljava/lang/String;
4: .line 58
return
end local 2 // jakarta.servlet.HttpConstraintElement constraint
end local 1 // java.lang.String methodName
end local 0 // jakarta.servlet.HttpMethodConstraintElement this
LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljakarta/servlet/HttpMethodConstraintElement;
0 5 1 methodName Ljava/lang/String;
0 5 2 constraint Ljakarta/servlet/HttpConstraintElement;
MethodParameters:
Name Flags
methodName
constraint
public java.lang.String getMethodName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 // jakarta.servlet.HttpMethodConstraintElement this
0: .line 66
aload 0 /* this */
getfield jakarta.servlet.HttpMethodConstraintElement.methodName:Ljava/lang/String;
areturn
end local 0 // jakarta.servlet.HttpMethodConstraintElement this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljakarta/servlet/HttpMethodConstraintElement;
}
SourceFile: "HttpMethodConstraintElement.java"
InnerClasses:
public final EmptyRoleSemantic = jakarta.servlet.annotation.ServletSecurity$EmptyRoleSemantic of jakarta.servlet.annotation.ServletSecurity
public final TransportGuarantee = jakarta.servlet.annotation.ServletSecurity$TransportGuarantee of jakarta.servlet.annotation.ServletSecurity