Lines Matching defs:signature

59 package jdk.internal.org.objectweb.asm.signature;
62 * A type signature parser to make a signature visitor visit an existing
63 * signature.
71 * The signature to be read.
73 private final String signature;
76 * Constructs a {@link SignatureReader} for the given signature.
78 * @param signature
82 public SignatureReader(final String signature) {
83 this.signature = signature;
87 * Makes the given visitor visit the signature of this
88 * {@link SignatureReader}. This signature is the one specified in the
91 * created using a <i>ClassSignature</i> (such as the <code>signature</code>
94 * <code>signature</code> parameter of the
99 * the visitor that must visit this signature.
102 String signature = this.signature;
103 int len = signature.length();
107 if (signature.charAt(0) == '<') {
110 int end = signature.indexOf(':', pos);
111 v.visitFormalTypeParameter(signature.substring(pos - 1, end));
114 c = signature.charAt(pos);
116 pos = parseType(signature, pos, v.visitClassBound());
119 while ((c = signature.charAt(pos++)) == ':') {
120 pos = parseType(signature, pos, v.visitInterfaceBound());
127 if (signature.charAt(pos) == '(') {
129 while (signature.charAt(pos) != ')') {
130 pos = parseType(signature, pos, v.visitParameterType());
132 pos = parseType(signature, pos + 1, v.visitReturnType());
134 pos = parseType(signature, pos + 1, v.visitExceptionType());
137 pos = parseType(signature, pos, v.visitSuperclass());
139 pos = parseType(signature, pos, v.visitInterface());
145 * Makes the given visitor visit the signature of this
146 * {@link SignatureReader}. This signature is the one specified in the
150 * <code>signature</code> parameter of the
156 * the visitor that must visit this signature.
159 parseType(this.signature, 0, v);
163 * Parses a field type signature and makes the given visitor visit it.
165 * @param signature
166 * a string containing the signature that must be parsed.
168 * index of the first character of the signature to parsed.
170 * the visitor that must visit this signature.
171 * @return the index of the first character after the parsed signature.
173 private static int parseType(final String signature, int pos,
180 switch (c = signature.charAt(pos++)) {
194 return parseType(signature, pos, v.visitArrayType());
197 end = signature.indexOf(';', pos);
198 v.visitTypeVariable(signature.substring(pos, end));
206 switch (c = signature.charAt(pos++)) {
210 name = signature.substring(start, pos - 1);
227 name = signature.substring(start, pos - 1);
235 switch (c = signature.charAt(pos)) {
244 pos = parseType(signature, pos + 1,
248 pos = parseType(signature, pos,