Skip to content

Commit a2c8402

Browse files
author
Sauyon Lee
committed
Add spring stringutils stub
1 parent 20416ae commit a2c8402

File tree

1 file changed

+270
-0
lines changed
  • java/ql/test/stubs/springframework-5.2.3/org/springframework/util

1 file changed

+270
-0
lines changed
Lines changed: 270 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,270 @@
1+
/*
2+
* Copyright 2002-2019 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package org.springframework.util;
18+
19+
import java.nio.charset.Charset;
20+
import java.util.Collection;
21+
import java.util.Enumeration;
22+
import java.util.Locale;
23+
import java.util.Properties;
24+
import java.util.Set;
25+
import java.util.TimeZone;
26+
import org.springframework.lang.Nullable;
27+
28+
public abstract class StringUtils {
29+
public static boolean isEmpty(@Nullable Object str) {
30+
return false;
31+
}
32+
33+
public static boolean hasLength(@Nullable CharSequence str) {
34+
return false;
35+
}
36+
37+
public static boolean hasLength(@Nullable String str) {
38+
return false;
39+
}
40+
41+
public static boolean hasText(@Nullable CharSequence str) {
42+
return false;
43+
}
44+
45+
public static boolean hasText(@Nullable String str) {
46+
return false;
47+
}
48+
49+
public static boolean containsWhitespace(@Nullable CharSequence str) {
50+
return false;
51+
}
52+
53+
public static boolean containsWhitespace(@Nullable String str) {
54+
return false;
55+
}
56+
57+
public static String trimWhitespace(String str) {
58+
return null;
59+
}
60+
61+
public static String trimAllWhitespace(String str) {
62+
return null;
63+
}
64+
65+
public static String trimLeadingWhitespace(String str) {
66+
return null;
67+
}
68+
69+
public static String trimTrailingWhitespace(String str) {
70+
return null;
71+
}
72+
73+
public static String trimLeadingCharacter(String str, char leadingCharacter) {
74+
return null;
75+
}
76+
77+
public static String trimTrailingCharacter(String str, char trailingCharacter) {
78+
return null;
79+
}
80+
81+
public static boolean startsWithIgnoreCase(@Nullable String str, @Nullable String prefix) {
82+
return false;
83+
}
84+
85+
public static boolean endsWithIgnoreCase(@Nullable String str, @Nullable String suffix) {
86+
return false;
87+
}
88+
89+
public static boolean substringMatch(CharSequence str, int index, CharSequence substring) {
90+
return false;
91+
}
92+
93+
public static int countOccurrencesOf(String str, String sub) {
94+
return 0;
95+
}
96+
97+
public static String replace(String inString, String oldPattern, @Nullable String newPattern) {
98+
return null;
99+
}
100+
101+
public static String delete(String inString, String pattern) {
102+
return null;
103+
}
104+
105+
public static String deleteAny(String inString, @Nullable String charsToDelete) {
106+
return null;
107+
}
108+
109+
public static String quote(@Nullable String str) {
110+
return null;
111+
}
112+
113+
public static Object quoteIfString(@Nullable Object obj) {
114+
return null;
115+
}
116+
117+
public static String unqualify(String qualifiedName) {
118+
return null;
119+
}
120+
121+
public static String unqualify(String qualifiedName, char separator) {
122+
return null;
123+
}
124+
125+
public static String capitalize(String str) {
126+
return null;
127+
}
128+
129+
public static String uncapitalize(String str) {
130+
return null;
131+
}
132+
133+
public static String getFilename(@Nullable String path) {
134+
return null;
135+
}
136+
137+
public static String getFilenameExtension(@Nullable String path) {
138+
return null;
139+
}
140+
141+
public static String stripFilenameExtension(String path) {
142+
return null;
143+
}
144+
145+
public static String applyRelativePath(String path, String relativePath) {
146+
return null;
147+
}
148+
149+
public static String cleanPath(String path) {
150+
return null;
151+
}
152+
153+
public static boolean pathEquals(String path1, String path2) {
154+
return false;
155+
}
156+
157+
public static String uriDecode(String source, Charset charset) {
158+
return null;
159+
}
160+
161+
public static Locale parseLocale(String localeValue) {
162+
return null;
163+
}
164+
165+
public static Locale parseLocaleString(String localeString) {
166+
return null;
167+
}
168+
169+
public static String toLanguageTag(Locale locale) {
170+
return null;
171+
}
172+
173+
public static TimeZone parseTimeZoneString(String timeZoneString) {
174+
return null;
175+
}
176+
177+
public static String[] toStringArray(@Nullable Collection<String> collection) {
178+
return null;
179+
}
180+
181+
public static String[] toStringArray(@Nullable Enumeration<String> enumeration) {
182+
return null;
183+
}
184+
185+
public static String[] addStringToArray(@Nullable String[] array, String str) {
186+
return null;
187+
}
188+
189+
public static String[] concatenateStringArrays(
190+
@Nullable String[] array1, @Nullable String[] array2) {
191+
return null;
192+
}
193+
194+
public static String[] mergeStringArrays(@Nullable String[] array1, @Nullable String[] array2) {
195+
return null;
196+
}
197+
198+
public static String[] sortStringArray(String[] array) {
199+
return null;
200+
}
201+
202+
public static String[] trimArrayElements(String[] array) {
203+
return null;
204+
}
205+
206+
public static String[] removeDuplicateStrings(String[] array) {
207+
return null;
208+
}
209+
210+
public static String[] split(@Nullable String toSplit, @Nullable String delimiter) {
211+
return null;
212+
}
213+
214+
public static Properties splitArrayElementsIntoProperties(String[] array, String delimiter) {
215+
return null;
216+
}
217+
218+
public static Properties splitArrayElementsIntoProperties(
219+
String[] array, String delimiter, @Nullable String charsToDelete) {
220+
return null;
221+
}
222+
223+
public static String[] tokenizeToStringArray(@Nullable String str, String delimiters) {
224+
return null;
225+
}
226+
227+
public static String[] tokenizeToStringArray(
228+
@Nullable String str, String delimiters, boolean trimTokens, boolean ignoreEmptyTokens) {
229+
return null;
230+
}
231+
232+
public static String[] delimitedListToStringArray(
233+
@Nullable String str, @Nullable String delimiter) {
234+
return null;
235+
}
236+
237+
public static String[] delimitedListToStringArray(
238+
@Nullable String str, @Nullable String delimiter, @Nullable String charsToDelete) {
239+
return null;
240+
}
241+
242+
public static String[] commaDelimitedListToStringArray(@Nullable String str) {
243+
return null;
244+
}
245+
246+
public static Set<String> commaDelimitedListToSet(@Nullable String str) {
247+
return null;
248+
}
249+
250+
public static String collectionToDelimitedString(
251+
@Nullable Collection<?> coll, String delim, String prefix, String suffix) {
252+
return null;
253+
}
254+
255+
public static String collectionToDelimitedString(@Nullable Collection<?> coll, String delim) {
256+
return null;
257+
}
258+
259+
public static String collectionToCommaDelimitedString(@Nullable Collection<?> coll) {
260+
return null;
261+
}
262+
263+
public static String arrayToDelimitedString(@Nullable Object[] arr, String delim) {
264+
return null;
265+
}
266+
267+
public static String arrayToCommaDelimitedString(@Nullable Object[] arr) {
268+
return null;
269+
}
270+
}

0 commit comments

Comments
 (0)