public final class com.oracle.truffle.js.runtime.util.IteratorUtil
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.oracle.truffle.js.runtime.util.IteratorUtil
super_class: java.lang.Object
{
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/js/runtime/util/IteratorUtil;
public static <S, T> java.lang.Iterable<T> convertIterable(java.lang.Iterable<S>, java.util.function.Function<S, T>);
descriptor: (Ljava/lang/Iterable;Ljava/util/function/Function;)Ljava/lang/Iterable;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: new com.oracle.truffle.js.runtime.util.IteratorUtil$ConvertIterable
dup
aload 0
aload 1
invokespecial com.oracle.truffle.js.runtime.util.IteratorUtil$ConvertIterable.<init>:(Ljava/lang/Iterable;Ljava/util/function/Function;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 source Ljava/lang/Iterable<TS;>;
0 1 1 converter Ljava/util/function/Function<TS;TT;>;
Signature: <S:Ljava/lang/Object;T:Ljava/lang/Object;>(Ljava/lang/Iterable<TS;>;Ljava/util/function/Function<TS;TT;>;)Ljava/lang/Iterable<TT;>;
MethodParameters:
Name Flags
source final
converter final
public static <S, T> java.util.Iterator<T> convertIterator(java.util.Iterator<S>, java.util.function.Function<S, T>);
descriptor: (Ljava/util/Iterator;Ljava/util/function/Function;)Ljava/util/Iterator;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: new com.oracle.truffle.js.runtime.util.IteratorUtil$ConvertIterator
dup
aload 0
aload 1
invokespecial com.oracle.truffle.js.runtime.util.IteratorUtil$ConvertIterator.<init>:(Ljava/util/Iterator;Ljava/util/function/Function;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 source Ljava/util/Iterator<TS;>;
0 1 1 converter Ljava/util/function/Function<TS;TT;>;
Signature: <S:Ljava/lang/Object;T:Ljava/lang/Object;>(Ljava/util/Iterator<TS;>;Ljava/util/function/Function<TS;TT;>;)Ljava/util/Iterator<TT;>;
MethodParameters:
Name Flags
source final
converter final
public static <S, T> java.util.List<T> convertList(java.util.List<S>, java.util.function.Function<S, T>);
descriptor: (Ljava/util/List;Ljava/util/function/Function;)Ljava/util/List;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: new com.oracle.truffle.js.runtime.util.IteratorUtil$ConvertList
dup
aload 0
aload 1
invokespecial com.oracle.truffle.js.runtime.util.IteratorUtil$ConvertList.<init>:(Ljava/util/List;Ljava/util/function/Function;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 source Ljava/util/List<TS;>;
0 1 1 converter Ljava/util/function/Function<TS;TT;>;
Signature: <S:Ljava/lang/Object;T:Ljava/lang/Object;>(Ljava/util/List<TS;>;Ljava/util/function/Function<TS;TT;>;)Ljava/util/List<TT;>;
MethodParameters:
Name Flags
source final
converter final
public static <T> java.lang.Iterable<T> concatIterables(java.lang.Iterable<T>, java.lang.Iterable<T>);
descriptor: (Ljava/lang/Iterable;Ljava/lang/Iterable;)Ljava/lang/Iterable;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: new com.oracle.truffle.js.runtime.util.IteratorUtil$1
dup
aload 0
aload 1
invokespecial com.oracle.truffle.js.runtime.util.IteratorUtil$1.<init>:(Ljava/lang/Iterable;Ljava/lang/Iterable;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 first Ljava/lang/Iterable<TT;>;
0 1 1 second Ljava/lang/Iterable<TT;>;
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Iterable<TT;>;Ljava/lang/Iterable<TT;>;)Ljava/lang/Iterable<TT;>;
MethodParameters:
Name Flags
first final
second final
public static <T> java.util.List<T> concatLists(java.util.List<T>, java.util.List<T>);
descriptor: (Ljava/util/List;Ljava/util/List;)Ljava/util/List;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=5, args_size=2
start local 0 start local 1 0: aload 0
invokeinterface java.util.List.size:()I
istore 2
start local 2 1: aload 1
invokeinterface java.util.List.size:()I
istore 3
start local 3 2: iload 2
iload 3
iadd
istore 4
start local 4 3: iload 4
ifge 5
4: invokestatic com.oracle.truffle.js.runtime.Errors.createRangeErrorInvalidArrayLength:()Lcom/oracle/truffle/js/runtime/JSException;
athrow
5: StackMap locals: int int int
StackMap stack:
iload 2
ifne 7
6: aload 1
areturn
7: StackMap locals:
StackMap stack:
iload 3
ifne 9
8: aload 0
areturn
9: StackMap locals:
StackMap stack:
new com.oracle.truffle.js.runtime.util.IteratorUtil$2
dup
iload 2
aload 0
iload 4
aload 1
invokespecial com.oracle.truffle.js.runtime.util.IteratorUtil$2.<init>:(ILjava/util/List;ILjava/util/List;)V
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 list0 Ljava/util/List<TT;>;
0 10 1 list1 Ljava/util/List<TT;>;
1 10 2 size0 I
2 10 3 size1 I
3 10 4 size I
Signature: <T:Ljava/lang/Object;>(Ljava/util/List<TT;>;Ljava/util/List<TT;>;)Ljava/util/List<TT;>;
MethodParameters:
Name Flags
list0 final
list1 final
public static <T> java.lang.Iterable<T> concatIterablesDistinct(java.lang.Iterable<T>, java.lang.Iterable<T>, java.util.function.BiPredicate<T, T>);
descriptor: (Ljava/lang/Iterable;Ljava/lang/Iterable;Ljava/util/function/BiPredicate;)Ljava/lang/Iterable;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
1: aload 0
areturn
2: StackMap locals:
StackMap stack:
new com.oracle.truffle.js.runtime.util.IteratorUtil$DistinctConcatIterable
dup
aload 0
aload 1
aload 2
invokespecial com.oracle.truffle.js.runtime.util.IteratorUtil$DistinctConcatIterable.<init>:(Ljava/lang/Iterable;Ljava/lang/Iterable;Ljava/util/function/BiPredicate;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 first Ljava/lang/Iterable<TT;>;
0 3 1 second Ljava/lang/Iterable<TT;>;
0 3 2 comparator Ljava/util/function/BiPredicate<TT;TT;>;
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Iterable<TT;>;Ljava/lang/Iterable<TT;>;Ljava/util/function/BiPredicate<TT;TT;>;)Ljava/lang/Iterable<TT;>;
MethodParameters:
Name Flags
first final
second final
comparator final
public static <T> java.lang.Iterable<T> filterIterable(java.lang.Iterable<T>, java.util.function.Predicate<T>);
descriptor: (Ljava/lang/Iterable;Ljava/util/function/Predicate;)Ljava/lang/Iterable;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokedynamic iterator(Ljava/lang/Iterable;Ljava/util/function/Predicate;)Ljava/lang/Iterable;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/util/Iterator;
com/oracle/truffle/js/runtime/util/IteratorUtil.lambda$0(Ljava/lang/Iterable;Ljava/util/function/Predicate;)Ljava/util/Iterator; (6)
()Ljava/util/Iterator;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 iterable Ljava/lang/Iterable<TT;>;
0 1 1 filter Ljava/util/function/Predicate<TT;>;
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Iterable<TT;>;Ljava/util/function/Predicate<TT;>;)Ljava/lang/Iterable<TT;>;
MethodParameters:
Name Flags
iterable final
filter final
public static <T> java.util.Iterator<T> filterIterator(java.util.Iterator<T>, java.util.function.Predicate<T>);
descriptor: (Ljava/util/Iterator;Ljava/util/function/Predicate;)Ljava/util/Iterator;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: new com.oracle.truffle.js.runtime.util.IteratorUtil$FilteredIterator
dup
aload 0
aload 1
invokespecial com.oracle.truffle.js.runtime.util.IteratorUtil$FilteredIterator.<init>:(Ljava/util/Iterator;Ljava/util/function/Predicate;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 iterator Ljava/util/Iterator<TT;>;
0 1 1 filter Ljava/util/function/Predicate<TT;>;
Signature: <T:Ljava/lang/Object;>(Ljava/util/Iterator<TT;>;Ljava/util/function/Predicate<TT;>;)Ljava/util/Iterator<TT;>;
MethodParameters:
Name Flags
iterator final
filter final
public static <T> java.util.Iterator<T> simpleArrayIterator(T[]);
descriptor: ([Ljava/lang/Object;)Ljava/util/Iterator;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new com.oracle.truffle.js.runtime.util.IteratorUtil$3
dup
aload 0
invokespecial com.oracle.truffle.js.runtime.util.IteratorUtil$3.<init>:([Ljava/lang/Object;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 array [Ljava/lang/Object;
Signature: <T:Ljava/lang/Object;>([TT;)Ljava/util/Iterator<TT;>;
MethodParameters:
Name Flags
array
public static <T> java.util.Iterator<T> simpleListIterator(java.util.List<T>);
descriptor: (Ljava/util/List;)Ljava/util/Iterator;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new com.oracle.truffle.js.runtime.util.IteratorUtil$4
dup
aload 0
invokespecial com.oracle.truffle.js.runtime.util.IteratorUtil$4.<init>:(Ljava/util/List;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 list Ljava/util/List<TT;>;
Signature: <T:Ljava/lang/Object;>(Ljava/util/List<TT;>;)Ljava/util/Iterator<TT;>;
MethodParameters:
Name Flags
list
public static java.util.Iterator<java.lang.Integer> rangeIterator(int);
descriptor: (I)Ljava/util/Iterator;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new com.oracle.truffle.js.runtime.util.IteratorUtil$RangeIterator
dup
iload 0
invokespecial com.oracle.truffle.js.runtime.util.IteratorUtil$RangeIterator.<init>:(I)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 length I
Signature: (I)Ljava/util/Iterator<Ljava/lang/Integer;>;
MethodParameters:
Name Flags
length
public static java.lang.Iterable<java.lang.Integer> rangeIterable(int);
descriptor: (I)Ljava/lang/Iterable;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iload 0
invokedynamic iterator(I)Ljava/lang/Iterable;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/util/Iterator;
com/oracle/truffle/js/runtime/util/IteratorUtil.lambda$1(I)Ljava/util/Iterator; (6)
()Ljava/util/Iterator;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 length I
Signature: (I)Ljava/lang/Iterable<Ljava/lang/Integer;>;
MethodParameters:
Name Flags
length
private static java.util.Iterator lambda$0(java.lang.Iterable, java.util.function.Predicate);
descriptor: (Ljava/lang/Iterable;Ljava/util/function/Predicate;)Ljava/util/Iterator;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
aload 1
invokestatic com.oracle.truffle.js.runtime.util.IteratorUtil.filterIterator:(Ljava/util/Iterator;Ljava/util/function/Predicate;)Ljava/util/Iterator;
areturn
LocalVariableTable:
Start End Slot Name Signature
private static java.util.Iterator lambda$1(int);
descriptor: (I)Ljava/util/Iterator;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: iload 0
invokestatic com.oracle.truffle.js.runtime.util.IteratorUtil.rangeIterator:(I)Ljava/util/Iterator;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "IteratorUtil.java"
NestMembers:
com.oracle.truffle.js.runtime.util.IteratorUtil$1 com.oracle.truffle.js.runtime.util.IteratorUtil$1$1 com.oracle.truffle.js.runtime.util.IteratorUtil$2 com.oracle.truffle.js.runtime.util.IteratorUtil$3 com.oracle.truffle.js.runtime.util.IteratorUtil$4 com.oracle.truffle.js.runtime.util.IteratorUtil$ConvertIterable com.oracle.truffle.js.runtime.util.IteratorUtil$ConvertIterator com.oracle.truffle.js.runtime.util.IteratorUtil$ConvertList com.oracle.truffle.js.runtime.util.IteratorUtil$DistinctConcatIterable com.oracle.truffle.js.runtime.util.IteratorUtil$DistinctConcatIterable$DistinctConcatIterator com.oracle.truffle.js.runtime.util.IteratorUtil$FilteredIterator com.oracle.truffle.js.runtime.util.IteratorUtil$RangeIterator
InnerClasses:
com.oracle.truffle.js.runtime.util.IteratorUtil$1
com.oracle.truffle.js.runtime.util.IteratorUtil$2
com.oracle.truffle.js.runtime.util.IteratorUtil$3
com.oracle.truffle.js.runtime.util.IteratorUtil$4
private final ConvertIterable = com.oracle.truffle.js.runtime.util.IteratorUtil$ConvertIterable of com.oracle.truffle.js.runtime.util.IteratorUtil
private final ConvertIterator = com.oracle.truffle.js.runtime.util.IteratorUtil$ConvertIterator of com.oracle.truffle.js.runtime.util.IteratorUtil
private final ConvertList = com.oracle.truffle.js.runtime.util.IteratorUtil$ConvertList of com.oracle.truffle.js.runtime.util.IteratorUtil
private final DistinctConcatIterable = com.oracle.truffle.js.runtime.util.IteratorUtil$DistinctConcatIterable of com.oracle.truffle.js.runtime.util.IteratorUtil
private final FilteredIterator = com.oracle.truffle.js.runtime.util.IteratorUtil$FilteredIterator of com.oracle.truffle.js.runtime.util.IteratorUtil
private final RangeIterator = com.oracle.truffle.js.runtime.util.IteratorUtil$RangeIterator of com.oracle.truffle.js.runtime.util.IteratorUtil
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles