Lines Matching refs:descriptor
28 * parameter types listed in a given internal method descriptor or signature.
30 * descriptor can be retrieved separately.
36 private String descriptor;
43 * Creates a new InternalTypeEnumeration for the given method descriptor.
45 public InternalTypeEnumeration(String descriptor)
47 this.descriptor = descriptor;
48 this.firstIndex = descriptor.indexOf(ClassConstants.INTERNAL_METHOD_ARGUMENTS_OPEN);
49 this.lastIndex = descriptor.indexOf(ClassConstants.INTERNAL_METHOD_ARGUMENTS_CLOSE);
54 lastIndex = descriptor.length();
60 * Returns the formal type parameters from the descriptor, assuming it's a
61 * method descriptor.
65 return descriptor.substring(0, firstIndex);
71 * descriptor.
80 * Returns the next type from the method descriptor.
88 char c = descriptor.charAt(index++);
104 return descriptor.substring(startIndex, index);
109 * Returns the return type from the descriptor, assuming it's a method
110 * descriptor.
114 return descriptor.substring(lastIndex + 1);
122 while (descriptor.charAt(index) == ClassConstants.INTERNAL_TYPE_ARRAY)
133 char c = descriptor.charAt(index++);
153 char c = descriptor.charAt(index++);
178 String descriptor = args[index];
180 System.out.println("Descriptor ["+descriptor+"]");
181 InternalTypeEnumeration enumeration = new InternalTypeEnumeration(descriptor);
193 if (enumeration.lastIndex < descriptor.length())