1
2
3
4
5
6 package mockit.asm.types;
7
8 import edu.umd.cs.findbugs.annotations.NonNull;
9
10 import org.checkerframework.checker.index.qual.NonNegative;
11
12 public final class MethodType extends ReferenceType {
13
14
15
16 public static MethodType create(@NonNull String methodDescriptor) {
17 char[] typeDesc = methodDescriptor.toCharArray();
18 return new MethodType(typeDesc, 0, typeDesc.length);
19 }
20
21
22
23
24
25
26
27
28
29
30
31 MethodType(@NonNull char[] typeDesc, @NonNegative int off, @NonNegative int len) {
32 super(typeDesc, off, len);
33 }
34
35 @NonNull
36 @Override
37 public String getClassName() {
38 throw new UnsupportedOperationException();
39 }
40
41 @Override
42 public int getSize() {
43 throw new UnsupportedOperationException();
44 }
45
46 @Override
47 public int getOpcode(int opcode) {
48 throw new UnsupportedOperationException();
49 }
50 }