From b7e903fa309c1330e0ce8e31e191e7b3a5fb5e85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vorburger=20=E2=9B=91=EF=B8=8F?= Date: Fri, 15 Sep 2017 02:10:57 +0200 Subject: [PATCH] tracecompass' java.* EEAs (1/2) (#15) These are only the ones which we didn't have at all yet; more next. https://github.com/tracecompass/tracecompass/tree/master/common/org.eclipse.tracecompass.common.core/annotations/java https://github.com/lastnpe/eclipse-null-eea-augments/issues/10 --- libraries/java/java/io/RandomAccessFile.eea | 4 ++ libraries/java/java/lang/Enum.eea | 4 ++ libraries/java/java/lang/Long.eea | 4 ++ libraries/java/java/math/BigDecimal.eea | 31 ++++++++++++++ libraries/java/java/nio/ByteBuffer.eea | 16 ++++++++ libraries/java/java/nio/ByteOrder.eea | 10 +++++ libraries/java/java/util/Formatter.eea | 7 ++++ libraries/java/java/util/NavigableSet.eea | 40 +++++++++++++++++++ libraries/java/java/util/Objects.eea | 4 ++ libraries/java/java/util/SortedSet.eea | 16 ++++++++ libraries/java/java/util/UUID.eea | 19 +++++++++ .../util/concurrent/CompletableFuture.eea | 7 ++++ libraries/java/java/util/logging/Logger.eea | 5 +++ libraries/java/java/util/regex/Pattern.eea | 7 ++++ libraries/java/java/util/stream/Stream.eea | 7 ++++ .../java/java/util/stream/StreamSupport.eea | 25 ++++++++++++ 16 files changed, 206 insertions(+) create mode 100644 libraries/java/java/io/RandomAccessFile.eea create mode 100644 libraries/java/java/lang/Enum.eea create mode 100644 libraries/java/java/lang/Long.eea create mode 100644 libraries/java/java/math/BigDecimal.eea create mode 100644 libraries/java/java/nio/ByteBuffer.eea create mode 100644 libraries/java/java/nio/ByteOrder.eea create mode 100644 libraries/java/java/util/Formatter.eea create mode 100644 libraries/java/java/util/NavigableSet.eea create mode 100644 libraries/java/java/util/Objects.eea create mode 100644 libraries/java/java/util/SortedSet.eea create mode 100644 libraries/java/java/util/UUID.eea create mode 100644 libraries/java/java/util/concurrent/CompletableFuture.eea create mode 100644 libraries/java/java/util/logging/Logger.eea create mode 100644 libraries/java/java/util/regex/Pattern.eea create mode 100644 libraries/java/java/util/stream/Stream.eea create mode 100644 libraries/java/java/util/stream/StreamSupport.eea diff --git a/libraries/java/java/io/RandomAccessFile.eea b/libraries/java/java/io/RandomAccessFile.eea new file mode 100644 index 000000000..07583e500 --- /dev/null +++ b/libraries/java/java/io/RandomAccessFile.eea @@ -0,0 +1,4 @@ +class java/io/RandomAccessFile +readUTF + ()Ljava/lang/String; + ()L1java/lang/String; diff --git a/libraries/java/java/lang/Enum.eea b/libraries/java/java/lang/Enum.eea new file mode 100644 index 000000000..2b65f8760 --- /dev/null +++ b/libraries/java/java/lang/Enum.eea @@ -0,0 +1,4 @@ +class java/lang/Enum +name + ()Ljava/lang/String; + ()L1java/lang/String; diff --git a/libraries/java/java/lang/Long.eea b/libraries/java/java/lang/Long.eea new file mode 100644 index 000000000..bb114b3b2 --- /dev/null +++ b/libraries/java/java/lang/Long.eea @@ -0,0 +1,4 @@ +class java/lang/Long +valueOf + (J)Ljava/lang/Long; + (J)L1java/lang/Long; diff --git a/libraries/java/java/math/BigDecimal.eea b/libraries/java/java/math/BigDecimal.eea new file mode 100644 index 000000000..4a558c065 --- /dev/null +++ b/libraries/java/java/math/BigDecimal.eea @@ -0,0 +1,31 @@ +class java/math/BigDecimal +ZERO + Ljava/math/BigDecimal; + L1java/math/BigDecimal; +ONE + Ljava/math/BigDecimal; + L1java/math/BigDecimal; +TEN + Ljava/math/BigDecimal; + L1java/math/BigDecimal; +divide + (Ljava/math/BigDecimal;Ljava/math/MathContext;)Ljava/math/BigDecimal; + (Ljava/math/BigDecimal;Ljava/math/MathContext;)L1java/math/BigDecimal; +multiply + (Ljava/math/BigDecimal;)Ljava/math/BigDecimal; + (Ljava/math/BigDecimal;)L1java/math/BigDecimal; +multiply + (Ljava/math/BigDecimal;Ljava/math/MathContext;)Ljava/math/BigDecimal; + (Ljava/math/BigDecimal;Ljava/math/MathContext;)L1java/math/BigDecimal; +subtract + (Ljava/math/BigDecimal;)Ljava/math/BigDecimal; + (Ljava/math/BigDecimal;)L1java/math/BigDecimal; +valueOf + (D)Ljava/math/BigDecimal; + (D)L1java/math/BigDecimal; +valueOf + (J)Ljava/math/BigDecimal; + (J)L1java/math/BigDecimal; +add + (Ljava/math/BigDecimal;)Ljava/math/BigDecimal; + (L1java/math/BigDecimal;)L1java/math/BigDecimal; diff --git a/libraries/java/java/nio/ByteBuffer.eea b/libraries/java/java/nio/ByteBuffer.eea new file mode 100644 index 000000000..7c796dc97 --- /dev/null +++ b/libraries/java/java/nio/ByteBuffer.eea @@ -0,0 +1,16 @@ +class java/nio/ByteBuffer +allocate + (I)Ljava/nio/ByteBuffer; + (I)L1java/nio/ByteBuffer; +allocateDirect + (I)Ljava/nio/ByteBuffer; + (I)L1java/nio/ByteBuffer; +array + ()[B + ()[1B +wrap + ([B)Ljava/nio/ByteBuffer; + ([B)L1java/nio/ByteBuffer; +wrap + ([BII)Ljava/nio/ByteBuffer; + ([BII)L1java/nio/ByteBuffer; diff --git a/libraries/java/java/nio/ByteOrder.eea b/libraries/java/java/nio/ByteOrder.eea new file mode 100644 index 000000000..bd2a31767 --- /dev/null +++ b/libraries/java/java/nio/ByteOrder.eea @@ -0,0 +1,10 @@ +class java/nio/ByteOrder +BIG_ENDIAN + Ljava/nio/ByteOrder; + L1java/nio/ByteOrder; +LITTLE_ENDIAN + Ljava/nio/ByteOrder; + L1java/nio/ByteOrder; +nativeOrder + ()Ljava/nio/ByteOrder; + ()L1java/nio/ByteOrder; diff --git a/libraries/java/java/util/Formatter.eea b/libraries/java/java/util/Formatter.eea new file mode 100644 index 000000000..1d3036e4f --- /dev/null +++ b/libraries/java/java/util/Formatter.eea @@ -0,0 +1,7 @@ +class java/util/Formatter +format + (Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/Formatter; + (Ljava/lang/String;[Ljava/lang/Object;)L1java/util/Formatter; +format + (Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/Formatter; + (Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)L1java/util/Formatter; diff --git a/libraries/java/java/util/NavigableSet.eea b/libraries/java/java/util/NavigableSet.eea new file mode 100644 index 000000000..6fed63cb8 --- /dev/null +++ b/libraries/java/java/util/NavigableSet.eea @@ -0,0 +1,40 @@ +class java/util/NavigableSet +ceiling + (TE;)TE; + (TE;)T0E; +descendingIterator + ()Ljava/util/Iterator; + ()L1java/util/Iterator; +descendingSet + ()Ljava/util/NavigableSet; + ()L1java/util/NavigableSet; +floor + (TE;)TE; + (TE;)T0E; +headSet + (TE;)Ljava/util/SortedSet; + (TE;)L1java/util/SortedSet; +headSet + (TE;Z)Ljava/util/NavigableSet; + (TE;Z)L1java/util/NavigableSet; +higher + (TE;)TE; + (TE;)T0E; +iterator + ()Ljava/util/Iterator; + ()L1java/util/Iterator; +lower + (TE;)TE; + (TE;)T0E; +subSet + (TE;TE;)Ljava/util/SortedSet; + (TE;TE;)L1java/util/SortedSet; +subSet + (TE;ZTE;Z)Ljava/util/NavigableSet; + (TE;ZTE;Z)L1java/util/NavigableSet; +tailSet + (TE;)Ljava/util/SortedSet; + (TE;)L1java/util/SortedSet; +tailSet + (TE;Z)Ljava/util/NavigableSet; + (TE;Z)L1java/util/NavigableSet; diff --git a/libraries/java/java/util/Objects.eea b/libraries/java/java/util/Objects.eea new file mode 100644 index 000000000..02800400e --- /dev/null +++ b/libraries/java/java/util/Objects.eea @@ -0,0 +1,4 @@ +class java/util/Objects +equals + (Ljava/lang/Object;Ljava/lang/Object;)Z + (L0java/lang/Object;L0java/lang/Object;)Z diff --git a/libraries/java/java/util/SortedSet.eea b/libraries/java/java/util/SortedSet.eea new file mode 100644 index 000000000..92c108e6b --- /dev/null +++ b/libraries/java/java/util/SortedSet.eea @@ -0,0 +1,16 @@ +class java/util/SortedSet +comparator + ()Ljava/util/Comparator<-TE;>; + ()L0java/util/Comparator<-TE;>; +headSet + (TE;)Ljava/util/SortedSet; + (TE;)L1java/util/SortedSet; +spliterator + ()Ljava/util/Spliterator; + ()L1java/util/Spliterator; +subSet + (TE;TE;)Ljava/util/SortedSet; + (TE;TE;)L1java/util/SortedSet; +tailSet + (TE;)Ljava/util/SortedSet; + (TE;)L1java/util/SortedSet; diff --git a/libraries/java/java/util/UUID.eea b/libraries/java/java/util/UUID.eea new file mode 100644 index 000000000..116f7ffd1 --- /dev/null +++ b/libraries/java/java/util/UUID.eea @@ -0,0 +1,19 @@ +class java/util/UUID +UUID + ([B)V + ([1B)V +digits + (JI)Ljava/lang/String; + (JI)L1java/lang/String; +fromString + (Ljava/lang/String;)Ljava/util/UUID; + (L1java/lang/String;)L1java/util/UUID; +nameUUIDFromBytes + ([B)Ljava/util/UUID; + ([1B)L1java/util/UUID; +randomUUID + ()Ljava/util/UUID; + ()L1java/util/UUID; +toString + ()Ljava/lang/String; + ()L1java/lang/String; diff --git a/libraries/java/java/util/concurrent/CompletableFuture.eea b/libraries/java/java/util/concurrent/CompletableFuture.eea new file mode 100644 index 000000000..09d724a2b --- /dev/null +++ b/libraries/java/java/util/concurrent/CompletableFuture.eea @@ -0,0 +1,7 @@ +class java/util/concurrent/CompletableFuture +supplyAsync + (Ljava/util/function/Supplier;)Ljava/util/concurrent/CompletableFuture; + (Ljava/util/function/Supplier;)L1java/util/concurrent/CompletableFuture; +supplyAsync + (Ljava/util/function/Supplier;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture; + (Ljava/util/function/Supplier;Ljava/util/concurrent/Executor;)L1java/util/concurrent/CompletableFuture; diff --git a/libraries/java/java/util/logging/Logger.eea b/libraries/java/java/util/logging/Logger.eea new file mode 100644 index 000000000..60a0a3320 --- /dev/null +++ b/libraries/java/java/util/logging/Logger.eea @@ -0,0 +1,5 @@ +class java/util/logging/Logger +getLogger + (Ljava/lang/String;)Ljava/util/logging/Logger; + (Ljava/lang/String;)L1java/util/logging/Logger; + \ No newline at end of file diff --git a/libraries/java/java/util/regex/Pattern.eea b/libraries/java/java/util/regex/Pattern.eea new file mode 100644 index 000000000..92763bc21 --- /dev/null +++ b/libraries/java/java/util/regex/Pattern.eea @@ -0,0 +1,7 @@ +class java/util/regex/Pattern +compile + (Ljava/lang/String;)Ljava/util/regex/Pattern; + (Ljava/lang/String;)L1java/util/regex/Pattern; +compile + (Ljava/lang/String;I)Ljava/util/regex/Pattern; + (Ljava/lang/String;I)L1java/util/regex/Pattern; diff --git a/libraries/java/java/util/stream/Stream.eea b/libraries/java/java/util/stream/Stream.eea new file mode 100644 index 000000000..2a761c19f --- /dev/null +++ b/libraries/java/java/util/stream/Stream.eea @@ -0,0 +1,7 @@ +class java/util/stream/Stream +filter + (Ljava/util/function/Predicate<-TT;>;)Ljava/util/stream/Stream; + (Ljava/util/function/Predicate<-TT;>;)L1java/util/stream/Stream; +map + (Ljava/util/function/Function<-TT;+TR;>;)Ljava/util/stream/Stream; + (Ljava/util/function/Function<-TT;+TR;>;)L1java/util/stream/Stream; diff --git a/libraries/java/java/util/stream/StreamSupport.eea b/libraries/java/java/util/stream/StreamSupport.eea new file mode 100644 index 000000000..4aa011668 --- /dev/null +++ b/libraries/java/java/util/stream/StreamSupport.eea @@ -0,0 +1,25 @@ +class java/util/stream/StreamSupport +doubleStream + (Ljava/util/Spliterator$OfDouble;Z)Ljava/util/stream/DoubleStream; + (Ljava/util/Spliterator$OfDouble;Z)L1java/util/stream/DoubleStream; +doubleStream + (Ljava/util/function/Supplier<+Ljava/util/Spliterator$OfDouble;>;IZ)Ljava/util/stream/DoubleStream; + (Ljava/util/function/Supplier<+Ljava/util/Spliterator$OfDouble;>;IZ)L1java/util/stream/DoubleStream; +intStream + (Ljava/util/Spliterator$OfInt;Z)Ljava/util/stream/IntStream; + (Ljava/util/Spliterator$OfInt;Z)L1java/util/stream/IntStream; +intStream + (Ljava/util/function/Supplier<+Ljava/util/Spliterator$OfInt;>;IZ)Ljava/util/stream/IntStream; + (Ljava/util/function/Supplier<+Ljava/util/Spliterator$OfInt;>;IZ)L1java/util/stream/IntStream; +longStream + (Ljava/util/Spliterator$OfLong;Z)Ljava/util/stream/LongStream; + (Ljava/util/Spliterator$OfLong;Z)L1java/util/stream/LongStream; +longStream + (Ljava/util/function/Supplier<+Ljava/util/Spliterator$OfLong;>;IZ)Ljava/util/stream/LongStream; + (Ljava/util/function/Supplier<+Ljava/util/Spliterator$OfLong;>;IZ)L1java/util/stream/LongStream; +stream + (Ljava/util/Spliterator;Z)Ljava/util/stream/Stream; + (Ljava/util/Spliterator;Z)L1java/util/stream/Stream; +stream + (Ljava/util/function/Supplier<+Ljava/util/Spliterator;>;IZ)Ljava/util/stream/Stream; + (Ljava/util/function/Supplier<+Ljava/util/Spliterator;>;IZ)L1java/util/stream/Stream;