/** * @return a string consisting of the shorty form of the type descriptors in this * <code>TypeListItem</code> that are directly concatenated together */ public String getShortyString() { StringBuilder sb = new StringBuilder(); for (TypeIdItem typeIdItem: typeList) { sb.append(typeIdItem.toShorty()); } return sb.toString(); }
/** * Creates a new <code>ProtoIdItem</code> with the given values * @param dexFile The <code>DexFile</code> that this item belongs to * @param returnType the return type * @param parameters a <code>TypeListItem</code> containing a list of the parameter types */ private ProtoIdItem(DexFile dexFile, TypeIdItem returnType, TypeListItem parameters) { this(dexFile); String shortyString = returnType.toShorty(); if (parameters != null) { shortyString += parameters.getShortyString(); } this.shortyDescriptor = StringIdItem.internStringIdItem(dexFile, shortyString); this.returnType = returnType; this.parameters = parameters; }
/** * @return a string consisting of the shorty form of the type descriptors in this * <code>TypeListItem</code> that are directly concatenated together */ public String getShortyString() { StringBuilder sb = new StringBuilder(); for (TypeIdItem typeIdItem: typeList) { sb.append(typeIdItem.toShorty()); } return sb.toString(); }
/** * Creates a new <code>ProtoIdItem</code> with the given values * @param dexFile The <code>DexFile</code> that this item belongs to * @param returnType the return type * @param parameters a <code>TypeListItem</code> containing a list of the parameter types */ private ProtoIdItem(DexFile dexFile, TypeIdItem returnType, TypeListItem parameters) { this(dexFile); String shortyString = returnType.toShorty(); if (parameters != null) { shortyString += parameters.getShortyString(); } this.shortyDescriptor = StringIdItem.internStringIdItem(dexFile, shortyString); this.returnType = returnType; this.parameters = parameters; }