blob: 7b7eea43835fecdc3c7a437b0a9cc6b702cbec9f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
/* NSC -- new Scala compiler
* Copyright 2005-2012 LAMP/EPFL
*/
package scala.tools.asm.util;
import scala.tools.asm.util.CheckMethodAdapter;
import scala.tools.asm.MethodVisitor;
/**
* A subclass of ASM's CheckMethodAdapter for the sole purpose of accessing some protected methods there.
*
*/
public class SignatureChecker extends CheckMethodAdapter {
public SignatureChecker(final MethodVisitor mv) {
super(mv);
}
/**
* Checks a class signature.
*
* @param signature a string containing the signature that must be checked.
*/
public static void checkClassSignature(final String signature) {
CheckMethodAdapter.checkClassSignature(signature);
}
/**
* Checks a method signature.
*
* @param signature a string containing the signature that must be checked.
*/
public static void checkMethodSignature(final String signature) {
CheckMethodAdapter.checkMethodSignature(signature);
}
/**
* Checks a field signature.
*
* @param signature a string containing the signature that must be checked.
*/
public static void checkFieldSignature(final String signature) {
CheckMethodAdapter.checkFieldSignature(signature);
}
}
|