Home | History | Annotate | Download | only in type

Lines Matching defs:Prototype

28 public final class Prototype implements Comparable<Prototype> {
34 private static final ConcurrentMap<String, Prototype> internTable =
59 public static Prototype intern(String descriptor) {
64 Prototype result = internTable.get(descriptor);
74 * Returns a prototype for a method descriptor.
76 * The {@code Prototype} returned will be the interned value if present,
85 public static Prototype fromDescriptor(String descriptor) {
86 Prototype result = internTable.get(descriptor);
132 return new Prototype(descriptor, returnType, parameterTypes);
196 public static Prototype intern(String descriptor, Type definer,
198 Prototype base = intern(descriptor);
216 * @param count {@code > 0;} the number of elements in the prototype
219 public static Prototype internInts(Type returnType, int count) {
243 private Prototype(String descriptor, Type returnType,
274 if (!(other instanceof Prototype)) {
278 return descriptor.equals(((Prototype) other).descriptor);
289 public int compareTo(Prototype other) {
398 public Prototype withFirstParameter(Type param) {
404 Prototype result =
405 new Prototype(newDesc, returnType, newParams);
418 private static Prototype putIntern(Prototype desc) {
419 Prototype result = internTable.putIfAbsent(desc.getDescriptor(), desc);