javars 0.1.14

Java as a fusevm frontend: lexer, parser, and compiler to fusevm::Chunk, run on the shared three-tier Cranelift JIT — no bespoke VM or JVM
Documentation
//! Generated by `scripts/GenJdkGenericStatics.java` from OpenJDK 64-Bit Server VM 21.0.13.0.2 — do not edit.
//!
//! Each entry is a public static JDK method that declares type parameters
//! and returns a parameterized type: its class's simple name, its name,
//! its parameter count, whether it is variable arity, and for each type
//! argument of its return type the method type parameter standing there
//! (`""` for anything else).

/// One method: class, name, parameter count, variable arity, return slots.
pub type Entry = (
    &'static str,
    &'static str,
    usize,
    bool,
    &'static [&'static str],
);

/// Every such method, sorted.
#[rustfmt::skip]
pub static JDK_GENERIC_STATICS: &[Entry] = &[
    ("Arrays", "asList", 1, true, &["T"]),
    ("Arrays", "spliterator", 1, false, &["T"]),
    ("Arrays", "spliterator", 3, false, &["T"]),
    ("Arrays", "stream", 1, false, &["T"]),
    ("Arrays", "stream", 3, false, &["T"]),
    ("BinaryOperator", "maxBy", 1, false, &["T"]),
    ("BinaryOperator", "minBy", 1, false, &["T"]),
    ("Collections", "asLifoQueue", 1, false, &["T"]),
    ("Collections", "checkedCollection", 2, false, &["E"]),
    ("Collections", "checkedList", 2, false, &["E"]),
    ("Collections", "checkedMap", 3, false, &["K", "V"]),
    ("Collections", "checkedNavigableMap", 3, false, &["K", "V"]),
    ("Collections", "checkedNavigableSet", 2, false, &["E"]),
    ("Collections", "checkedQueue", 2, false, &["E"]),
    ("Collections", "checkedSet", 2, false, &["E"]),
    ("Collections", "checkedSortedMap", 3, false, &["K", "V"]),
    ("Collections", "checkedSortedSet", 2, false, &["E"]),
    ("Collections", "emptyEnumeration", 0, false, &["T"]),
    ("Collections", "emptyIterator", 0, false, &["T"]),
    ("Collections", "emptyList", 0, false, &["T"]),
    ("Collections", "emptyListIterator", 0, false, &["T"]),
    ("Collections", "emptyMap", 0, false, &["K", "V"]),
    ("Collections", "emptyNavigableMap", 0, false, &["K", "V"]),
    ("Collections", "emptyNavigableSet", 0, false, &["E"]),
    ("Collections", "emptySet", 0, false, &["T"]),
    ("Collections", "emptySortedMap", 0, false, &["K", "V"]),
    ("Collections", "emptySortedSet", 0, false, &["E"]),
    ("Collections", "enumeration", 1, false, &["T"]),
    ("Collections", "list", 1, false, &["T"]),
    ("Collections", "nCopies", 2, false, &["T"]),
    ("Collections", "newSequencedSetFromMap", 1, false, &["E"]),
    ("Collections", "newSetFromMap", 1, false, &["E"]),
    ("Collections", "reverseOrder", 0, false, &["T"]),
    ("Collections", "reverseOrder", 1, false, &["T"]),
    ("Collections", "singleton", 1, false, &["T"]),
    ("Collections", "singletonList", 1, false, &["T"]),
    ("Collections", "singletonMap", 2, false, &["K", "V"]),
    ("Collections", "synchronizedCollection", 1, false, &["T"]),
    ("Collections", "synchronizedList", 1, false, &["T"]),
    ("Collections", "synchronizedMap", 1, false, &["K", "V"]),
    ("Collections", "synchronizedNavigableMap", 1, false, &["K", "V"]),
    ("Collections", "synchronizedNavigableSet", 1, false, &["T"]),
    ("Collections", "synchronizedSet", 1, false, &["T"]),
    ("Collections", "synchronizedSortedMap", 1, false, &["K", "V"]),
    ("Collections", "synchronizedSortedSet", 1, false, &["T"]),
    ("Collections", "unmodifiableCollection", 1, false, &["T"]),
    ("Collections", "unmodifiableList", 1, false, &["T"]),
    ("Collections", "unmodifiableMap", 1, false, &["K", "V"]),
    ("Collections", "unmodifiableNavigableMap", 1, false, &["K", "V"]),
    ("Collections", "unmodifiableNavigableSet", 1, false, &["T"]),
    ("Collections", "unmodifiableSequencedCollection", 1, false, &["T"]),
    ("Collections", "unmodifiableSequencedMap", 1, false, &["K", "V"]),
    ("Collections", "unmodifiableSequencedSet", 1, false, &["T"]),
    ("Collections", "unmodifiableSet", 1, false, &["T"]),
    ("Collections", "unmodifiableSortedMap", 1, false, &["K", "V"]),
    ("Collections", "unmodifiableSortedSet", 1, false, &["T"]),
    ("Collector", "of", 4, true, &["T", "R", "R"]),
    ("Collector", "of", 5, true, &["T", "A", "R"]),
    ("Collectors", "averagingDouble", 1, false, &["T", "", ""]),
    ("Collectors", "averagingInt", 1, false, &["T", "", ""]),
    ("Collectors", "averagingLong", 1, false, &["T", "", ""]),
    ("Collectors", "collectingAndThen", 2, false, &["T", "A", "RR"]),
    ("Collectors", "counting", 0, false, &["T", "", ""]),
    ("Collectors", "filtering", 2, false, &["T", "", "R"]),
    ("Collectors", "flatMapping", 2, false, &["T", "", "R"]),
    ("Collectors", "groupingBy", 1, false, &["T", "", ""]),
    ("Collectors", "groupingBy", 2, false, &["T", "", ""]),
    ("Collectors", "groupingBy", 3, false, &["T", "", "M"]),
    ("Collectors", "groupingByConcurrent", 1, false, &["T", "", ""]),
    ("Collectors", "groupingByConcurrent", 2, false, &["T", "", ""]),
    ("Collectors", "groupingByConcurrent", 3, false, &["T", "", "M"]),
    ("Collectors", "mapping", 2, false, &["T", "", "R"]),
    ("Collectors", "maxBy", 1, false, &["T", "", ""]),
    ("Collectors", "minBy", 1, false, &["T", "", ""]),
    ("Collectors", "partitioningBy", 1, false, &["T", "", ""]),
    ("Collectors", "partitioningBy", 2, false, &["T", "", ""]),
    ("Collectors", "reducing", 1, false, &["T", "", ""]),
    ("Collectors", "reducing", 2, false, &["T", "", "T"]),
    ("Collectors", "reducing", 3, false, &["T", "", "U"]),
    ("Collectors", "summarizingDouble", 1, false, &["T", "", ""]),
    ("Collectors", "summarizingInt", 1, false, &["T", "", ""]),
    ("Collectors", "summarizingLong", 1, false, &["T", "", ""]),
    ("Collectors", "summingDouble", 1, false, &["T", "", ""]),
    ("Collectors", "summingInt", 1, false, &["T", "", ""]),
    ("Collectors", "summingLong", 1, false, &["T", "", ""]),
    ("Collectors", "teeing", 3, false, &["T", "", "R"]),
    ("Collectors", "toCollection", 1, false, &["T", "", "C"]),
    ("Collectors", "toConcurrentMap", 2, false, &["T", "", ""]),
    ("Collectors", "toConcurrentMap", 3, false, &["T", "", ""]),
    ("Collectors", "toConcurrentMap", 4, false, &["T", "", "M"]),
    ("Collectors", "toList", 0, false, &["T", "", ""]),
    ("Collectors", "toMap", 2, false, &["T", "", ""]),
    ("Collectors", "toMap", 3, false, &["T", "", ""]),
    ("Collectors", "toMap", 4, false, &["T", "", "M"]),
    ("Collectors", "toSet", 0, false, &["T", "", ""]),
    ("Collectors", "toUnmodifiableList", 0, false, &["T", "", ""]),
    ("Collectors", "toUnmodifiableMap", 2, false, &["T", "", ""]),
    ("Collectors", "toUnmodifiableMap", 3, false, &["T", "", ""]),
    ("Collectors", "toUnmodifiableSet", 0, false, &["T", "", ""]),
    ("Comparator", "comparing", 1, false, &["T"]),
    ("Comparator", "comparing", 2, false, &["T"]),
    ("Comparator", "comparingDouble", 1, false, &["T"]),
    ("Comparator", "comparingInt", 1, false, &["T"]),
    ("Comparator", "comparingLong", 1, false, &["T"]),
    ("Comparator", "naturalOrder", 0, false, &["T"]),
    ("Comparator", "nullsFirst", 1, false, &["T"]),
    ("Comparator", "nullsLast", 1, false, &["T"]),
    ("Comparator", "reverseOrder", 0, false, &["T"]),
    ("EnumSet", "allOf", 1, false, &["E"]),
    ("EnumSet", "complementOf", 1, false, &["E"]),
    ("EnumSet", "copyOf", 1, false, &["E"]),
    ("EnumSet", "noneOf", 1, false, &["E"]),
    ("EnumSet", "of", 1, false, &["E"]),
    ("EnumSet", "of", 2, false, &["E"]),
    ("EnumSet", "of", 2, true, &["E"]),
    ("EnumSet", "of", 3, false, &["E"]),
    ("EnumSet", "of", 4, false, &["E"]),
    ("EnumSet", "of", 5, false, &["E"]),
    ("EnumSet", "range", 2, false, &["E"]),
    ("Function", "identity", 0, false, &["T", "T"]),
    ("HashMap", "newHashMap", 1, false, &["K", "V"]),
    ("HashSet", "newHashSet", 1, false, &["T"]),
    ("LinkedHashMap", "newLinkedHashMap", 1, false, &["K", "V"]),
    ("LinkedHashSet", "newLinkedHashSet", 1, false, &["T"]),
    ("List", "copyOf", 1, false, &["E"]),
    ("List", "of", 0, false, &["E"]),
    ("List", "of", 1, false, &["E"]),
    ("List", "of", 1, true, &["E"]),
    ("List", "of", 10, false, &["E"]),
    ("List", "of", 2, false, &["E"]),
    ("List", "of", 3, false, &["E"]),
    ("List", "of", 4, false, &["E"]),
    ("List", "of", 5, false, &["E"]),
    ("List", "of", 6, false, &["E"]),
    ("List", "of", 7, false, &["E"]),
    ("List", "of", 8, false, &["E"]),
    ("List", "of", 9, false, &["E"]),
    ("Map", "copyOf", 1, false, &["K", "V"]),
    ("Map", "entry", 2, false, &["K", "V"]),
    ("Map", "of", 0, false, &["K", "V"]),
    ("Map", "of", 10, false, &["K", "V"]),
    ("Map", "of", 12, false, &["K", "V"]),
    ("Map", "of", 14, false, &["K", "V"]),
    ("Map", "of", 16, false, &["K", "V"]),
    ("Map", "of", 18, false, &["K", "V"]),
    ("Map", "of", 2, false, &["K", "V"]),
    ("Map", "of", 20, false, &["K", "V"]),
    ("Map", "of", 4, false, &["K", "V"]),
    ("Map", "of", 6, false, &["K", "V"]),
    ("Map", "of", 8, false, &["K", "V"]),
    ("Map", "ofEntries", 1, true, &["K", "V"]),
    ("Optional", "empty", 0, false, &["T"]),
    ("Optional", "of", 1, false, &["T"]),
    ("Optional", "ofNullable", 1, false, &["T"]),
    ("Predicate", "isEqual", 1, false, &["T"]),
    ("Predicate", "not", 1, false, &["T"]),
    ("ScopedValue", "newInstance", 0, false, &["T"]),
    ("ServiceLoader", "load", 1, false, &["S"]),
    ("ServiceLoader", "load", 2, false, &["S"]),
    ("ServiceLoader", "loadInstalled", 1, false, &["S"]),
    ("Set", "copyOf", 1, false, &["E"]),
    ("Set", "of", 0, false, &["E"]),
    ("Set", "of", 1, false, &["E"]),
    ("Set", "of", 1, true, &["E"]),
    ("Set", "of", 10, false, &["E"]),
    ("Set", "of", 2, false, &["E"]),
    ("Set", "of", 3, false, &["E"]),
    ("Set", "of", 4, false, &["E"]),
    ("Set", "of", 5, false, &["E"]),
    ("Set", "of", 6, false, &["E"]),
    ("Set", "of", 7, false, &["E"]),
    ("Set", "of", 8, false, &["E"]),
    ("Set", "of", 9, false, &["E"]),
    ("Spliterators", "emptySpliterator", 0, false, &["T"]),
    ("Spliterators", "iterator", 1, false, &["T"]),
    ("Spliterators", "spliterator", 2, false, &["T"]),
    ("Spliterators", "spliterator", 3, false, &["T"]),
    ("Spliterators", "spliterator", 4, false, &["T"]),
    ("Spliterators", "spliteratorUnknownSize", 2, false, &["T"]),
    ("Stream", "builder", 0, false, &["T"]),
    ("Stream", "concat", 2, false, &["T"]),
    ("Stream", "empty", 0, false, &["T"]),
    ("Stream", "generate", 1, false, &["T"]),
    ("Stream", "iterate", 2, false, &["T"]),
    ("Stream", "iterate", 3, false, &["T"]),
    ("Stream", "of", 1, false, &["T"]),
    ("Stream", "of", 1, true, &["T"]),
    ("Stream", "ofNullable", 1, false, &["T"]),
    ("StreamSupport", "stream", 2, false, &["T"]),
    ("StreamSupport", "stream", 3, false, &["T"]),
    ("ThreadLocal", "withInitial", 1, false, &["S"]),
    ("UnaryOperator", "identity", 0, false, &["T"]),
    ("WeakHashMap", "newWeakHashMap", 1, false, &["K", "V"]),
];