/** * Return the innermost element type reference for an array */ public final TypeReference getInnermostElementType() { return findOrCreate(classloader, name.getInnermostElementType()); }
/** * Return the innermost element type reference for an array */ public final TypeReference getInnermostElementType() { return findOrCreate(classloader, name.getInnermostElementType()); }
private static void appendSemicolonIfNeeded(StringBuilder result, TypeName p) { if (p.isArrayType()) { TypeName e = p.getInnermostElementType(); String x = e.toUnicodeString(); if (x.startsWith("L") || x.startsWith("P")) { result.append(';'); } } else { String x = p.toUnicodeString(); if (x.startsWith("L") || x.startsWith("P")) { result.append(';'); } } } }
private static void appendSemicolonIfNeeded(StringBuilder result, TypeName p) { if (p.isArrayType()) { TypeName e = p.getInnermostElementType(); String x = e.toUnicodeString(); if (x.startsWith("L") || x.startsWith("P")) { result.append(';'); } } else { String x = p.toUnicodeString(); if (x.startsWith("L") || x.startsWith("P")) { result.append(';'); } } } }
/** * Find the canonical TypeReference instance for the given pair. May return null. * * @param cl the classloader (defining/initiating depending on usage) */ public static synchronized TypeReference find(ClassLoaderReference cl, TypeName typeName) { if (cl == null) { throw new IllegalArgumentException("null cl"); } TypeReference p = primitiveMap.get(typeName); if (p != null) { return p; } // Next actually findOrCreate the type reference using the proper // classloader. // [This is the only allocation site for TypeReference] if (typeName.isArrayType()) { TypeName e = typeName.getInnermostElementType(); if (e.isPrimitiveType()) { cl = ClassLoaderReference.Primordial; } } Key key = new Key(cl, typeName); TypeReference val = dictionary.get(key); return val; }
/** * Find the canonical TypeReference instance for the given pair. May return null. * * @param cl the classloader (defining/initiating depending on usage) */ public static synchronized TypeReference find(ClassLoaderReference cl, TypeName typeName) { if (cl == null) { throw new IllegalArgumentException("null cl"); } TypeReference p = primitiveMap.get(typeName); if (p != null) { return p; } // Next actually findOrCreate the type reference using the proper // classloader. // [This is the only allocation site for TypeReference] if (typeName.isArrayType()) { TypeName e = typeName.getInnermostElementType(); if (e.isPrimitiveType()) { cl = ClassLoaderReference.Primordial; } } Key key = new Key(cl, typeName); TypeReference val = dictionary.get(key); return val; }
TypeName e = typeName.getInnermostElementType(); if (e.isPrimitiveType()) { cl = ClassLoaderReference.Primordial;
TypeName e = typeName.getInnermostElementType(); if (e.isPrimitiveType()) { cl = ClassLoaderReference.Primordial;