mirror of
https://github.com/github/codeql.git
synced 2026-05-02 04:05:14 +02:00
Merge pull request #12680 from jcogs33/jcogs33/metrics-query-refactor-top500
Java: test GeneratedVsManualCoverage query on top 500 JDK APIs
This commit is contained in:
@@ -1,326 +0,0 @@
|
||||
/** Provides classes and predicates for working with Top JDK APIs. */
|
||||
|
||||
import java
|
||||
private import semmle.code.java.dataflow.FlowSummary
|
||||
private import semmle.code.java.dataflow.internal.FlowSummaryImpl as FlowSummaryImpl
|
||||
private import semmle.code.java.dataflow.ExternalFlow
|
||||
|
||||
/** Holds if the given API name is a top JDK API. */
|
||||
predicate topJdkApiName(string apiName) {
|
||||
apiName in [
|
||||
// top 100 JDK APIs
|
||||
"java.lang.StringBuilder#append(String)", "java.util.List#get(int)",
|
||||
"java.util.List#add(Object)", "java.util.Map#put(Object,Object)",
|
||||
"java.lang.String#equals(Object)", "java.util.Map#get(Object)", "java.util.List#size()",
|
||||
"java.util.Collection#stream()", "java.lang.Object#getClass()",
|
||||
"java.util.stream.Stream#collect(Collector)", "java.util.Objects#equals(Object,Object)",
|
||||
"java.lang.String#format(String,Object[])", "java.util.stream.Stream#map(Function)",
|
||||
"java.lang.Throwable#getMessage()", "java.util.Arrays#asList(Object[])",
|
||||
"java.lang.String#equalsIgnoreCase(String)", "java.util.List#isEmpty()",
|
||||
"java.util.Set#add(Object)", "java.util.HashMap#put(Object,Object)",
|
||||
"java.util.stream.Collectors#toList()", "java.lang.StringBuilder#append(char)",
|
||||
"java.util.stream.Stream#filter(Predicate)", "java.lang.String#length()",
|
||||
"java.lang.Enum#name()", "java.lang.Object#toString()", "java.util.Optional#get()",
|
||||
"java.lang.StringBuilder#toString()",
|
||||
"java.lang.IllegalArgumentException#IllegalArgumentException(String)",
|
||||
"java.lang.Class#getName()", "java.lang.Enum#Enum(String,int)",
|
||||
"java.io.PrintWriter#write(String)", "java.util.Entry#getValue()", "java.util.Entry#getKey()",
|
||||
"java.util.Iterator#next()", "java.lang.Object#hashCode()",
|
||||
"java.util.Optional#orElse(Object)", "java.lang.StringBuffer#append(String)",
|
||||
"java.util.Collections#singletonList(Object)", "java.lang.Iterable#forEach(Consumer)",
|
||||
"java.util.Optional#of(Object)", "java.lang.String#contains(CharSequence)",
|
||||
"java.util.ArrayList#add(Object)", "java.util.Optional#ofNullable(Object)",
|
||||
"java.util.Collections#emptyList()", "java.math.BigDecimal#BigDecimal(String)",
|
||||
"java.lang.System#currentTimeMillis()", "java.lang.Object#equals(Object)",
|
||||
"java.util.Map#containsKey(Object)", "java.util.Optional#isPresent()",
|
||||
"java.lang.String#trim()", "java.util.List#addAll(Collection)",
|
||||
"java.util.Set#contains(Object)", "java.util.Optional#map(Function)",
|
||||
"java.util.Map#entrySet()", "java.util.Optional#empty()",
|
||||
"java.lang.Integer#parseInt(String)", "java.lang.String#startsWith(String)",
|
||||
"java.lang.IllegalStateException#IllegalStateException(String)",
|
||||
"java.lang.Enum#equals(Object)", "java.util.Iterator#hasNext()",
|
||||
"java.util.List#contains(Object)", "java.lang.String#substring(int,int)",
|
||||
"java.util.List#of(Object)", "java.util.Objects#hash(Object[])",
|
||||
"java.lang.RuntimeException#RuntimeException(String)", "java.lang.String#isEmpty()",
|
||||
"java.lang.String#replace(CharSequence,CharSequence)", "java.util.Set#size()",
|
||||
"java.io.File#File(String)", "java.lang.StringBuilder#append(Object)",
|
||||
"java.lang.String#split(String)", "java.util.Map#values()", "java.util.UUID#randomUUID()",
|
||||
"java.util.ArrayList#ArrayList(Collection)", "java.util.Map#keySet()",
|
||||
"java.sql.ResultSet#getString(String)", "java.lang.String#hashCode()",
|
||||
"java.lang.Throwable#Throwable(Throwable)", "java.util.HashMap#get(Object)",
|
||||
"java.lang.Class#getSimpleName()", "java.util.Set#isEmpty()", "java.util.Map#size()",
|
||||
"java.lang.String#substring(int)", "java.util.Map#remove(Object)",
|
||||
"java.lang.Throwable#printStackTrace()", "java.util.stream.Stream#findFirst()",
|
||||
"java.util.Optional#ifPresent(Consumer)", "java.lang.String#valueOf(Object)",
|
||||
"java.lang.String#toLowerCase()", "java.util.UUID#toString()",
|
||||
"java.lang.StringBuilder#append(int)", "java.util.Objects#requireNonNull(Object,String)",
|
||||
"java.nio.file.Path#resolve(String)", "java.lang.Enum#toString()",
|
||||
"java.lang.RuntimeException#RuntimeException(Throwable)", "java.util.Collection#size()",
|
||||
"java.lang.String#charAt(int)", "java.util.stream.Stream#forEach(Consumer)",
|
||||
"java.util.Map#isEmpty()", "java.lang.String#valueOf(int)",
|
||||
// top 200 JDK APIs
|
||||
"java.lang.Integer#intValue()", "java.util.ArrayList#size()",
|
||||
"java.util.ArrayList#ArrayList(int)", "java.util.function.Function#apply(Object)",
|
||||
"java.util.stream.Stream#forEach(Consumer)", "java.util.ArrayList#get(int)",
|
||||
"java.util.Set#iterator()", "java.util.stream.Collectors#toSet()",
|
||||
"java.lang.String#replaceAll(String,String)", "java.lang.String#getBytes(Charset)",
|
||||
"java.util.Objects#requireNonNull(Object)", "java.util.Objects#nonNull(Object)",
|
||||
"java.lang.String#endsWith(String)", "java.lang.AbstractStringBuilder#length()",
|
||||
"java.sql.PreparedStatement#setString(int,String)",
|
||||
"java.util.regex.Pattern#matcher(CharSequence)", "java.nio.file.Path#toString()",
|
||||
"java.time.Instant#now()", "java.io.File#getAbsolutePath()",
|
||||
"java.util.Set#addAll(Collection)", "java.lang.Integer#valueOf(int)",
|
||||
"java.util.HashSet#HashSet(Collection)", "java.lang.Integer#toString(int)",
|
||||
"java.lang.StringBuilder#StringBuilder(String)", "java.lang.Thread#sleep(long)",
|
||||
"java.lang.Thread#currentThread()", "java.util.Date#getTime()",
|
||||
"java.io.Writer#write(String)", "java.lang.String#getBytes()", "java.io.File#exists()",
|
||||
"java.lang.String#toUpperCase()", "java.lang.Long#parseLong(String)",
|
||||
"java.util.Collections#emptyMap()", "java.util.Optional#orElseThrow(Supplier)",
|
||||
"java.util.List#of(Object,Object)", "java.util.concurrent.CountDownLatch#countDown()",
|
||||
"java.lang.Class#isAssignableFrom(Class)",
|
||||
"java.lang.IndexOutOfBoundsException#IndexOutOfBoundsException(String)",
|
||||
"java.lang.Throwable#getCause()", "java.util.Arrays#stream(Object[])",
|
||||
"java.util.function.Supplier#get()", "java.lang.Exception#Exception(String)",
|
||||
"java.util.function.Consumer#accept(Object)", "java.util.stream.Stream#anyMatch(Predicate)",
|
||||
"java.util.List#clear()", "java.io.File#File(File,String)",
|
||||
"java.lang.String#indexOf(String)", "java.util.List#iterator()",
|
||||
"java.util.concurrent.CountDownLatch#CountDownLatch(int)", "java.sql.ResultSet#next()",
|
||||
"java.sql.PreparedStatement#setInt(int,int)",
|
||||
"java.util.concurrent.atomic.AtomicInteger#get()",
|
||||
"java.util.stream.Collectors#toMap(Function,Function)", "java.lang.Math#min(int,int)",
|
||||
"java.lang.Long#equals(Object)", "java.util.Properties#setProperty(String,String)",
|
||||
"java.util.Map#getOrDefault(Object,Object)", "java.lang.System#getProperty(String)",
|
||||
"java.util.stream.Stream#of(Object[])", "java.nio.file.Paths#get(String,String[])",
|
||||
"java.math.BigDecimal#compareTo(BigDecimal)", "java.math.BigDecimal#valueOf(long)",
|
||||
"java.lang.RuntimeException#RuntimeException(String,Throwable)",
|
||||
"java.util.Collection#add(Object)", "java.util.Collections#emptySet()",
|
||||
"java.util.stream.Stream#flatMap(Function)",
|
||||
"java.util.concurrent.atomic.AtomicReference#get()", "java.util.Collection#isEmpty()",
|
||||
"java.lang.StringBuffer#toString()", "java.util.Collections#singleton(Object)",
|
||||
"java.io.File#getName()", "java.time.ZonedDateTime#now()",
|
||||
"java.io.ByteArrayInputStream#ByteArrayInputStream(byte[])", "java.nio.file.Path#toFile()",
|
||||
"java.util.Date#Date(long)", "java.lang.System#nanoTime()",
|
||||
"java.util.Hashtable#put(Object,Object)", "java.util.Map#putAll(Map)",
|
||||
"java.lang.Long#toString()", "java.util.List#toArray(Object[])", "java.io.File#toPath()",
|
||||
"java.util.regex.Matcher#group(int)", "java.time.LocalDate#of(int,int,int)",
|
||||
"java.lang.String#valueOf(long)", "java.math.BigDecimal#valueOf(double)",
|
||||
"java.io.IOException#IOException(String)", "java.text.DateFormat#format(Date)",
|
||||
"java.sql.ResultSet#getInt(String)", "java.util.Map#clear()", "java.util.HashSet#add(Object)",
|
||||
"java.lang.Class#getClassLoader()", "java.lang.Boolean#equals(Object)",
|
||||
"java.lang.String#concat(String)", "java.util.Collections#singletonMap(Object,Object)",
|
||||
"java.util.Collection#iterator()", "java.util.Map#computeIfAbsent(Object,Function)",
|
||||
"java.text.SimpleDateFormat#SimpleDateFormat(String)",
|
||||
"java.util.StringJoiner#add(CharSequence)", "java.lang.Long#longValue()",
|
||||
"java.util.stream.Collectors#joining(CharSequence)",
|
||||
// top 300 JDK APIs
|
||||
"java.lang.Math#max(int,int)", "java.util.Map#of(Object,Object)",
|
||||
"java.lang.Long#valueOf(long)", "java.util.Random#nextInt(int)",
|
||||
"java.lang.Long#valueOf(String)", "java.util.concurrent.CountDownLatch#await(long,TimeUnit)",
|
||||
"java.util.Properties#getProperty(String)", "java.util.Optional#isEmpty()",
|
||||
"java.util.concurrent.CompletableFuture#get()", "java.util.Objects#isNull(Object)",
|
||||
"java.lang.StringBuilder#append(long)", "java.awt.Container#add(Component,Object)",
|
||||
"java.math.BigDecimal#add(BigDecimal)", "java.sql.PreparedStatement#executeQuery()",
|
||||
"java.lang.StringBuilder#StringBuilder(int)", "java.util.Map#forEach(BiConsumer)",
|
||||
"java.math.BigDecimal#BigDecimal(int)", "java.util.Collections#unmodifiableList(List)",
|
||||
"java.util.Properties#put(Object,Object)", "java.sql.Timestamp#Timestamp(long)",
|
||||
"java.util.List#equals(Object)", "java.lang.String#indexOf(int)",
|
||||
"java.lang.Long#toString(long)", "java.lang.Integer#Integer(int)",
|
||||
"java.util.concurrent.atomic.AtomicBoolean#get()",
|
||||
"java.lang.System#setProperty(String,String)", "java.util.concurrent.Future#get()",
|
||||
"java.lang.Thread#start()", "java.util.Set#of(Object)", "java.util.Calendar#set(int,int)",
|
||||
"java.time.Duration#ofSeconds(long)", "java.lang.System#arraycopy(Object,int,Object,int,int)",
|
||||
"java.net.URI#toString()", "java.util.concurrent.atomic.AtomicInteger#incrementAndGet()",
|
||||
"java.util.Set#remove(Object)", "java.lang.Boolean#parseBoolean(String)",
|
||||
"java.util.Calendar#getTime()", "java.nio.charset.Charset#name()",
|
||||
"java.lang.ThreadLocal#get()", "java.lang.Class#getCanonicalName()",
|
||||
"java.util.List#remove(Object)", "java.lang.Throwable#toString()",
|
||||
"java.util.stream.Stream#toList()", "java.io.ByteArrayOutputStream#toByteArray()",
|
||||
"java.util.concurrent.atomic.AtomicLong#get()",
|
||||
"java.lang.NullPointerException#NullPointerException(String)", "java.util.List#of()",
|
||||
"java.util.Calendar#getInstance()", "java.util.Calendar#get(int)",
|
||||
"java.util.Optional#orElseThrow()", "java.lang.System#lineSeparator()",
|
||||
"java.lang.Boolean#booleanValue()", "java.util.logging.Logger#isLoggable(Level)",
|
||||
"java.lang.Enum#hashCode()", "java.util.List#hashCode()",
|
||||
"java.lang.reflect.Method#invoke(Object,Object[])", "java.lang.String#String(byte[],Charset)",
|
||||
"java.util.Comparator#comparing(Function)", "java.util.Arrays#toString(Object[])",
|
||||
"java.time.LocalDate#now()", "java.util.function.Function#identity()",
|
||||
"java.io.OutputStream#write(byte[])", "java.lang.Integer#equals(Object)",
|
||||
"java.io.BufferedReader#BufferedReader(Reader)", "java.io.DataInput#readInt()",
|
||||
"java.io.BufferedReader#readLine()", "java.util.Map#entry(Object,Object)",
|
||||
"java.lang.Runnable#run()", "java.util.ResourceBundle#getString(String)",
|
||||
"java.util.Iterator#remove()", "java.lang.String#join(CharSequence,Iterable)",
|
||||
"java.util.concurrent.atomic.AtomicBoolean#set(boolean)", "java.time.LocalDateTime#now()",
|
||||
"java.sql.ResultSet#getLong(String)", "java.text.DateFormat#parse(String)",
|
||||
"java.lang.String#toString()", "java.lang.Integer#valueOf(String)",
|
||||
"java.util.regex.Matcher#find()", "java.io.DataOutput#writeInt(int)",
|
||||
"java.util.HashMap#HashMap(int)", "java.util.stream.Stream#sorted(Comparator)",
|
||||
"java.lang.String#toCharArray()",
|
||||
"java.util.concurrent.atomic.AtomicInteger#AtomicInteger(int)",
|
||||
"java.lang.String#String(byte[])", "java.lang.reflect.Method#getName()",
|
||||
"java.sql.ResultSet#getString(int)", "java.net.URI#create(String)",
|
||||
"java.lang.Enum#ordinal()", "java.util.concurrent.atomic.AtomicReference#set(Object)",
|
||||
"java.util.concurrent.CompletableFuture#join()",
|
||||
"java.io.FileInputStream#FileInputStream(File)", "java.io.File#delete()",
|
||||
"java.util.concurrent.TimeUnit#toMillis(long)", "java.util.List#of(Object,Object,Object)",
|
||||
"java.lang.String#compareTo(String)", "java.util.stream.IntStream#range(int,int)",
|
||||
"java.math.BigInteger#valueOf(long)", "java.util.List#remove(int)",
|
||||
"java.util.HashMap#HashMap(Map)", "java.util.function.BiConsumer#accept(Object,Object)",
|
||||
// top 400 JDK APIs
|
||||
"java.util.HashMap#containsKey(Object)", "java.util.Collection#contains(Object)",
|
||||
"java.lang.Double#parseDouble(String)", "java.lang.Thread#interrupt()",
|
||||
"java.awt.Container#add(Component)", "java.time.chrono.ChronoZonedDateTime#toInstant()",
|
||||
"java.util.List#subList(int,int)", "java.util.concurrent.ConcurrentHashMap#get(Object)",
|
||||
"java.lang.System#getenv(String)", "java.time.Duration#ofMillis(long)",
|
||||
"java.lang.Integer#toString()", "java.lang.reflect.Constructor#newInstance(Object[])",
|
||||
"java.util.Hashtable#get(Object)", "java.lang.Class#toString()",
|
||||
"java.util.Vector#add(Object)", "java.io.StringReader#StringReader(String)",
|
||||
"java.io.File#getPath()", "java.lang.System#identityHashCode(Object)",
|
||||
"java.util.stream.Stream#count()", "java.util.concurrent.CompletableFuture#complete(Object)",
|
||||
"java.nio.file.Files#exists(Path,LinkOption[])", "java.util.List#set(int,Object)",
|
||||
"java.util.concurrent.atomic.AtomicLong#AtomicLong(long)",
|
||||
"java.util.Optional#orElseGet(Supplier)", "java.lang.Class#forName(String)",
|
||||
"java.lang.String#replace(char,char)", "java.util.Enumeration#nextElement()",
|
||||
"java.lang.Class#getMethod(String,Class[])", "java.nio.file.Path#toAbsolutePath()",
|
||||
"java.util.Enumeration#hasMoreElements()", "java.lang.Class#cast(Object)",
|
||||
"java.util.concurrent.atomic.AtomicBoolean#AtomicBoolean(boolean)",
|
||||
"java.math.BigDecimal#doubleValue()", "java.util.UUID#fromString(String)",
|
||||
"java.lang.System#exit(int)", "java.util.List#add(int,Object)",
|
||||
"java.lang.Boolean#valueOf(boolean)", "java.sql.Timestamp#getTime()",
|
||||
"java.nio.Buffer#remaining()", "java.net.URL#URL(String)", "java.net.URI#URI(String)",
|
||||
"java.util.Objects#hashCode(Object)", "java.util.Set#clear()", "java.io.File#isDirectory()",
|
||||
"java.time.Duration#toMillis()", "java.nio.ByteBuffer#allocate(int)",
|
||||
"java.math.BigDecimal#toString()", "java.lang.Class#getResourceAsStream(String)",
|
||||
"java.util.logging.Logger#getLogger(String)", "java.lang.String#toLowerCase(Locale)",
|
||||
"java.util.concurrent.CompletableFuture#completeExceptionally(Throwable)",
|
||||
"java.util.stream.Stream#findAny()",
|
||||
"java.util.concurrent.CompletableFuture#completedFuture(Object)",
|
||||
"java.util.stream.Stream#of(Object)", "java.util.Map#of(Object,Object,Object,Object)",
|
||||
"java.util.Collections#sort(List,Comparator)", "java.lang.Thread#Thread(Runnable)",
|
||||
"java.lang.String#lastIndexOf(int)",
|
||||
"java.io.UncheckedIOException#UncheckedIOException(IOException)",
|
||||
"java.util.LinkedHashSet#LinkedHashSet(Collection)",
|
||||
"java.sql.PreparedStatement#executeUpdate()", "java.time.ZoneId#of(String)",
|
||||
"java.util.concurrent.atomic.AtomicLong#addAndGet(long)", "java.nio.ByteBuffer#wrap(byte[])",
|
||||
"java.util.List#indexOf(Object)", "java.util.Collections#unmodifiableMap(Map)",
|
||||
"java.lang.Long#Long(long)", "java.util.StringTokenizer#nextToken()",
|
||||
"java.lang.String#join(CharSequence,CharSequence[])", "java.io.StringWriter#toString()",
|
||||
"java.lang.Integer#toHexString(int)", "java.lang.Long#intValue()",
|
||||
"java.text.MessageFormat#format(String,Object[])",
|
||||
"java.lang.Exception#Exception(String,Throwable)",
|
||||
"java.util.stream.Stream#toArray(IntFunction)", "java.util.List#sort(Comparator)",
|
||||
"java.util.LinkedHashMap#get(Object)", "java.sql.PreparedStatement#setLong(int,long)",
|
||||
"java.lang.Iterable#iterator()", "java.math.BigInteger#or(BigInteger)",
|
||||
"java.time.LocalDateTime#of(int,int,int,int,int,int)", "java.time.Instant#toEpochMilli()",
|
||||
"java.math.BigDecimal#setScale(int,RoundingMode)", "java.lang.Class#isInstance(Object)",
|
||||
"java.util.regex.Pattern#compile(String)", "java.util.Calendar#getTimeInMillis()",
|
||||
"java.lang.Class#getResource(String)", "java.util.concurrent.Executor#execute(Runnable)",
|
||||
"java.util.concurrent.locks.Lock#unlock()", "java.lang.AssertionError#AssertionError(Object)",
|
||||
"java.util.ArrayList#addAll(Collection)", "java.io.File#mkdirs()",
|
||||
"java.time.Duration#ofMinutes(long)", "java.time.format.DateTimeFormatter#ofPattern(String)",
|
||||
"java.lang.Throwable#getLocalizedMessage()", "java.lang.StringBuilder#delete(int,int)",
|
||||
"java.util.Vector#size()", "java.lang.String#String(String)", "java.util.ArrayList#isEmpty()",
|
||||
"java.util.Collection#removeIf(Predicate)",
|
||||
// top 500 JDK APIs
|
||||
"java.util.HashSet#HashSet(int)", "java.util.Set#of(Object,Object)",
|
||||
"java.util.Collections#unmodifiableSet(Set)", "java.sql.Connection#createStatement()",
|
||||
"java.math.BigDecimal#subtract(BigDecimal)", "java.util.Date#from(Instant)",
|
||||
"java.lang.StringBuffer#append(char)", "java.util.Locale#forLanguageTag(String)",
|
||||
"java.io.DataInput#readLong()", "java.util.Collections#sort(List)",
|
||||
"java.io.DataOutput#writeLong(long)", "java.util.function.BiFunction#apply(Object,Object)",
|
||||
"java.lang.String#lastIndexOf(String)", "java.util.Optional#filter(Predicate)",
|
||||
"java.lang.StringBuffer#append(Object)", "java.io.File#getParentFile()",
|
||||
"java.util.stream.Stream#allMatch(Predicate)", "java.sql.ResultSet#getTimestamp(String)",
|
||||
"java.util.Calendar#setTime(Date)",
|
||||
"java.util.concurrent.CompletionStage#toCompletableFuture()",
|
||||
"java.util.concurrent.locks.Lock#lock()", "java.lang.reflect.Field#get(Object)",
|
||||
"java.io.InputStream#close()", "java.math.BigInteger#BigInteger(String)",
|
||||
"java.lang.Class#getDeclaredField(String)",
|
||||
"java.io.InputStreamReader#InputStreamReader(InputStream)", "java.lang.Runtime#getRuntime()",
|
||||
"java.lang.Class#getDeclaredConstructor(Class[])",
|
||||
"java.lang.AbstractStringBuilder#setLength(int)", "java.nio.Buffer#position()",
|
||||
"java.nio.file.Path#getFileName()", "java.util.List#toArray()",
|
||||
"java.lang.CharSequence#length()", "java.util.stream.Stream#distinct()",
|
||||
"java.net.URL#toURI()", "java.util.Queue#poll()", "java.lang.Thread#getContextClassLoader()",
|
||||
"java.lang.String#valueOf(boolean)", "java.util.Calendar#add(int,int)",
|
||||
"java.util.HashMap#entrySet()", "java.util.stream.IntStream#mapToObj(IntFunction)",
|
||||
"java.util.concurrent.atomic.AtomicLong#incrementAndGet()",
|
||||
"java.util.concurrent.ExecutorService#shutdown()",
|
||||
"java.util.concurrent.ExecutorService#submit(Runnable)", "java.math.BigDecimal#intValue()",
|
||||
"java.math.BigDecimal#toBigInteger()", "java.util.LinkedList#add(Object)",
|
||||
"java.lang.AbstractStringBuilder#charAt(int)", "java.lang.Thread#getName()",
|
||||
"java.lang.Math#max(long,long)", "java.util.HashMap#size()",
|
||||
"java.time.LocalDate#plusDays(long)", "java.nio.ByteBuffer#array()",
|
||||
"java.lang.StringBuilder#append(CharSequence)", "java.util.Vector#addElement(Object)",
|
||||
"java.lang.ClassLoader#getResource(String)", "java.awt.Insets#Insets(int,int,int,int)",
|
||||
"java.util.TimeZone#getTimeZone(String)", "java.time.ZoneId#systemDefault()",
|
||||
"java.lang.Number#doubleValue()", "java.util.stream.Stream#reduce(Object,BinaryOperator)",
|
||||
"java.lang.CharSequence#toString()", "java.time.Instant#parse(CharSequence)",
|
||||
"java.text.Format#format(Object)", "java.io.File#toURI()", "java.sql.ResultSet#getInt(int)",
|
||||
"java.lang.Number#longValue()", "java.lang.Double#doubleToLongBits(double)",
|
||||
"java.lang.Math#min(long,long)", "java.lang.Double#valueOf(double)",
|
||||
"java.lang.invoke.MethodHandles#lookup()", "java.util.concurrent.CompletableFuture#isDone()",
|
||||
"java.time.LocalDate#parse(CharSequence)", "java.lang.StringBuilder#append(boolean)",
|
||||
"java.util.concurrent.CountDownLatch#await()",
|
||||
"java.util.concurrent.ConcurrentHashMap#put(Object,Object)",
|
||||
"java.util.stream.Stream#mapToInt(ToIntFunction)",
|
||||
"java.math.BigDecimal#multiply(BigDecimal)", "java.util.stream.Stream#concat(Stream,Stream)",
|
||||
"java.time.Instant#ofEpochMilli(long)", "java.nio.file.Path#getParent()",
|
||||
"java.util.stream.Stream#sorted()",
|
||||
"java.util.concurrent.atomic.AtomicBoolean#compareAndSet(boolean,boolean)",
|
||||
"java.util.UUID#equals(Object)", "java.io.OutputStream#flush()",
|
||||
"java.time.format.DateTimeFormatter#format(TemporalAccessor)", "java.io.Closeable#close()",
|
||||
"java.util.EventObject#getSource()", "java.io.File#File(String,String)",
|
||||
"java.lang.Number#intValue()", "java.io.File#length()",
|
||||
"java.lang.AbstractStringBuilder#setCharAt(int,char)", "java.util.Set#removeAll(Collection)",
|
||||
"java.io.File#listFiles()", "java.lang.ClassLoader#getResourceAsStream(String)",
|
||||
"java.util.Date#toInstant()", "java.util.Queue#add(Object)", "java.io.File#isFile()",
|
||||
"java.sql.Statement#close()", "java.io.DataOutput#writeBoolean(boolean)"
|
||||
]
|
||||
}
|
||||
|
||||
/** Holds if `c` has the MaD-formatted name `apiName`. */
|
||||
predicate hasApiName(Callable c, string apiName) {
|
||||
apiName =
|
||||
c.getDeclaringType().getPackage() + "." + c.getDeclaringType().getSourceDeclaration() + "#" +
|
||||
c.getName() + paramsString(c)
|
||||
}
|
||||
|
||||
/** A top JDK API. */
|
||||
class TopJdkApi extends SummarizedCallableBase {
|
||||
TopJdkApi() {
|
||||
exists(string apiName |
|
||||
hasApiName(this.asCallable(), apiName) and
|
||||
topJdkApiName(apiName)
|
||||
)
|
||||
}
|
||||
|
||||
/** Holds if this API has a manual summary model. */
|
||||
private predicate hasManualSummary() { this.(SummarizedCallable).isManual() }
|
||||
|
||||
/** Holds if this API has a manual neutral model. */
|
||||
private predicate hasManualNeutral() {
|
||||
this.(FlowSummaryImpl::Public::NeutralCallable).isManual()
|
||||
}
|
||||
|
||||
/** Holds if this API has a manual MaD model. */
|
||||
predicate hasManualMadModel() { this.hasManualSummary() or this.hasManualNeutral() }
|
||||
/*
|
||||
* Note: the following top JDK APIs are not modeled with MaD:
|
||||
* `java.lang.String#valueOf(Object)`: a complex case; an alias for `Object.toString`, except the dispatch is hidden
|
||||
* `java.lang.System#getProperty(String)`: needs to be modeled by regular CodeQL matching the get and set keys to reduce FPs
|
||||
* `java.lang.System#setProperty(String,String)`: needs to be modeled by regular CodeQL matching the get and set keys to reduce FPs
|
||||
* `java.lang.Throwable#printStackTrace()`: should probably not be a general step, but there might be specialised queries that care
|
||||
* `java.text.Format#format(Object)`: similar issue as `Object.toString`; depends on the object being passed as the argument
|
||||
* `java.text.MessageFormat#format(String,Object[])`: similar issue as `Object.toString`; depends on the object being passed as the argument
|
||||
* `java.util.Comparator#comparing(Function)`: lambda flow
|
||||
* `java.util.function.BiConsumer#accept(Object,Object)`: specialized lambda flow
|
||||
* `java.util.function.BiFunction#apply(Object,Object)`: specialized lambda flow
|
||||
* `java.util.function.Consumer#accept(Object)`: specialized lambda flow
|
||||
* `java.util.function.Function#apply(Object)`: specialized lambda flow
|
||||
* `java.util.function.Supplier#get()`: lambda flow
|
||||
* `java.util.stream.Collectors#joining(CharSequence)`: cannot be modeled completely without a model for `java.util.stream.Stream#collect(Collector)` as well
|
||||
* `java.util.stream.Collectors#toMap(Function,Function)`: specialized collectors flow
|
||||
* `java.util.stream.Stream#collect(Collector)`: handled separately on a case-by-case basis as it is too complex for MaD
|
||||
*/
|
||||
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
import java
|
||||
import TopJdkApis
|
||||
import Metrics.Summaries.TopJdkApis
|
||||
|
||||
from string apiName, string message
|
||||
where
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
// Generated automatically from java.awt.Container for testing purposes
|
||||
|
||||
package java.awt;
|
||||
|
||||
import java.awt.AWTEvent;
|
||||
import java.awt.AWTKeyStroke;
|
||||
import java.awt.Component;
|
||||
import java.awt.ComponentOrientation;
|
||||
import java.awt.Dimension;
|
||||
import java.awt.Event;
|
||||
import java.awt.FocusTraversalPolicy;
|
||||
import java.awt.Font;
|
||||
import java.awt.Graphics;
|
||||
import java.awt.Insets;
|
||||
import java.awt.LayoutManager;
|
||||
import java.awt.Point;
|
||||
import java.awt.event.ContainerEvent;
|
||||
import java.awt.event.ContainerListener;
|
||||
import java.beans.PropertyChangeListener;
|
||||
import java.io.PrintStream;
|
||||
import java.io.PrintWriter;
|
||||
import java.util.EventListener;
|
||||
import java.util.Set;
|
||||
|
||||
public class Container extends Component
|
||||
{
|
||||
public Component add(Component p0){ return null; } // manual summary
|
||||
public void add(Component p0, Object p1){} // manual summary
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
// Generated automatically from java.awt.Insets for testing purposes
|
||||
|
||||
package java.awt;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class Insets implements Cloneable, Serializable
|
||||
{
|
||||
protected Insets() {}
|
||||
public Insets(int p0, int p1, int p2, int p3){} // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
// Generated automatically from java.io.BufferedReader for testing purposes
|
||||
|
||||
package java.io;
|
||||
|
||||
import java.io.Reader;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
public class BufferedReader
|
||||
{
|
||||
protected BufferedReader() {}
|
||||
public BufferedReader(Reader p0){} // manual summary
|
||||
public String readLine(){ return null; } // manual summary
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
// Generated automatically from java.io.ByteArrayInputStream for testing purposes
|
||||
|
||||
package java.io;
|
||||
|
||||
import java.io.InputStream;
|
||||
|
||||
public class ByteArrayInputStream
|
||||
{
|
||||
protected ByteArrayInputStream() {}
|
||||
public ByteArrayInputStream(byte[] p0){} // manual summary
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// Generated automatically from java.io.ByteArrayOutputStream for testing purposes
|
||||
|
||||
package java.io;
|
||||
|
||||
import java.io.OutputStream;
|
||||
|
||||
public class ByteArrayOutputStream
|
||||
{
|
||||
public byte[] toByteArray(){ return null; } // manual summary
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// Generated automatically from java.io.Closeable for testing purposes
|
||||
|
||||
package java.io;
|
||||
|
||||
|
||||
public interface Closeable extends AutoCloseable
|
||||
{
|
||||
void close(); // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// Generated automatically from java.io.DataInput for testing purposes
|
||||
|
||||
package java.io;
|
||||
|
||||
|
||||
public interface DataInput
|
||||
{
|
||||
int readInt(); // manual neutral
|
||||
long readLong(); // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
// Generated automatically from java.io.DataOutput for testing purposes
|
||||
|
||||
package java.io;
|
||||
|
||||
|
||||
public interface DataOutput
|
||||
{
|
||||
void writeBoolean(boolean p0); // manual neutral
|
||||
void writeInt(int p0); // manual neutral
|
||||
void writeLong(long p0); // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
// Generated automatically from java.io.File for testing purposes
|
||||
|
||||
package java.io;
|
||||
|
||||
import java.io.FileFilter;
|
||||
import java.io.FilenameFilter;
|
||||
import java.io.Serializable;
|
||||
import java.net.URI;
|
||||
import java.net.URL;
|
||||
import java.nio.file.Path;
|
||||
|
||||
public class File implements Serializable
|
||||
{
|
||||
protected File() {}
|
||||
public File getParentFile(){ return null; } // manual summary
|
||||
public File(File p0, String p1){} // manual summary
|
||||
public File(String p0){} // manual summary
|
||||
public File(String p0, String p1){} // manual summary
|
||||
public File[] listFiles(){ return null; } // manual summary
|
||||
public Path toPath(){ return null; } // manual summary
|
||||
public String getAbsolutePath(){ return null; } // manual summary
|
||||
public String getName(){ return null; } // manual summary
|
||||
public String getPath(){ return null; } // manual summary
|
||||
public URI toURI(){ return null; } // manual summary
|
||||
public boolean delete(){ return false; } // manual neutral
|
||||
public boolean exists(){ return false; } // manual neutral
|
||||
public boolean isDirectory(){ return false; } // manual neutral
|
||||
public boolean isFile(){ return false; } // manual neutral
|
||||
public boolean mkdirs(){ return false; } // manual neutral
|
||||
public long length(){ return 0; } // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
// Generated automatically from java.io.FileInputStream for testing purposes
|
||||
|
||||
package java.io;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileDescriptor;
|
||||
import java.io.InputStream;
|
||||
import java.nio.channels.FileChannel;
|
||||
|
||||
public class FileInputStream extends InputStream
|
||||
{
|
||||
protected FileInputStream() {}
|
||||
public FileInputStream(File p0){} // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// Generated automatically from java.io.IOException for testing purposes
|
||||
|
||||
package java.io;
|
||||
|
||||
|
||||
public class IOException
|
||||
{
|
||||
public IOException(String p0){} // manual summary
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// Generated automatically from java.io.InputStream for testing purposes
|
||||
|
||||
package java.io;
|
||||
|
||||
import java.io.Closeable;
|
||||
|
||||
abstract public class InputStream implements Closeable
|
||||
{
|
||||
public void close(){} // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
// Generated automatically from java.io.InputStreamReader for testing purposes
|
||||
|
||||
package java.io;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.io.Reader;
|
||||
import java.nio.charset.Charset;
|
||||
import java.nio.charset.CharsetDecoder;
|
||||
|
||||
public class InputStreamReader
|
||||
{
|
||||
protected InputStreamReader() {}
|
||||
public InputStreamReader(InputStream p0){} // manual summary
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// Generated automatically from java.io.OutputStream for testing purposes
|
||||
|
||||
package java.io;
|
||||
|
||||
import java.io.Closeable;
|
||||
import java.io.Flushable;
|
||||
|
||||
abstract public class OutputStream implements Closeable, Flushable
|
||||
{
|
||||
public void flush(){} // manual neutral
|
||||
public void write(byte[] p0){} // manual summary
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
// Generated automatically from java.io.PrintWriter for testing purposes
|
||||
|
||||
package java.io;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.OutputStream;
|
||||
import java.io.Writer;
|
||||
import java.util.Locale;
|
||||
|
||||
public class PrintWriter extends Writer
|
||||
{
|
||||
protected PrintWriter() {}
|
||||
public void write(String p0){} // manual summary
|
||||
|
||||
// including the below to prevent extraction errors
|
||||
public PrintWriter append(char c) { return null; }
|
||||
public PrintWriter append(CharSequence csq, int start, int end) { return null; }
|
||||
public PrintWriter append(CharSequence csq) { return null; }
|
||||
public void close() {}
|
||||
public void flush() {}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
// Generated automatically from java.io.StringReader for testing purposes
|
||||
|
||||
package java.io;
|
||||
|
||||
import java.io.Reader;
|
||||
|
||||
public class StringReader
|
||||
{
|
||||
protected StringReader() {}
|
||||
public StringReader(String p0){} // manual summary
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// Generated automatically from java.io.StringWriter for testing purposes
|
||||
|
||||
package java.io;
|
||||
|
||||
import java.io.Writer;
|
||||
|
||||
public class StringWriter
|
||||
{
|
||||
public String toString(){ return null; } // manual summary
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
// Generated automatically from java.io.UncheckedIOException for testing purposes
|
||||
|
||||
package java.io;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
public class UncheckedIOException
|
||||
{
|
||||
protected UncheckedIOException() {}
|
||||
public UncheckedIOException(IOException p0){} // manual summary
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
// Generated automatically from java.io.Writer for testing purposes
|
||||
|
||||
package java.io;
|
||||
|
||||
import java.io.Closeable;
|
||||
import java.io.Flushable;
|
||||
|
||||
abstract public class Writer implements Appendable, Closeable, Flushable
|
||||
{
|
||||
public void write(String p0){} // manual summary
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
// Generated automatically from java.lang.AbstractStringBuilder for testing purposes
|
||||
|
||||
package java.lang;
|
||||
|
||||
|
||||
abstract class AbstractStringBuilder implements Appendable, CharSequence
|
||||
{
|
||||
public char charAt(int p0){ return '0'; } // manual summary
|
||||
public int length(){ return 0; } // manual neutral
|
||||
public void setCharAt(int p0, char p1){} // manual neutral, Note: not currently counted by query due to exclusions in `TargetApiSpecific`
|
||||
public void setLength(int p0){} // manual neutral, Note: not currently counted by query due to exclusions in `TargetApiSpecific`
|
||||
|
||||
|
||||
public AbstractStringBuilder append(CharSequence p0){ return null; }
|
||||
public AbstractStringBuilder append(Object p0){ return null; }
|
||||
public AbstractStringBuilder append(String p0){ return null; }
|
||||
public AbstractStringBuilder append(boolean p0){ return null; }
|
||||
public AbstractStringBuilder append(char p0){ return null; }
|
||||
public AbstractStringBuilder append(int p0){ return null; }
|
||||
public AbstractStringBuilder append(long p0){ return null; }
|
||||
public AbstractStringBuilder delete(int p0, int p1){ return null; }
|
||||
public abstract String toString();
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// Generated automatically from java.lang.AssertionError for testing purposes
|
||||
|
||||
package java.lang;
|
||||
|
||||
|
||||
public class AssertionError extends Error
|
||||
{
|
||||
public AssertionError(Object p0){} // manual summary
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
// Generated automatically from java.lang.Boolean for testing purposes
|
||||
|
||||
package java.lang;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class Boolean implements Serializable
|
||||
{
|
||||
protected Boolean() {}
|
||||
public boolean booleanValue(){ return false; } // manual neutral
|
||||
public boolean equals(Object p0){ return false; } // manual neutral
|
||||
public static Boolean valueOf(boolean p0){ return null; } // manual neutral
|
||||
public static boolean parseBoolean(String p0){ return false; } // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
// Generated automatically from java.lang.CharSequence for testing purposes
|
||||
|
||||
package java.lang;
|
||||
|
||||
import java.util.stream.IntStream;
|
||||
|
||||
public interface CharSequence
|
||||
{
|
||||
String toString(); // manual summary
|
||||
int length(); // manual neutral
|
||||
|
||||
char charAt(int index);
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
// Generated automatically from java.lang.Class for testing purposes
|
||||
|
||||
package java.lang;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.io.Serializable;
|
||||
import java.lang.annotation.Annotation;
|
||||
import java.lang.reflect.AnnotatedElement;
|
||||
import java.lang.reflect.AnnotatedType;
|
||||
import java.lang.reflect.Constructor;
|
||||
import java.lang.reflect.Field;
|
||||
import java.lang.reflect.GenericDeclaration;
|
||||
import java.lang.reflect.Method;
|
||||
import java.lang.reflect.Type;
|
||||
import java.lang.reflect.TypeVariable;
|
||||
import java.net.URL;
|
||||
import java.security.ProtectionDomain;
|
||||
|
||||
public class Class<T> implements Serializable, Type
|
||||
{
|
||||
protected Class() {}
|
||||
public ClassLoader getClassLoader(){ return null; } // manual neutral
|
||||
public Field getDeclaredField(String p0){ return null; } // manual neutral
|
||||
public InputStream getResourceAsStream(String p0){ return null; } // manual neutral
|
||||
public Method getMethod(String p0, Class<? extends Object>... p1){ return null; } // manual neutral
|
||||
public String getCanonicalName(){ return null; } // manual neutral
|
||||
public String getName(){ return null; } // manual neutral
|
||||
public String getSimpleName(){ return null; } // manual neutral
|
||||
public String toString(){ return null; } // manual neutral
|
||||
public T cast(Object p0){ return null; } // manual summary
|
||||
public URL getResource(String p0){ return null; } // manual neutral
|
||||
public boolean isAssignableFrom(Class<? extends Object> p0){ return false; } // manual neutral
|
||||
public boolean isInstance(Object p0){ return false; } // manual neutral
|
||||
public java.lang.reflect.Constructor<T> getDeclaredConstructor(Class<? extends Object>... p0){ return null; } // manual neutral
|
||||
public static Class<? extends Object> forName(String p0){ return null; } // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
// Generated automatically from java.lang.ClassLoader for testing purposes
|
||||
|
||||
package java.lang;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.net.URL;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.security.ProtectionDomain;
|
||||
import java.util.Enumeration;
|
||||
|
||||
abstract public class ClassLoader
|
||||
{
|
||||
public InputStream getResourceAsStream(String p0){ return null; } // manual neutral
|
||||
public URL getResource(String p0){ return null; } // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// Generated automatically from java.lang.Double for testing purposes
|
||||
|
||||
package java.lang;
|
||||
|
||||
|
||||
public class Double
|
||||
{
|
||||
protected Double() {}
|
||||
public static Double valueOf(double p0){ return null; } // manual neutral
|
||||
public static double parseDouble(String p0){ return 0; } // manual neutral
|
||||
public static long doubleToLongBits(double p0){ return 0; } // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
// Generated automatically from java.lang.Enum for testing purposes
|
||||
|
||||
package java.lang;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
abstract public class Enum<E extends Enum<E>> implements Comparable<E>, Serializable
|
||||
{
|
||||
protected Enum() {}
|
||||
protected Enum(String p0, int p1){} // manual neutral, Note: this will not be counted in query results since `protected` not `public`
|
||||
public String toString(){ return null; } // manual neutral
|
||||
public final String name(){ return null; } // manual neutral
|
||||
public final boolean equals(Object p0){ return false; } // manual neutral
|
||||
public final int hashCode(){ return 0; } // manual neutral
|
||||
public final int ordinal(){ return 0; } // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// Generated automatically from java.lang.Exception for testing purposes
|
||||
|
||||
package java.lang;
|
||||
|
||||
|
||||
public class Exception
|
||||
{
|
||||
public Exception(String p0){} // manual summary
|
||||
public Exception(String p0, Throwable p1){} // manual summary
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// Generated automatically from java.lang.IllegalArgumentException for testing purposes
|
||||
|
||||
package java.lang;
|
||||
|
||||
|
||||
public class IllegalArgumentException
|
||||
{
|
||||
public IllegalArgumentException(String p0){} // manual summary
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// Generated automatically from java.lang.IllegalStateException for testing purposes
|
||||
|
||||
package java.lang;
|
||||
|
||||
|
||||
public class IllegalStateException
|
||||
{
|
||||
public IllegalStateException(String p0){} // manual summary
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// Generated automatically from java.lang.IndexOutOfBoundsException for testing purposes
|
||||
|
||||
package java.lang;
|
||||
|
||||
|
||||
public class IndexOutOfBoundsException
|
||||
{
|
||||
public IndexOutOfBoundsException(String p0){} // manual summary
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// Generated automatically from java.lang.Integer for testing purposes
|
||||
|
||||
package java.lang;
|
||||
|
||||
|
||||
public class Integer
|
||||
{
|
||||
protected Integer() {}
|
||||
public Integer(int p0){} // manual neutral
|
||||
public String toString(){ return null; } // manual neutral
|
||||
public boolean equals(Object p0){ return false; } // manual neutral
|
||||
public int intValue(){ return 0; } // manual neutral
|
||||
public static Integer valueOf(String p0){ return null; } // manual neutral
|
||||
public static Integer valueOf(int p0){ return null; } // manual neutral
|
||||
public static String toHexString(int p0){ return null; } // manual neutral
|
||||
public static String toString(int p0){ return null; } // manual neutral
|
||||
public static int parseInt(String p0){ return 0; } // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
// Generated automatically from java.lang.Iterable for testing purposes
|
||||
|
||||
package java.lang;
|
||||
|
||||
import java.util.Iterator;
|
||||
import java.util.Spliterator;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
public interface Iterable<T>
|
||||
{
|
||||
default void forEach(java.util.function.Consumer<? super T> p0){} // manual summary
|
||||
java.util.Iterator<T> iterator(); // manual summary
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// Generated automatically from java.lang.Long for testing purposes
|
||||
|
||||
package java.lang;
|
||||
|
||||
|
||||
public class Long
|
||||
{
|
||||
protected Long() {}
|
||||
public Long(long p0){} // manual neutral
|
||||
public String toString(){ return null; } // manual neutral
|
||||
public boolean equals(Object p0){ return false; } // manual neutral
|
||||
public int intValue(){ return 0; } // manual neutral
|
||||
public long longValue(){ return 0; } // manual neutral
|
||||
public static Long valueOf(String p0){ return null; } // manual neutral
|
||||
public static Long valueOf(long p0){ return null; } // manual neutral
|
||||
public static String toString(long p0){ return null; } // manual neutral
|
||||
public static long parseLong(String p0){ return 0; } // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
// Generated automatically from java.lang.Math for testing purposes
|
||||
|
||||
package java.lang;
|
||||
|
||||
|
||||
public class Math
|
||||
{
|
||||
protected Math() {}
|
||||
public static int max(int p0, int p1){ return 0; } // manual neutral
|
||||
public static int min(int p0, int p1){ return 0; } // manual neutral
|
||||
public static long max(long p0, long p1){ return 0; } // manual neutral
|
||||
public static long min(long p0, long p1){ return 0; } // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// Generated automatically from java.lang.NullPointerException for testing purposes
|
||||
|
||||
package java.lang;
|
||||
|
||||
|
||||
public class NullPointerException
|
||||
{
|
||||
public NullPointerException(String p0){} // manual summary
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// Generated automatically from java.lang.Number for testing purposes
|
||||
|
||||
package java.lang;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
abstract public class Number implements Serializable
|
||||
{
|
||||
public abstract double doubleValue(); // manual neutral
|
||||
public abstract int intValue(); // manual neutral
|
||||
public abstract long longValue(); // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// Generated automatically from java.lang.Object for testing purposes
|
||||
|
||||
package java.lang;
|
||||
|
||||
|
||||
public class Object
|
||||
{
|
||||
public String toString(){ return null; } // manual neutral
|
||||
public boolean equals(Object p0){ return false; } // manual neutral
|
||||
public final Class<? extends Object> getClass(){ return null; } // manual neutral
|
||||
public int hashCode(){ return 0; } // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// Generated automatically from java.lang.Runnable for testing purposes
|
||||
|
||||
package java.lang;
|
||||
|
||||
|
||||
public interface Runnable
|
||||
{
|
||||
void run(); // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
// Generated automatically from java.lang.Runtime for testing purposes
|
||||
|
||||
package java.lang;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
|
||||
public class Runtime
|
||||
{
|
||||
protected Runtime() {}
|
||||
public static Runtime getRuntime(){ return null; } // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
// Generated automatically from java.lang.RuntimeException for testing purposes
|
||||
|
||||
package java.lang;
|
||||
|
||||
|
||||
public class RuntimeException
|
||||
{
|
||||
public RuntimeException(String p0){} // manual summary
|
||||
public RuntimeException(String p0, Throwable p1){} // manual summary
|
||||
public RuntimeException(Throwable p0){} // manual summary
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
// Generated automatically from java.lang.String for testing purposes
|
||||
|
||||
package java.lang;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.nio.charset.Charset;
|
||||
import java.util.Comparator;
|
||||
import java.util.Locale;
|
||||
|
||||
public class String implements CharSequence, Comparable<String>, Serializable
|
||||
{
|
||||
public String concat(String p0){ return null; } // manual summary
|
||||
public String replace(CharSequence p0, CharSequence p1){ return null; } // manual summary
|
||||
public String replace(char p0, char p1){ return null; } // manual summary
|
||||
public String replaceAll(String p0, String p1){ return null; } // manual summary
|
||||
public String substring(int p0){ return null; } // manual summary
|
||||
public String substring(int p0, int p1){ return null; } // manual summary
|
||||
public String toLowerCase(){ return null; } // manual summary
|
||||
public String toLowerCase(Locale p0){ return null; } // manual summary
|
||||
public String toString(){ return null; } // manual summary
|
||||
public String toUpperCase(){ return null; } // manual summary
|
||||
public String trim(){ return null; } // manual summary
|
||||
public String(String p0){} // manual summary
|
||||
public String(byte[] p0){} // manual summary
|
||||
public String(byte[] p0, Charset p1){} // manual summary
|
||||
public String[] split(String p0){ return null; } // manual summary
|
||||
public boolean contains(CharSequence p0){ return false; } // manual neutral
|
||||
public boolean endsWith(String p0){ return false; } // manual neutral
|
||||
public boolean equals(Object p0){ return false; } // manual neutral
|
||||
public boolean equalsIgnoreCase(String p0){ return false; } // manual neutral
|
||||
public boolean isEmpty(){ return false; } // manual neutral
|
||||
public boolean startsWith(String p0){ return false; } // manual neutral
|
||||
public byte[] getBytes(){ return null; } // manual summary
|
||||
public byte[] getBytes(Charset p0){ return null; } // manual summary
|
||||
public char charAt(int p0){ return '0'; } // manual summary
|
||||
public char[] toCharArray(){ return null; } // manual summary
|
||||
public int compareTo(String p0){ return 0; } // manual neutral
|
||||
public int hashCode(){ return 0; } // manual neutral
|
||||
public int indexOf(String p0){ return 0; } // manual neutral
|
||||
public int indexOf(int p0){ return 0; } // manual neutral
|
||||
public int lastIndexOf(String p0){ return 0; } // manual neutral
|
||||
public int lastIndexOf(int p0){ return 0; } // manual neutral
|
||||
public int length(){ return 0; } // manual neutral
|
||||
public static String format(String p0, Object... p1){ return null; } // manual summary
|
||||
public static String join(CharSequence p0, CharSequence... p1){ return null; } // manual summary
|
||||
public static String join(CharSequence p0, Iterable<? extends CharSequence> p1){ return null; } // manual summary
|
||||
public static String valueOf(Object p0){ return null; } // NOT MODELED
|
||||
public static String valueOf(boolean p0){ return null; } // manual neutral
|
||||
public static String valueOf(int p0){ return null; } // manual neutral
|
||||
public static String valueOf(long p0){ return null; } // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// Generated automatically from java.lang.StringBuffer for testing purposes
|
||||
|
||||
package java.lang;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class StringBuffer extends AbstractStringBuilder implements Serializable
|
||||
{
|
||||
public String toString(){ return null; } // manual summary
|
||||
public StringBuffer append(Object p0){ return null; } // manual summary
|
||||
public StringBuffer append(String p0){ return null; } // manual summary
|
||||
public StringBuffer append(char p0){ return null; } // manual summary
|
||||
|
||||
public StringBuffer append(CharSequence s, int start, int end) { return null; }
|
||||
|
||||
public void setCharAt(int p0, char p1){}
|
||||
public void setLength(int p0){}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
// Generated automatically from java.lang.StringBuilder for testing purposes
|
||||
|
||||
package java.lang;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class StringBuilder extends AbstractStringBuilder implements Serializable
|
||||
{
|
||||
public String toString(){ return null; } // manual summary
|
||||
public StringBuilder append(CharSequence p0){ return null; } // manual summary
|
||||
public StringBuilder append(Object p0){ return null; } // manual summary
|
||||
public StringBuilder append(String p0){ return null; } // manual summary
|
||||
public StringBuilder append(boolean p0){ return null; } // manual summary
|
||||
public StringBuilder append(char p0){ return null; } // manual summary
|
||||
public StringBuilder append(int p0){ return null; } // manual summary
|
||||
public StringBuilder append(long p0){ return null; } // manual summary
|
||||
public StringBuilder delete(int p0, int p1){ return null; } // manual summary
|
||||
public StringBuilder(String p0){} // manual summary
|
||||
public StringBuilder(int p0){} // manual summary
|
||||
|
||||
public StringBuilder append(CharSequence s, int start, int end) { return null; }
|
||||
|
||||
public void setCharAt(int p0, char p1){}
|
||||
public void setLength(int p0){}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
// Generated automatically from java.lang.System for testing purposes
|
||||
|
||||
package java.lang;
|
||||
|
||||
import java.io.Console;
|
||||
import java.io.InputStream;
|
||||
import java.io.PrintStream;
|
||||
import java.nio.channels.Channel;
|
||||
import java.util.Map;
|
||||
import java.util.Properties;
|
||||
|
||||
public class System
|
||||
{
|
||||
protected System() {}
|
||||
public static String getProperty(String p0){ return null; } // NOT MODELED
|
||||
public static String getenv(String p0){ return null; } // manual neutral
|
||||
public static String lineSeparator(){ return null; } // manual neutral
|
||||
public static String setProperty(String p0, String p1){ return null; } // NOT MODELED
|
||||
public static int identityHashCode(Object p0){ return 0; } // manual neutral
|
||||
public static long currentTimeMillis(){ return 0; } // manual neutral
|
||||
public static long nanoTime(){ return 0; } // manual neutral
|
||||
public static void arraycopy(Object p0, int p1, Object p2, int p3, int p4){} // manual summary
|
||||
public static void exit(int p0){} // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
// Generated automatically from java.lang.Thread for testing purposes
|
||||
|
||||
package java.lang;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
public class Thread
|
||||
{
|
||||
public ClassLoader getContextClassLoader(){ return null; } // manual neutral
|
||||
public Thread(Runnable p0){} // manual summary
|
||||
public final String getName(){ return null; } // manual summary
|
||||
public static Thread currentThread(){ return null; } // manual neutral
|
||||
public static void sleep(long p0){} // manual neutral
|
||||
public void interrupt(){} // manual neutral
|
||||
public void start(){} // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// Generated automatically from java.lang.ThreadLocal for testing purposes
|
||||
|
||||
package java.lang;
|
||||
|
||||
import java.util.function.Supplier;
|
||||
|
||||
public class ThreadLocal<T>
|
||||
{
|
||||
public T get(){ return null; } // manual summary
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// Generated automatically from java.lang.Throwable for testing purposes
|
||||
|
||||
package java.lang;
|
||||
|
||||
import java.io.PrintStream;
|
||||
import java.io.PrintWriter;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class Throwable implements Serializable
|
||||
{
|
||||
public String getLocalizedMessage(){ return null; } // manual summary
|
||||
public String getMessage(){ return null; } // manual summary
|
||||
public String toString(){ return null; } // manual summary
|
||||
public Throwable getCause(){ return null; } // manual summary
|
||||
public Throwable(Throwable p0){} // manual summary
|
||||
public void printStackTrace(){} // NOT MODELED
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
// Generated automatically from java.lang.invoke.MethodHandles for testing purposes
|
||||
|
||||
package java.lang.invoke;
|
||||
|
||||
import java.lang.invoke.MethodHandle;
|
||||
import java.lang.invoke.MethodHandleInfo;
|
||||
import java.lang.invoke.MethodType;
|
||||
import java.lang.reflect.Constructor;
|
||||
import java.lang.reflect.Field;
|
||||
import java.lang.reflect.Member;
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.List;
|
||||
|
||||
public class MethodHandles
|
||||
{
|
||||
protected MethodHandles() {}
|
||||
public static Lookup lookup(){ return null; } // manual neutral
|
||||
|
||||
public static final
|
||||
class Lookup {}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
// Generated automatically from java.lang.reflect.Constructor for testing purposes
|
||||
|
||||
package java.lang.reflect;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
import java.lang.reflect.AnnotatedType;
|
||||
import java.lang.reflect.Executable;
|
||||
import java.lang.reflect.GenericDeclaration;
|
||||
import java.lang.reflect.Type;
|
||||
import java.lang.reflect.TypeVariable;
|
||||
|
||||
public class Constructor<T>
|
||||
{
|
||||
protected Constructor() {}
|
||||
public T newInstance(Object... p0){ return null; } // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
// Generated automatically from java.lang.reflect.Field for testing purposes
|
||||
|
||||
package java.lang.reflect;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
import java.lang.reflect.AccessibleObject;
|
||||
import java.lang.reflect.AnnotatedType;
|
||||
import java.lang.reflect.Member;
|
||||
import java.lang.reflect.Type;
|
||||
|
||||
public class Field extends AccessibleObject
|
||||
{
|
||||
protected Field() {}
|
||||
public Object get(Object p0){ return null; } // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// Generated automatically from java.lang.reflect.Method for testing purposes
|
||||
|
||||
package java.lang.reflect;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
import java.lang.reflect.AnnotatedType;
|
||||
import java.lang.reflect.Executable;
|
||||
import java.lang.reflect.GenericDeclaration;
|
||||
import java.lang.reflect.Type;
|
||||
import java.lang.reflect.TypeVariable;
|
||||
|
||||
public class Method
|
||||
{
|
||||
protected Method() {}
|
||||
public Object invoke(Object p0, Object... p1){ return null; } // manual neutral
|
||||
public String getName(){ return null; } // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
// Generated automatically from java.math.BigDecimal for testing purposes
|
||||
|
||||
package java.math;
|
||||
|
||||
import java.math.BigInteger;
|
||||
import java.math.MathContext;
|
||||
import java.math.RoundingMode;
|
||||
|
||||
public class BigDecimal
|
||||
{
|
||||
protected BigDecimal() {}
|
||||
public BigDecimal add(BigDecimal p0){ return null; } // manual neutral
|
||||
public BigDecimal multiply(BigDecimal p0){ return null; } // manual neutral
|
||||
public BigDecimal setScale(int p0, RoundingMode p1){ return null; } // manual neutral
|
||||
public BigDecimal subtract(BigDecimal p0){ return null; } // manual neutral
|
||||
public BigDecimal(String p0){} // manual neutral
|
||||
public BigDecimal(int p0){} // manual neutral
|
||||
public BigInteger toBigInteger(){ return null; } // manual neutral
|
||||
public String toString(){ return null; } // manual neutral
|
||||
public double doubleValue(){ return 0; } // manual neutral
|
||||
public int compareTo(BigDecimal p0){ return 0; } // manual neutral
|
||||
public int intValue(){ return 0; } // manual neutral
|
||||
public static BigDecimal valueOf(double p0){ return null; } // manual neutral
|
||||
public static BigDecimal valueOf(long p0){ return null; } // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
// Generated automatically from java.math.BigInteger for testing purposes
|
||||
|
||||
package java.math;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class BigInteger
|
||||
{
|
||||
protected BigInteger() {}
|
||||
public BigInteger or(BigInteger p0){ return null; } // manual neutral
|
||||
public BigInteger(String p0){} // manual neutral
|
||||
public static BigInteger valueOf(long p0){ return null; } // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
// Generated automatically from java.net.URI for testing purposes
|
||||
|
||||
package java.net;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.net.URL;
|
||||
|
||||
public class URI implements Serializable
|
||||
{
|
||||
protected URI() {}
|
||||
public String toString(){ return null; } // manual summary
|
||||
public URI(String p0){} // manual summary
|
||||
public static URI create(String p0){ return null; } // manual summary
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// Generated automatically from java.net.URL for testing purposes
|
||||
|
||||
package java.net;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.io.Serializable;
|
||||
import java.net.Proxy;
|
||||
import java.net.URI;
|
||||
import java.net.URLConnection;
|
||||
import java.net.URLStreamHandler;
|
||||
import java.net.URLStreamHandlerFactory;
|
||||
|
||||
public class URL implements Serializable
|
||||
{
|
||||
protected URL() {}
|
||||
public URI toURI(){ return null; } // manual summary
|
||||
public URL(String p0){} // manual summary
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
// Generated automatically from java.nio.Buffer for testing purposes
|
||||
|
||||
package java.nio;
|
||||
|
||||
|
||||
abstract public class Buffer
|
||||
{
|
||||
protected Buffer() {}
|
||||
public final int position(){ return 0; } // manual neutral
|
||||
public final int remaining(){ return 0; } // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
// Generated automatically from java.nio.ByteBuffer for testing purposes
|
||||
|
||||
package java.nio;
|
||||
|
||||
import java.nio.Buffer;
|
||||
import java.nio.ByteOrder;
|
||||
import java.nio.CharBuffer;
|
||||
import java.nio.DoubleBuffer;
|
||||
import java.nio.FloatBuffer;
|
||||
import java.nio.IntBuffer;
|
||||
import java.nio.LongBuffer;
|
||||
import java.nio.ShortBuffer;
|
||||
|
||||
abstract public class ByteBuffer extends Buffer implements Comparable<ByteBuffer>
|
||||
{
|
||||
protected ByteBuffer() {}
|
||||
public final byte[] array(){ return null; } // manual summary
|
||||
public static ByteBuffer allocate(int p0){ return null; } // manual neutral
|
||||
public static ByteBuffer wrap(byte[] p0){ return null; } // manual summary
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// Generated automatically from java.nio.charset.Charset for testing purposes
|
||||
|
||||
package java.nio.charset;
|
||||
|
||||
import java.nio.ByteBuffer;
|
||||
import java.nio.CharBuffer;
|
||||
import java.nio.charset.CharsetDecoder;
|
||||
import java.nio.charset.CharsetEncoder;
|
||||
import java.util.Locale;
|
||||
import java.util.Set;
|
||||
import java.util.SortedMap;
|
||||
|
||||
abstract public class Charset implements Comparable<Charset>
|
||||
{
|
||||
protected Charset() {}
|
||||
public final String name(){ return null; } // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
// Generated automatically from java.nio.file.Files for testing purposes
|
||||
|
||||
package java.nio.file;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.BufferedWriter;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
import java.nio.channels.SeekableByteChannel;
|
||||
import java.nio.charset.Charset;
|
||||
import java.nio.file.CopyOption;
|
||||
import java.nio.file.DirectoryStream;
|
||||
import java.nio.file.FileStore;
|
||||
import java.nio.file.FileVisitOption;
|
||||
import java.nio.file.FileVisitor;
|
||||
import java.nio.file.LinkOption;
|
||||
import java.nio.file.OpenOption;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.attribute.BasicFileAttributes;
|
||||
import java.nio.file.attribute.FileAttribute;
|
||||
import java.nio.file.attribute.FileAttributeView;
|
||||
import java.nio.file.attribute.FileTime;
|
||||
import java.nio.file.attribute.PosixFilePermission;
|
||||
import java.nio.file.attribute.UserPrincipal;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.function.BiPredicate;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
public class Files
|
||||
{
|
||||
protected Files() {}
|
||||
public static boolean exists(Path p0, LinkOption... p1){ return false; } // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
// Generated automatically from java.nio.file.Path for testing purposes
|
||||
|
||||
package java.nio.file;
|
||||
|
||||
import java.io.File;
|
||||
import java.net.URI;
|
||||
import java.nio.file.FileSystem;
|
||||
import java.nio.file.LinkOption;
|
||||
import java.nio.file.WatchEvent;
|
||||
import java.nio.file.WatchKey;
|
||||
import java.nio.file.WatchService;
|
||||
import java.nio.file.Watchable;
|
||||
import java.util.Iterator;
|
||||
|
||||
public interface Path extends Comparable<Path>, Iterable<Path>, Watchable
|
||||
{
|
||||
File toFile(); // manual summary
|
||||
Path getFileName(); // manual summary
|
||||
Path getParent(); // manual summary
|
||||
Path resolve(String p0); // manual summary
|
||||
Path toAbsolutePath(); // manual summary
|
||||
String toString(); // manual summary
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// Generated automatically from java.nio.file.Paths for testing purposes
|
||||
|
||||
package java.nio.file;
|
||||
|
||||
import java.net.URI;
|
||||
import java.nio.file.Path;
|
||||
|
||||
public class Paths
|
||||
{
|
||||
protected Paths() {}
|
||||
public static Path get(String p0, String... p1){ return null; } // manual summary
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
// Generated automatically from java.sql.Connection for testing purposes
|
||||
|
||||
package java.sql;
|
||||
|
||||
import java.sql.Array;
|
||||
import java.sql.Blob;
|
||||
import java.sql.CallableStatement;
|
||||
import java.sql.Clob;
|
||||
import java.sql.DatabaseMetaData;
|
||||
import java.sql.NClob;
|
||||
import java.sql.PreparedStatement;
|
||||
import java.sql.SQLWarning;
|
||||
import java.sql.SQLXML;
|
||||
import java.sql.Savepoint;
|
||||
import java.sql.Statement;
|
||||
import java.sql.Struct;
|
||||
import java.sql.Wrapper;
|
||||
import java.util.Map;
|
||||
import java.util.Properties;
|
||||
import java.util.concurrent.Executor;
|
||||
|
||||
public interface Connection extends AutoCloseable, Wrapper
|
||||
{
|
||||
Statement createStatement(); // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
// Generated automatically from java.sql.PreparedStatement for testing purposes
|
||||
|
||||
package java.sql;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.io.Reader;
|
||||
import java.math.BigDecimal;
|
||||
import java.net.URL;
|
||||
import java.sql.Array;
|
||||
import java.sql.Blob;
|
||||
import java.sql.Clob;
|
||||
import java.sql.NClob;
|
||||
import java.sql.ParameterMetaData;
|
||||
import java.sql.Ref;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.ResultSetMetaData;
|
||||
import java.sql.RowId;
|
||||
import java.sql.SQLType;
|
||||
import java.sql.SQLXML;
|
||||
import java.sql.Statement;
|
||||
import java.sql.Time;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.Calendar;
|
||||
|
||||
public interface PreparedStatement extends Statement
|
||||
{
|
||||
ResultSet executeQuery(); // manual neutral
|
||||
int executeUpdate(); // manual neutral
|
||||
void setInt(int p0, int p1); // manual neutral
|
||||
void setLong(int p0, long p1); // manual neutral
|
||||
void setString(int p0, String p1); // manual summary
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
// Generated automatically from java.sql.ResultSet for testing purposes
|
||||
|
||||
package java.sql;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.io.Reader;
|
||||
import java.math.BigDecimal;
|
||||
import java.net.URL;
|
||||
import java.sql.Array;
|
||||
import java.sql.Blob;
|
||||
import java.sql.Clob;
|
||||
import java.sql.NClob;
|
||||
import java.sql.Ref;
|
||||
import java.sql.ResultSetMetaData;
|
||||
import java.sql.RowId;
|
||||
import java.sql.SQLType;
|
||||
import java.sql.SQLWarning;
|
||||
import java.sql.SQLXML;
|
||||
import java.sql.Statement;
|
||||
import java.sql.Time;
|
||||
import java.sql.Timestamp;
|
||||
import java.sql.Wrapper;
|
||||
import java.util.Calendar;
|
||||
import java.util.Map;
|
||||
|
||||
public interface ResultSet extends AutoCloseable, Wrapper
|
||||
{
|
||||
String getString(String p0); // manual summary
|
||||
String getString(int p0); // manual neutral
|
||||
Timestamp getTimestamp(String p0); // manual neutral
|
||||
boolean next(); // manual neutral
|
||||
int getInt(String p0); // manual neutral
|
||||
int getInt(int p0); // manual neutral
|
||||
long getLong(String p0); // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
// Generated automatically from java.sql.Statement for testing purposes
|
||||
|
||||
package java.sql;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLWarning;
|
||||
import java.sql.Wrapper;
|
||||
|
||||
public interface Statement extends AutoCloseable, Wrapper
|
||||
{
|
||||
void close(); // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
// Generated automatically from java.sql.Timestamp for testing purposes
|
||||
|
||||
package java.sql;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
public class Timestamp
|
||||
{
|
||||
protected Timestamp() {}
|
||||
public Timestamp(long p0){} // manual neutral
|
||||
public long getTime(){ return 0; } // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// Generated automatically from java.text.DateFormat for testing purposes
|
||||
|
||||
package java.text;
|
||||
|
||||
import java.text.FieldPosition;
|
||||
import java.text.Format;
|
||||
import java.text.NumberFormat;
|
||||
import java.text.ParsePosition;
|
||||
import java.util.Calendar;
|
||||
import java.util.Locale;
|
||||
import java.util.TimeZone;
|
||||
|
||||
abstract public class DateFormat extends Format
|
||||
{
|
||||
public final String format(java.util.Date p0){ return null; } // manual neutral
|
||||
public java.util.Date parse(String p0){ return null; } // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
// Generated automatically from java.text.Format for testing purposes
|
||||
|
||||
package java.text;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.text.AttributedCharacterIterator;
|
||||
import java.text.FieldPosition;
|
||||
import java.text.ParsePosition;
|
||||
|
||||
abstract public class Format implements Cloneable, Serializable
|
||||
{
|
||||
public final String format(Object p0){ return null; } // NOT MODELED
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
// Generated automatically from java.text.MessageFormat for testing purposes
|
||||
|
||||
package java.text;
|
||||
|
||||
import java.text.AttributedCharacterIterator;
|
||||
import java.text.FieldPosition;
|
||||
import java.text.Format;
|
||||
import java.text.ParsePosition;
|
||||
import java.util.Locale;
|
||||
|
||||
public class MessageFormat extends Format
|
||||
{
|
||||
protected MessageFormat() {}
|
||||
public static String format(String p0, Object... p1){ return null; } // NOT MODELED
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
// Generated automatically from java.text.SimpleDateFormat for testing purposes
|
||||
|
||||
package java.text;
|
||||
|
||||
import java.text.AttributedCharacterIterator;
|
||||
import java.text.DateFormat;
|
||||
import java.text.DateFormatSymbols;
|
||||
import java.text.FieldPosition;
|
||||
import java.text.ParsePosition;
|
||||
import java.util.Locale;
|
||||
|
||||
public class SimpleDateFormat extends DateFormat
|
||||
{
|
||||
public SimpleDateFormat(String p0){} // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// Generated automatically from java.time.Duration for testing purposes
|
||||
|
||||
package java.time;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.temporal.Temporal;
|
||||
import java.time.temporal.TemporalAmount;
|
||||
import java.time.temporal.TemporalUnit;
|
||||
import java.util.List;
|
||||
|
||||
public class Duration implements Serializable
|
||||
{
|
||||
protected Duration() {}
|
||||
public long toMillis(){ return 0; } // manual neutral
|
||||
public static Duration ofMillis(long p0){ return null; } // manual neutral
|
||||
public static Duration ofMinutes(long p0){ return null; } // manual neutral
|
||||
public static Duration ofSeconds(long p0){ return null; } // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
// Generated automatically from java.time.Instant for testing purposes
|
||||
|
||||
package java.time;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.Clock;
|
||||
import java.time.OffsetDateTime;
|
||||
import java.time.ZoneId;
|
||||
import java.time.ZoneOffset;
|
||||
import java.time.ZonedDateTime;
|
||||
import java.time.temporal.Temporal;
|
||||
import java.time.temporal.TemporalAccessor;
|
||||
import java.time.temporal.TemporalAdjuster;
|
||||
import java.time.temporal.TemporalAmount;
|
||||
import java.time.temporal.TemporalField;
|
||||
import java.time.temporal.TemporalQuery;
|
||||
import java.time.temporal.TemporalUnit;
|
||||
import java.time.temporal.ValueRange;
|
||||
|
||||
public class Instant implements Serializable
|
||||
{
|
||||
protected Instant() {}
|
||||
public long toEpochMilli(){ return 0; } // manual neutral
|
||||
public static Instant now(){ return null; } // manual neutral
|
||||
public static Instant ofEpochMilli(long p0){ return null; } // manual neutral
|
||||
public static Instant parse(CharSequence p0){ return null; } // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
// Generated automatically from java.time.LocalDate for testing purposes
|
||||
|
||||
package java.time;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.Clock;
|
||||
import java.time.DayOfWeek;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.LocalTime;
|
||||
import java.time.Month;
|
||||
import java.time.OffsetDateTime;
|
||||
import java.time.OffsetTime;
|
||||
import java.time.Period;
|
||||
import java.time.ZoneId;
|
||||
import java.time.ZonedDateTime;
|
||||
import java.time.chrono.ChronoLocalDate;
|
||||
import java.time.chrono.Era;
|
||||
import java.time.chrono.IsoChronology;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.time.temporal.Temporal;
|
||||
import java.time.temporal.TemporalAccessor;
|
||||
import java.time.temporal.TemporalAdjuster;
|
||||
import java.time.temporal.TemporalAmount;
|
||||
import java.time.temporal.TemporalField;
|
||||
import java.time.temporal.TemporalQuery;
|
||||
import java.time.temporal.TemporalUnit;
|
||||
import java.time.temporal.ValueRange;
|
||||
|
||||
public class LocalDate implements Serializable
|
||||
{
|
||||
protected LocalDate() {}
|
||||
public LocalDate plusDays(long p0){ return null; } // manual neutral
|
||||
public static LocalDate now(){ return null; } // manual neutral
|
||||
public static LocalDate of(int p0, int p1, int p2){ return null; } // manual neutral
|
||||
public static LocalDate parse(CharSequence p0){ return null; } // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
// Generated automatically from java.time.LocalDateTime for testing purposes
|
||||
|
||||
package java.time;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.Clock;
|
||||
import java.time.DayOfWeek;
|
||||
import java.time.Instant;
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalTime;
|
||||
import java.time.Month;
|
||||
import java.time.OffsetDateTime;
|
||||
import java.time.ZoneId;
|
||||
import java.time.ZoneOffset;
|
||||
import java.time.ZonedDateTime;
|
||||
import java.time.chrono.ChronoLocalDate;
|
||||
import java.time.chrono.ChronoLocalDateTime;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.time.temporal.Temporal;
|
||||
import java.time.temporal.TemporalAccessor;
|
||||
import java.time.temporal.TemporalAdjuster;
|
||||
import java.time.temporal.TemporalAmount;
|
||||
import java.time.temporal.TemporalField;
|
||||
import java.time.temporal.TemporalQuery;
|
||||
import java.time.temporal.TemporalUnit;
|
||||
import java.time.temporal.ValueRange;
|
||||
|
||||
public class LocalDateTime implements Serializable
|
||||
{
|
||||
protected LocalDateTime() {}
|
||||
public static LocalDateTime now(){ return null; } // manual neutral
|
||||
public static LocalDateTime of(int p0, int p1, int p2, int p3, int p4, int p5){ return null; } // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// Generated automatically from java.time.ZoneId for testing purposes
|
||||
|
||||
package java.time;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.ZoneOffset;
|
||||
import java.time.format.TextStyle;
|
||||
import java.time.temporal.TemporalAccessor;
|
||||
import java.time.zone.ZoneRules;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
abstract public class ZoneId implements Serializable
|
||||
{
|
||||
public static ZoneId of(String p0){ return null; } // manual neutral
|
||||
public static ZoneId systemDefault(){ return null; } // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
// Generated automatically from java.time.ZonedDateTime for testing purposes
|
||||
|
||||
package java.time;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.Clock;
|
||||
import java.time.DayOfWeek;
|
||||
import java.time.Instant;
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.LocalTime;
|
||||
import java.time.Month;
|
||||
import java.time.OffsetDateTime;
|
||||
import java.time.ZoneId;
|
||||
import java.time.ZoneOffset;
|
||||
import java.time.chrono.ChronoLocalDate;
|
||||
import java.time.chrono.ChronoZonedDateTime;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.time.temporal.Temporal;
|
||||
import java.time.temporal.TemporalAccessor;
|
||||
import java.time.temporal.TemporalAdjuster;
|
||||
import java.time.temporal.TemporalAmount;
|
||||
import java.time.temporal.TemporalField;
|
||||
import java.time.temporal.TemporalQuery;
|
||||
import java.time.temporal.TemporalUnit;
|
||||
import java.time.temporal.ValueRange;
|
||||
|
||||
public class ZonedDateTime implements Serializable
|
||||
{
|
||||
protected ZonedDateTime() {}
|
||||
public static ZonedDateTime now(){ return null; } // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
// Generated automatically from java.time.chrono.ChronoZonedDateTime for testing purposes
|
||||
|
||||
package java.time.chrono;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.time.LocalTime;
|
||||
import java.time.ZoneId;
|
||||
import java.time.ZoneOffset;
|
||||
import java.time.chrono.ChronoLocalDate;
|
||||
import java.time.chrono.ChronoLocalDateTime;
|
||||
import java.time.chrono.Chronology;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.time.temporal.Temporal;
|
||||
import java.time.temporal.TemporalAccessor;
|
||||
import java.time.temporal.TemporalAdjuster;
|
||||
import java.time.temporal.TemporalAmount;
|
||||
import java.time.temporal.TemporalField;
|
||||
import java.time.temporal.TemporalQuery;
|
||||
import java.time.temporal.TemporalUnit;
|
||||
import java.time.temporal.ValueRange;
|
||||
import java.util.Comparator;
|
||||
|
||||
public interface ChronoZonedDateTime<D extends ChronoLocalDate> extends Comparable<ChronoZonedDateTime<? extends Object>>, Temporal
|
||||
{
|
||||
default Instant toInstant(){ return null; } // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
// Generated automatically from java.time.format.DateTimeFormatter for testing purposes
|
||||
|
||||
package java.time.format;
|
||||
|
||||
import java.text.Format;
|
||||
import java.text.ParsePosition;
|
||||
import java.time.Period;
|
||||
import java.time.ZoneId;
|
||||
import java.time.chrono.Chronology;
|
||||
import java.time.format.DecimalStyle;
|
||||
import java.time.format.FormatStyle;
|
||||
import java.time.format.ResolverStyle;
|
||||
import java.time.temporal.TemporalAccessor;
|
||||
import java.time.temporal.TemporalField;
|
||||
import java.time.temporal.TemporalQuery;
|
||||
import java.util.Locale;
|
||||
import java.util.Set;
|
||||
|
||||
public class DateTimeFormatter
|
||||
{
|
||||
protected DateTimeFormatter() {}
|
||||
public String format(TemporalAccessor p0){ return null; } // manual neutral
|
||||
public static DateTimeFormatter ofPattern(String p0){ return null; } // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
// Generated automatically from java.util.ArrayList for testing purposes
|
||||
|
||||
package java.util;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.AbstractList;
|
||||
import java.util.Collection;
|
||||
import java.util.Comparator;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.ListIterator;
|
||||
import java.util.RandomAccess;
|
||||
import java.util.Spliterator;
|
||||
import java.util.function.Consumer;
|
||||
import java.util.function.Predicate;
|
||||
import java.util.function.UnaryOperator;
|
||||
|
||||
public class ArrayList<E> extends java.util.AbstractList<E> implements Cloneable, RandomAccess, Serializable, java.util.List<E>
|
||||
{
|
||||
public ArrayList(int p0){} // manual neutral
|
||||
public ArrayList(java.util.Collection<? extends E> p0){} // manual summary
|
||||
public E get(int p0){ return null; } // manual summary
|
||||
public boolean add(E p0){ return false; } // manual summary
|
||||
public boolean addAll(java.util.Collection<? extends E> p0){ return false; } // manual summary
|
||||
public boolean isEmpty(){ return false; } // manual neutral
|
||||
public int size(){ return 0; } // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
// Generated automatically from java.util.Arrays for testing purposes
|
||||
|
||||
package java.util;
|
||||
|
||||
import java.util.Comparator;
|
||||
import java.util.List;
|
||||
import java.util.Spliterator;
|
||||
import java.util.function.BinaryOperator;
|
||||
import java.util.function.DoubleBinaryOperator;
|
||||
import java.util.function.IntBinaryOperator;
|
||||
import java.util.function.IntFunction;
|
||||
import java.util.function.IntToDoubleFunction;
|
||||
import java.util.function.IntToLongFunction;
|
||||
import java.util.function.IntUnaryOperator;
|
||||
import java.util.function.LongBinaryOperator;
|
||||
import java.util.stream.DoubleStream;
|
||||
import java.util.stream.IntStream;
|
||||
import java.util.stream.LongStream;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
public class Arrays
|
||||
{
|
||||
protected Arrays() {}
|
||||
public static <T> java.util.List<T> asList(T... p0){ return null; } // manual summary
|
||||
public static <T> java.util.stream.Stream<T> stream(T[] p0){ return null; } // manual summary
|
||||
public static String toString(Object[] p0){ return null; } // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
// Generated automatically from java.util.Calendar for testing purposes
|
||||
|
||||
package java.util;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.Instant;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.TimeZone;
|
||||
|
||||
abstract public class Calendar implements Cloneable, Comparable<Calendar>, Serializable
|
||||
{
|
||||
public abstract void add(int p0, int p1); // manual neutral
|
||||
public final java.util.Date getTime(){ return null; } // manual neutral
|
||||
public final void setTime(java.util.Date p0){} // manual neutral
|
||||
public int get(int p0){ return 0; } // manual neutral
|
||||
public long getTimeInMillis(){ return 0; } // manual neutral
|
||||
public static Calendar getInstance(){ return null; } // manual neutral
|
||||
public void set(int p0, int p1){} // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
// Generated automatically from java.util.Collection for testing purposes
|
||||
|
||||
package java.util;
|
||||
|
||||
import java.util.Iterator;
|
||||
import java.util.Spliterator;
|
||||
import java.util.function.Predicate;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
public interface Collection<E> extends java.lang.Iterable<E>
|
||||
{
|
||||
boolean add(E p0); // manual summary
|
||||
boolean contains(Object p0); // manual neutral
|
||||
boolean isEmpty(); // manual neutral
|
||||
default boolean removeIf(java.util.function.Predicate<? super E> p0){ return false; } // manual neutral
|
||||
default java.util.stream.Stream<E> stream(){ return null; } // manual summary
|
||||
int size(); // manual neutral
|
||||
java.util.Iterator<E> iterator(); // manual summary
|
||||
|
||||
boolean addAll(Collection<? extends E> c);
|
||||
Object[] toArray();
|
||||
<T> T[] toArray(T[] a);
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
// Generated automatically from java.util.Collections for testing purposes
|
||||
|
||||
package java.util;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Comparator;
|
||||
import java.util.Deque;
|
||||
import java.util.Enumeration;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.ListIterator;
|
||||
import java.util.Map;
|
||||
import java.util.NavigableMap;
|
||||
import java.util.NavigableSet;
|
||||
import java.util.Queue;
|
||||
import java.util.Random;
|
||||
import java.util.Set;
|
||||
import java.util.SortedMap;
|
||||
import java.util.SortedSet;
|
||||
|
||||
public class Collections
|
||||
{
|
||||
protected Collections() {}
|
||||
public static <K, V> java.util.Map<K, V> emptyMap(){ return null; } // manual neutral
|
||||
public static <K, V> java.util.Map<K, V> singletonMap(K p0, V p1){ return null; } // manual summary
|
||||
public static <K, V> java.util.Map<K, V> unmodifiableMap(java.util.Map<? extends K, ? extends V> p0){ return null; } // manual summary
|
||||
public static <T extends java.lang.Comparable<? super T>> void sort(java.util.List<T> p0){} // manual neutral
|
||||
public static <T> java.util.List<T> emptyList(){ return null; } // manual neutral
|
||||
public static <T> java.util.List<T> singletonList(T p0){ return null; } // manual summary
|
||||
public static <T> java.util.List<T> unmodifiableList(java.util.List<? extends T> p0){ return null; } // manual summary
|
||||
public static <T> java.util.Set<T> emptySet(){ return null; } // manual neutral
|
||||
public static <T> java.util.Set<T> singleton(T p0){ return null; } // manual summary
|
||||
public static <T> java.util.Set<T> unmodifiableSet(Set<? extends T> p0){ return null; } // manual summary
|
||||
public static <T> void sort(java.util.List<T> p0, java.util.Comparator<? super T> p1){} // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
// Generated automatically from java.util.Comparator for testing purposes
|
||||
|
||||
package java.util;
|
||||
|
||||
import java.util.function.Function;
|
||||
import java.util.function.ToDoubleFunction;
|
||||
import java.util.function.ToIntFunction;
|
||||
import java.util.function.ToLongFunction;
|
||||
|
||||
public interface Comparator<T>
|
||||
{
|
||||
static <T, U extends java.lang.Comparable<? super U>> java.util.Comparator<T> comparing(java.util.function.Function<? super T, ? extends U> p0){ return null; } // NOT MODELED
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
// Generated automatically from java.util.Date for testing purposes
|
||||
|
||||
package java.util;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.Instant;
|
||||
|
||||
public class Date implements Cloneable, Serializable
|
||||
{
|
||||
public Date(long p0){} // manual neutral
|
||||
public Instant toInstant(){ return null; } // manual neutral
|
||||
public long getTime(){ return 0; } // manual neutral
|
||||
public static java.util.Date from(Instant p0){ return null; } // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// Generated automatically from java.util.Enumeration for testing purposes
|
||||
|
||||
package java.util;
|
||||
|
||||
|
||||
public interface Enumeration<E>
|
||||
{
|
||||
E nextElement(); // manual summary
|
||||
boolean hasMoreElements(); // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
// Generated automatically from java.util.EventObject for testing purposes
|
||||
|
||||
package java.util;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class EventObject implements Serializable
|
||||
{
|
||||
protected EventObject() {}
|
||||
public Object getSource(){ return null; } // manual summary
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
// Generated automatically from java.util.HashMap for testing purposes
|
||||
|
||||
package java.util;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.AbstractMap;
|
||||
import java.util.Collection;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.function.BiConsumer;
|
||||
import java.util.function.BiFunction;
|
||||
import java.util.function.Function;
|
||||
|
||||
public class HashMap<K, V> extends java.util.AbstractMap<K, V> implements Cloneable, Serializable
|
||||
{
|
||||
public HashMap(){}
|
||||
public HashMap(int p0){} // manual neutral
|
||||
public HashMap(java.util.Map<? extends K, ? extends V> p0){} // manual summary
|
||||
public V get(Object p0){ return null; } // manual summary
|
||||
public V put(K p0, V p1){ return null; } // manual summary
|
||||
public boolean containsKey(Object p0){ return false; } // manual neutral
|
||||
public int size(){ return 0; } // manual neutral
|
||||
public Set<Map.Entry<K, V>> entrySet(){ return null; } // manual summary
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
// Generated automatically from java.util.HashSet for testing purposes
|
||||
|
||||
package java.util;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.AbstractSet;
|
||||
import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
import java.util.Set;
|
||||
import java.util.Spliterator;
|
||||
|
||||
public class HashSet<E> implements Cloneable, Serializable, java.util.Set<E>
|
||||
{
|
||||
public HashSet(int p0){} // manual neutral
|
||||
public HashSet(java.util.Collection<? extends E> p0){} // manual summary
|
||||
public boolean add(E p0){ return false; } // manual summary
|
||||
|
||||
public void clear() {}
|
||||
public Iterator<E> iterator() { return null; }
|
||||
public int size() { return 0; }
|
||||
public boolean isEmpty() { return false; }
|
||||
public boolean remove(Object o) { return false; }
|
||||
public boolean removeAll(Collection<?> c) { return false; }
|
||||
public boolean contains(Object o) { return false; }
|
||||
public Object[] toArray() { return null; }
|
||||
public <T> T[] toArray(T[] a) { return null; }
|
||||
public boolean containsAll(Collection<?> c) { return false; }
|
||||
public boolean addAll(Collection<? extends E> c) { return false; }
|
||||
public boolean retainAll(Collection<?> c) { return false; }
|
||||
public boolean equals(Object o) { return false; }
|
||||
public int hashCode() { return 0; }
|
||||
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
// Generated automatically from java.util.Hashtable for testing purposes
|
||||
|
||||
package java.util;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Collection;
|
||||
import java.util.Dictionary;
|
||||
import java.util.Enumeration;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.function.BiConsumer;
|
||||
import java.util.function.BiFunction;
|
||||
import java.util.function.Function;
|
||||
|
||||
public class Hashtable<K, V> extends Dictionary<K, V> implements Cloneable, Serializable
|
||||
{
|
||||
public V get(Object p0){ return null; } // manual summary
|
||||
public V put(K p0, V p1){ return null; } // manual summary
|
||||
|
||||
public synchronized V remove(Object key) { return null; }
|
||||
public synchronized Enumeration<V> elements() { return null; }
|
||||
public synchronized boolean isEmpty() { return false; }
|
||||
public synchronized int size() { return 0; }
|
||||
public synchronized Enumeration<K> keys() { return null; }
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// Generated automatically from java.util.Iterator for testing purposes
|
||||
|
||||
package java.util;
|
||||
|
||||
import java.util.function.Consumer;
|
||||
|
||||
public interface Iterator<E>
|
||||
{
|
||||
E next(); // manual summary
|
||||
boolean hasNext(); // manual neutral
|
||||
default void remove(){} // manual neutral
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
// Generated automatically from java.util.LinkedHashMap for testing purposes
|
||||
|
||||
package java.util;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.function.BiConsumer;
|
||||
import java.util.function.BiFunction;
|
||||
|
||||
public class LinkedHashMap<K, V> extends java.util.HashMap<K, V>
|
||||
{
|
||||
public V get(Object p0){ return null; } // manual summary
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
// Generated automatically from java.util.LinkedHashSet for testing purposes
|
||||
|
||||
package java.util;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Collection;
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
import java.util.Spliterator;
|
||||
|
||||
public class LinkedHashSet<E> implements Cloneable, Serializable
|
||||
{
|
||||
public LinkedHashSet(java.util.Collection<? extends E> p0){} // manual summary
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
// Generated automatically from java.util.LinkedList for testing purposes
|
||||
|
||||
package java.util;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.AbstractSequentialList;
|
||||
import java.util.Collection;
|
||||
import java.util.Deque;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.ListIterator;
|
||||
import java.util.Spliterator;
|
||||
|
||||
public class LinkedList<E> extends AbstractSequentialList<E> implements Cloneable, Serializable
|
||||
{
|
||||
public boolean add(E p0){ return false; } // manual summary
|
||||
|
||||
public ListIterator<E> listIterator(int index) { return null; }
|
||||
public void clear() {}
|
||||
public Iterator<E> iterator() { return null; }
|
||||
public int size() { return 0; }
|
||||
public boolean isEmpty() { return false; }
|
||||
public boolean remove(Object o) { return false; }
|
||||
public boolean removeAll(Collection<?> c) { return false; }
|
||||
public boolean contains(Object o) { return false; }
|
||||
public Object[] toArray() { return null; }
|
||||
public <T> T[] toArray(T[] a) { return null; }
|
||||
public boolean containsAll(Collection<?> c) { return false; }
|
||||
public boolean addAll(Collection<? extends E> c) { return false; }
|
||||
public boolean retainAll(Collection<?> c) { return false; }
|
||||
public boolean equals(Object o) { return false; }
|
||||
public int hashCode() { return 0; }
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user