• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2014 The Android Open Source Project
3  * Copyright (c) 1994, 2013, Oracle and/or its affiliates. All rights reserved.
4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5  *
6  * This code is free software; you can redistribute it and/or modify it
7  * under the terms of the GNU General Public License version 2 only, as
8  * published by the Free Software Foundation.  Oracle designates this
9  * particular file as subject to the "Classpath" exception as provided
10  * by Oracle in the LICENSE file that accompanied this code.
11  *
12  * This code is distributed in the hope that it will be useful, but WITHOUT
13  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
15  * version 2 for more details (a copy is included in the LICENSE file that
16  * accompanied this code).
17  *
18  * You should have received a copy of the GNU General Public License version
19  * 2 along with this work; if not, write to the Free Software Foundation,
20  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
21  *
22  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
23  * or visit www.oracle.com if you need additional information or have any
24  * questions.
25  */
26 
27 
28 package java.lang;
29 
30 import java.nio.charset.Charset;
31 import java.io.UnsupportedEncodingException;
32 import java.util.regex.Pattern;
33 import java.util.regex.PatternSyntaxException;
34 import java.util.StringJoiner;
35 import java.util.Locale;
36 import java.util.Formatter;
37 import java.util.Comparator;
38 import java.util.stream.Stream;
39 
40 @SuppressWarnings({"unchecked", "deprecation", "all"})
41 public final class String implements java.io.Serializable, java.lang.Comparable<java.lang.String>, java.lang.CharSequence {
42 
String()43 public String() { throw new RuntimeException("Stub!"); }
44 
String(@ibcore.util.NonNull java.lang.String original)45 public String(@libcore.util.NonNull java.lang.String original) { throw new RuntimeException("Stub!"); }
46 
String(char[] value)47 public String(char[] value) { throw new RuntimeException("Stub!"); }
48 
String(char[] value, int offset, int count)49 public String(char[] value, int offset, int count) { throw new RuntimeException("Stub!"); }
50 
String(int[] codePoints, int offset, int count)51 public String(int[] codePoints, int offset, int count) { throw new RuntimeException("Stub!"); }
52 
String(byte[] ascii, int hibyte, int offset, int count)53 @Deprecated public String(byte[] ascii, int hibyte, int offset, int count) { throw new RuntimeException("Stub!"); }
54 
String(byte[] ascii, int hibyte)55 @Deprecated public String(byte[] ascii, int hibyte) { throw new RuntimeException("Stub!"); }
56 
String(byte[] bytes, int offset, int length, @libcore.util.NonNull java.lang.String charsetName)57 public String(byte[] bytes, int offset, int length, @libcore.util.NonNull java.lang.String charsetName) throws java.io.UnsupportedEncodingException { throw new RuntimeException("Stub!"); }
58 
String(byte[] bytes, int offset, int length, @libcore.util.NonNull java.nio.charset.Charset charset)59 public String(byte[] bytes, int offset, int length, @libcore.util.NonNull java.nio.charset.Charset charset) { throw new RuntimeException("Stub!"); }
60 
String(byte[] bytes, @libcore.util.NonNull java.lang.String charsetName)61 public String(byte[] bytes, @libcore.util.NonNull java.lang.String charsetName) throws java.io.UnsupportedEncodingException { throw new RuntimeException("Stub!"); }
62 
String(byte[] bytes, @libcore.util.NonNull java.nio.charset.Charset charset)63 public String(byte[] bytes, @libcore.util.NonNull java.nio.charset.Charset charset) { throw new RuntimeException("Stub!"); }
64 
String(byte[] bytes, int offset, int length)65 public String(byte[] bytes, int offset, int length) { throw new RuntimeException("Stub!"); }
66 
String(byte[] bytes)67 public String(byte[] bytes) { throw new RuntimeException("Stub!"); }
68 
String(@ibcore.util.NonNull java.lang.StringBuffer buffer)69 public String(@libcore.util.NonNull java.lang.StringBuffer buffer) { throw new RuntimeException("Stub!"); }
70 
String(@ibcore.util.NonNull java.lang.StringBuilder builder)71 public String(@libcore.util.NonNull java.lang.StringBuilder builder) { throw new RuntimeException("Stub!"); }
72 
length()73 public int length() { throw new RuntimeException("Stub!"); }
74 
isEmpty()75 public boolean isEmpty() { throw new RuntimeException("Stub!"); }
76 
charAt(int index)77 public native char charAt(int index);
78 
codePointAt(int index)79 public int codePointAt(int index) { throw new RuntimeException("Stub!"); }
80 
codePointBefore(int index)81 public int codePointBefore(int index) { throw new RuntimeException("Stub!"); }
82 
codePointCount(int beginIndex, int endIndex)83 public int codePointCount(int beginIndex, int endIndex) { throw new RuntimeException("Stub!"); }
84 
offsetByCodePoints(int index, int codePointOffset)85 public int offsetByCodePoints(int index, int codePointOffset) { throw new RuntimeException("Stub!"); }
86 
getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin)87 public void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin) { throw new RuntimeException("Stub!"); }
88 
getBytes(int srcBegin, int srcEnd, byte[] dst, int dstBegin)89 @Deprecated public void getBytes(int srcBegin, int srcEnd, byte[] dst, int dstBegin) { throw new RuntimeException("Stub!"); }
90 
getBytes(@ibcore.util.NonNull java.lang.String charsetName)91 public byte[] getBytes(@libcore.util.NonNull java.lang.String charsetName) throws java.io.UnsupportedEncodingException { throw new RuntimeException("Stub!"); }
92 
getBytes(@ibcore.util.NonNull java.nio.charset.Charset charset)93 public byte[] getBytes(@libcore.util.NonNull java.nio.charset.Charset charset) { throw new RuntimeException("Stub!"); }
94 
getBytes()95 public byte[] getBytes() { throw new RuntimeException("Stub!"); }
96 
equals(@ibcore.util.Nullable java.lang.Object anObject)97 public boolean equals(@libcore.util.Nullable java.lang.Object anObject) { throw new RuntimeException("Stub!"); }
98 
contentEquals(@ibcore.util.NonNull java.lang.StringBuffer sb)99 public boolean contentEquals(@libcore.util.NonNull java.lang.StringBuffer sb) { throw new RuntimeException("Stub!"); }
100 
contentEquals(@ibcore.util.NonNull java.lang.CharSequence cs)101 public boolean contentEquals(@libcore.util.NonNull java.lang.CharSequence cs) { throw new RuntimeException("Stub!"); }
102 
equalsIgnoreCase(@ibcore.util.Nullable java.lang.String anotherString)103 public boolean equalsIgnoreCase(@libcore.util.Nullable java.lang.String anotherString) { throw new RuntimeException("Stub!"); }
104 
compareTo(@ibcore.util.NonNull java.lang.String anotherString)105 public native int compareTo(@libcore.util.NonNull java.lang.String anotherString);
106 
compareToIgnoreCase(@ibcore.util.NonNull java.lang.String str)107 public int compareToIgnoreCase(@libcore.util.NonNull java.lang.String str) { throw new RuntimeException("Stub!"); }
108 
regionMatches(int toffset, @libcore.util.NonNull java.lang.String other, int ooffset, int len)109 public boolean regionMatches(int toffset, @libcore.util.NonNull java.lang.String other, int ooffset, int len) { throw new RuntimeException("Stub!"); }
110 
regionMatches(boolean ignoreCase, int toffset, @libcore.util.NonNull java.lang.String other, int ooffset, int len)111 public boolean regionMatches(boolean ignoreCase, int toffset, @libcore.util.NonNull java.lang.String other, int ooffset, int len) { throw new RuntimeException("Stub!"); }
112 
startsWith(@ibcore.util.NonNull java.lang.String prefix, int toffset)113 public boolean startsWith(@libcore.util.NonNull java.lang.String prefix, int toffset) { throw new RuntimeException("Stub!"); }
114 
startsWith(@ibcore.util.NonNull java.lang.String prefix)115 public boolean startsWith(@libcore.util.NonNull java.lang.String prefix) { throw new RuntimeException("Stub!"); }
116 
endsWith(@ibcore.util.NonNull java.lang.String suffix)117 public boolean endsWith(@libcore.util.NonNull java.lang.String suffix) { throw new RuntimeException("Stub!"); }
118 
hashCode()119 public int hashCode() { throw new RuntimeException("Stub!"); }
120 
indexOf(int ch)121 public int indexOf(int ch) { throw new RuntimeException("Stub!"); }
122 
indexOf(int ch, int fromIndex)123 public int indexOf(int ch, int fromIndex) { throw new RuntimeException("Stub!"); }
124 
lastIndexOf(int ch)125 public int lastIndexOf(int ch) { throw new RuntimeException("Stub!"); }
126 
lastIndexOf(int ch, int fromIndex)127 public int lastIndexOf(int ch, int fromIndex) { throw new RuntimeException("Stub!"); }
128 
indexOf(@ibcore.util.NonNull java.lang.String str)129 public int indexOf(@libcore.util.NonNull java.lang.String str) { throw new RuntimeException("Stub!"); }
130 
indexOf(@ibcore.util.NonNull java.lang.String str, int fromIndex)131 public int indexOf(@libcore.util.NonNull java.lang.String str, int fromIndex) { throw new RuntimeException("Stub!"); }
132 
lastIndexOf(@ibcore.util.NonNull java.lang.String str)133 public int lastIndexOf(@libcore.util.NonNull java.lang.String str) { throw new RuntimeException("Stub!"); }
134 
lastIndexOf(@ibcore.util.NonNull java.lang.String str, int fromIndex)135 public int lastIndexOf(@libcore.util.NonNull java.lang.String str, int fromIndex) { throw new RuntimeException("Stub!"); }
136 
substring(int beginIndex)137 @libcore.util.NonNull public java.lang.String substring(int beginIndex) { throw new RuntimeException("Stub!"); }
138 
substring(int beginIndex, int endIndex)139 @libcore.util.NonNull public java.lang.String substring(int beginIndex, int endIndex) { throw new RuntimeException("Stub!"); }
140 
subSequence(int beginIndex, int endIndex)141 @libcore.util.NonNull public java.lang.CharSequence subSequence(int beginIndex, int endIndex) { throw new RuntimeException("Stub!"); }
142 
concat(@ibcore.util.NonNull java.lang.String str)143 @libcore.util.NonNull public native java.lang.String concat(@libcore.util.NonNull java.lang.String str);
144 
replace(char oldChar, char newChar)145 @libcore.util.NonNull public java.lang.String replace(char oldChar, char newChar) { throw new RuntimeException("Stub!"); }
146 
matches(@ibcore.util.NonNull java.lang.String regex)147 public boolean matches(@libcore.util.NonNull java.lang.String regex) { throw new RuntimeException("Stub!"); }
148 
contains(@ibcore.util.NonNull java.lang.CharSequence s)149 public boolean contains(@libcore.util.NonNull java.lang.CharSequence s) { throw new RuntimeException("Stub!"); }
150 
replaceFirst(@ibcore.util.NonNull java.lang.String regex, @libcore.util.NonNull java.lang.String replacement)151 @libcore.util.NonNull public java.lang.String replaceFirst(@libcore.util.NonNull java.lang.String regex, @libcore.util.NonNull java.lang.String replacement) { throw new RuntimeException("Stub!"); }
152 
replaceAll(@ibcore.util.NonNull java.lang.String regex, @libcore.util.NonNull java.lang.String replacement)153 @libcore.util.NonNull public java.lang.String replaceAll(@libcore.util.NonNull java.lang.String regex, @libcore.util.NonNull java.lang.String replacement) { throw new RuntimeException("Stub!"); }
154 
replace(@ibcore.util.NonNull java.lang.CharSequence target, @libcore.util.NonNull java.lang.CharSequence replacement)155 @libcore.util.NonNull public java.lang.String replace(@libcore.util.NonNull java.lang.CharSequence target, @libcore.util.NonNull java.lang.CharSequence replacement) { throw new RuntimeException("Stub!"); }
156 
split(@ibcore.util.NonNull java.lang.String regex, int limit)157 public java.lang.@libcore.util.NonNull String @libcore.util.NonNull [] split(@libcore.util.NonNull java.lang.String regex, int limit) { throw new RuntimeException("Stub!"); }
158 
split(@ibcore.util.NonNull java.lang.String regex)159 public java.lang.@libcore.util.NonNull String @libcore.util.NonNull [] split(@libcore.util.NonNull java.lang.String regex) { throw new RuntimeException("Stub!"); }
160 
join(@ibcore.util.NonNull java.lang.CharSequence delimiter, java.lang.@libcore.util.NonNull CharSequence @libcore.util.Nullable ... elements)161 @libcore.util.NonNull public static java.lang.String join(@libcore.util.NonNull java.lang.CharSequence delimiter, java.lang.@libcore.util.NonNull CharSequence @libcore.util.Nullable ... elements) { throw new RuntimeException("Stub!"); }
162 
join(@ibcore.util.NonNull java.lang.CharSequence delimiter, @libcore.util.NonNull java.lang.Iterable<? extends @libcore.util.Nullable java.lang.CharSequence> elements)163 @libcore.util.NonNull public static java.lang.String join(@libcore.util.NonNull java.lang.CharSequence delimiter, @libcore.util.NonNull java.lang.Iterable<? extends @libcore.util.Nullable java.lang.CharSequence> elements) { throw new RuntimeException("Stub!"); }
164 
toLowerCase(@ibcore.util.NonNull java.util.Locale locale)165 @libcore.util.NonNull public java.lang.String toLowerCase(@libcore.util.NonNull java.util.Locale locale) { throw new RuntimeException("Stub!"); }
166 
toLowerCase()167 @libcore.util.NonNull public java.lang.String toLowerCase() { throw new RuntimeException("Stub!"); }
168 
toUpperCase(@ibcore.util.NonNull java.util.Locale locale)169 @libcore.util.NonNull public java.lang.String toUpperCase(@libcore.util.NonNull java.util.Locale locale) { throw new RuntimeException("Stub!"); }
170 
toUpperCase()171 @libcore.util.NonNull public java.lang.String toUpperCase() { throw new RuntimeException("Stub!"); }
172 
trim()173 @libcore.util.NonNull public java.lang.String trim() { throw new RuntimeException("Stub!"); }
174 
strip()175 @libcore.util.NonNull public java.lang.String strip() { throw new RuntimeException("Stub!"); }
176 
stripLeading()177 @libcore.util.NonNull public java.lang.String stripLeading() { throw new RuntimeException("Stub!"); }
178 
stripTrailing()179 @libcore.util.NonNull public java.lang.String stripTrailing() { throw new RuntimeException("Stub!"); }
180 
isBlank()181 public boolean isBlank() { throw new RuntimeException("Stub!"); }
182 
lines()183 @libcore.util.NonNull public java.util.stream.Stream<String> lines() { throw new RuntimeException("Stub!"); }
184 
toString()185 @libcore.util.NonNull public java.lang.String toString() { throw new RuntimeException("Stub!"); }
186 
toCharArray()187 public native char[] toCharArray();
188 
format(@ibcore.util.NonNull java.lang.String format, java.lang.@libcore.util.Nullable Object @libcore.util.NonNull ... args)189 @libcore.util.NonNull public static java.lang.String format(@libcore.util.NonNull java.lang.String format, java.lang.@libcore.util.Nullable Object @libcore.util.NonNull ... args) { throw new RuntimeException("Stub!"); }
190 
format(@ibcore.util.NonNull java.util.Locale l, @libcore.util.NonNull java.lang.String format, java.lang.@libcore.util.Nullable Object @libcore.util.NonNull ... args)191 @libcore.util.NonNull public static java.lang.String format(@libcore.util.NonNull java.util.Locale l, @libcore.util.NonNull java.lang.String format, java.lang.@libcore.util.Nullable Object @libcore.util.NonNull ... args) { throw new RuntimeException("Stub!"); }
192 
valueOf(@ibcore.util.Nullable java.lang.Object obj)193 @libcore.util.NonNull public static java.lang.String valueOf(@libcore.util.Nullable java.lang.Object obj) { throw new RuntimeException("Stub!"); }
194 
valueOf(char[] data)195 @libcore.util.NonNull public static java.lang.String valueOf(char[] data) { throw new RuntimeException("Stub!"); }
196 
valueOf(char[] data, int offset, int count)197 @libcore.util.NonNull public static java.lang.String valueOf(char[] data, int offset, int count) { throw new RuntimeException("Stub!"); }
198 
copyValueOf(char[] data, int offset, int count)199 @libcore.util.NonNull public static java.lang.String copyValueOf(char[] data, int offset, int count) { throw new RuntimeException("Stub!"); }
200 
copyValueOf(char[] data)201 @libcore.util.NonNull public static java.lang.String copyValueOf(char[] data) { throw new RuntimeException("Stub!"); }
202 
valueOf(boolean b)203 @libcore.util.NonNull public static java.lang.String valueOf(boolean b) { throw new RuntimeException("Stub!"); }
204 
valueOf(char c)205 @libcore.util.NonNull public static java.lang.String valueOf(char c) { throw new RuntimeException("Stub!"); }
206 
valueOf(int i)207 @libcore.util.NonNull public static java.lang.String valueOf(int i) { throw new RuntimeException("Stub!"); }
208 
valueOf(long l)209 @libcore.util.NonNull public static java.lang.String valueOf(long l) { throw new RuntimeException("Stub!"); }
210 
valueOf(float f)211 @libcore.util.NonNull public static java.lang.String valueOf(float f) { throw new RuntimeException("Stub!"); }
212 
valueOf(double d)213 @libcore.util.NonNull public static java.lang.String valueOf(double d) { throw new RuntimeException("Stub!"); }
214 
intern()215 @libcore.util.NonNull public native java.lang.String intern();
216 
repeat(int count)217 @libcore.util.NonNull public java.lang.String repeat(int count) { throw new RuntimeException("Stub!"); }
218 
219 public static final java.util.Comparator<java.lang.String> CASE_INSENSITIVE_ORDER;
220 static { CASE_INSENSITIVE_ORDER = null; }
221 }
222