@Override @JTranscAsync public synchronized StringBuffer append(String str) { super.append(str); return this; }
@JTranscAsync public synchronized StringBuffer append(StringBuffer sb) { super.append(sb); return this; }
@Override @JTranscAsync public synchronized String substring(int start) { return super.substring(start); }
@Override @JTranscAsync public StringBuffer insert(int offset, boolean b) { super.insert(offset, b); return this; }
@Override @JTranscAsync public StringBuffer insert(int offset, double d) { super.insert(offset, d); return this; }
/** * Takes the contents of this stream and writes it to the output stream * {@code out}. * * @param out an OutputStream on which to write the contents of this stream. * @throws IOException if an error occurs while writing to {@code out}. */ @JTranscAsync public void writeTo(OutputStream out) throws IOException { out.write(buf, 0, count); } }
@Override @JTranscAsync public synchronized StringBuffer appendCodePoint(int codePoint) { super.append(codePoint); return this; }
@Override @JTranscAsync public StringBuffer insert(int offset, int i) { super.insert(offset, i); return this; }
@JTranscAsync public static StackTraceElement[] getCallingClassLoader() { try { throw new RuntimeException(); } catch (RuntimeException e) { return e.getStackTrace(); } } }
@JTranscAsync public static Integer getInteger(String nm, int val) { Integer result = getInteger(nm, null); return (result == null) ? new Integer(val) : result; }
@JTranscAsync public static String format(String format, Object... args) { StringBuilder sb = new StringBuilder(); Formatter formatter = new Formatter(sb); formatter.format(format, args); return sb.toString(); }
@JTranscAsync public static String join(CharSequence delimiter, Iterable<? extends CharSequence> elements) { ArrayList<CharSequence> out = new ArrayList<CharSequence>(); for (CharSequence element : elements) out.add(element); return join(delimiter, out.toArray(new CharSequence[out.size()])); }
@JTranscAsync public String[] split(String regex, int limit) { if (regex.length() == 1) { return split(regex.charAt(0), limit); } else { return Pattern.compile(regex).split(this, limit); } //return JTranscRegex.Pattern.compile(regex).split(this, limit); }
@JTranscAsync public int indexOf(Object o) { int len = size(); for (int i = 0; i < len; i++) if (Objects.equals(o, _get(i))) return i; return -1; }
@Override @JTranscAsync public synchronized void ensureCapacity(int minimumCapacity) { super.ensureCapacity(minimumCapacity); }
@JTranscAsync static public Set<JTranscCharset> getSupportedCharsetsSet() { JTranscCharset[] supportedCharsets = getSupportedCharsets(); HashSet<JTranscCharset> out = new HashSet<>(); Collections.addAll(out, supportedCharsets); return out; }
@JTranscAsync public boolean addAll(int index, Collection<? extends E> c) { rangeCheckForAdd(index); _insert(index, c.toArray()); if (c.size() != 0) modCount++; return c.size() != 0; }
@JTranscAsync public boolean remove(Object o) { int len = size(); for (int index = 0; index < len; index++) { if (Objects.equals(o, _get(index))) { _remove(index); return true; } } return false; }
@HaxeMethodBody("return N.str('' + this._wrapped);") @JTranscMethodBody(target = "js", value = "return N.str('' + this._wrapped);") @JTranscAsync public String toString() { return Objects.toString(item); } }
@HaxeMethodBody("return new EReg('^' + p0._str + '$', '').match(this._str);") @JTranscMethodBody(target = "js", value = "return new RegExp('^' + N.istr(p0) + '$').test(N.istr(this));") @JTranscAsync public boolean matches(String regex) { return Pattern.matches(regex, this); }