/** * Adds a new <code>CONSTANT_Utf8_info</code> * structure. * * @return the index of the added entry. */ public int addUtf8Info(String utf8) { return addItem(new Utf8Info(utf8, numOfItems)); }
/** * Adds a new <code>CONSTANT_Utf8_info</code> * structure. * * @return the index of the added entry. */ public int addUtf8Info(String utf8) { return addItem(new Utf8Info(utf8, numOfItems)); }
switch (tag) { case Utf8Info.tag : // 1 info = new Utf8Info(in, numOfItems); break; case IntegerInfo.tag : // 3
switch (tag) { case Utf8Info.tag : // 1 info = new Utf8Info(in, numOfItems); break; case IntegerInfo.tag : // 3
/** * Adds a new <code>CONSTANT_Utf8_info</code> * structure. * * @return the index of the added entry. */ public int addUtf8Info(String utf8) { return addItem(new Utf8Info(utf8, numOfItems)); }
/** * Adds a new <code>CONSTANT_Utf8_info</code> * structure. * * @return the index of the added entry. */ public int addUtf8Info(String utf8) { return addItem(new Utf8Info(utf8, numOfItems)); }
/** * Adds a new <code>CONSTANT_Utf8_info</code> * structure. * * @return the index of the added entry. */ public int addUtf8Info(String utf8) { return addItem(new Utf8Info(utf8, numOfItems)); }
/** * Adds a new <code>CONSTANT_Utf8_info</code> * structure. * * <p>If the given utf8 string has been already recorded in the * table, then this method does not add a new entry to avoid adding * a duplicated entry. * Instead, it returns the index of the entry already recorded. * * @return the index of the added entry. */ public int addUtf8Info(String utf8) { Utf8Info info = (Utf8Info)strings.get(utf8); if (info != null) return info.index; else { info = new Utf8Info(utf8, numOfItems); strings.put(utf8, info); return addItem(info); } }
/** * Adds a new <code>CONSTANT_Utf8_info</code> * structure. * * <p>If the given utf8 string has been already recorded in the * table, then this method does not add a new entry to avoid adding * a duplicated entry. * Instead, it returns the index of the entry already recorded. * * @return the index of the added entry. */ public int addUtf8Info(String utf8) { Utf8Info info = (Utf8Info)strings.get(utf8); if (info != null) return info.index; else { info = new Utf8Info(utf8, numOfItems); strings.put(utf8, info); return addItem(info); } }
switch (tag) { case Utf8Info.tag : // 1 info = new Utf8Info(in, numOfItems); strings.put(((Utf8Info)info).string, info); break;
switch (tag) { case Utf8Info.tag : // 1 info = new Utf8Info(in, numOfItems); strings.put(((Utf8Info)info).string, info); break;
switch (tag) { case Utf8Info.tag : // 1 info = new Utf8Info(in, numOfItems); break; case IntegerInfo.tag : // 3
switch (tag) { case Utf8Info.tag : // 1 info = new Utf8Info(in, numOfItems); break; case IntegerInfo.tag : // 3
switch (tag) { case Utf8Info.tag : // 1 info = new Utf8Info(in, numOfItems); break; case IntegerInfo.tag : // 3