Warning: This file is auto-generated by
mix ptc.gen_docsfrompriv/java_interop.exs. Manual edits will be overwritten. Editpriv/java_interop.exsinstead.
Curated LLM-compatibility target for java.lang.String methods.
See also: Function Reference | Namespace Coverage | Clojure Core Audit | Clojure String Audit | Clojure Set Audit | Clojure Walk Audit | Java Math Audit | Java Boolean Audit | Java Double Audit | Java Float Audit | Java Integer Audit | Java Long Audit | Java System Audit | Java LocalDate Audit | Java Instant Audit | Java Duration Audit | Java Period Audit | Java Date Audit
Summary
Coverage excludes not_relevant entries: supported / (supported + candidate + not_classified).
| Status | Count |
|---|---|
| Supported | 8 |
| Candidate | 5 |
| Not Relevant | 2 |
| Not Classified | 0 |
| Relevant Target | 13 |
| Coverage | 8/13 (61.5%) |
| Total | 15 |
Details
| Var | Status | Description | Notes |
|---|---|---|---|
.charAt | 🔲 candidate | Return character at index | Potentially useful, but PTC-Lisp must define how a Java UTF-16 char, including an isolated surrogate, is represented. |
.contains | ✅ supported | Substring containment | DIV-40: character literals are accepted as arguments (PTC-Lisp has no Character type). DIV-41: character-literal receivers behave as one-character strings. DIV-53: the bounded UTF-16 view rejects String inputs larger than 256,000 bytes. |
.endsWith | ✅ supported | Suffix test | DIV-40: character literals are accepted as arguments (PTC-Lisp has no Character type). DIV-41: character-literal receivers behave as one-character strings. DIV-53: the bounded UTF-16 view rejects String inputs larger than 256,000 bytes. |
.equalsIgnoreCase | 🔲 candidate | Case-insensitive string equality | Common Java idiom in generated code. |
.getBytes | ❌ not_relevant | Encode string to bytes | Byte arrays and charsets are outside the sandbox data model. |
.indexOf | ✅ supported | First substring index | BUG GAP-J05: integer character-code overloads are unsupported. Indexes use Java UTF-16 code units. DIV-41: character-literal receivers behave as one-character strings (PTC-Lisp has no Character type). DIV-53: the bounded UTF-16 view rejects String inputs larger than 256,000 bytes. |
.intern | ❌ not_relevant | Intern a Java string | JVM string pool operation; not meaningful on BEAM. |
.isEmpty | 🔲 candidate | Return true for empty string | empty? covers the common PTC-Lisp need. |
.lastIndexOf | ✅ supported | Last substring index | BUG GAP-J05: substring/from-index and integer character-code overloads are unsupported. Indexes use Java UTF-16 code units. DIV-41: character-literal receivers behave as one-character strings (PTC-Lisp has no Character type). DIV-53: the bounded UTF-16 view rejects String inputs larger than 256,000 bytes. |
.length | ✅ supported | String length | Returns Java UTF-16 code-unit length. DIV-41: character-literal receivers behave as one-character strings (PTC-Lisp has no Character type). DIV-53: the bounded UTF-16 view rejects String inputs larger than 256,000 bytes. |
.startsWith | ✅ supported | Prefix test | BUG GAP-J05: prefix/offset overload is unsupported. DIV-40: character literals are accepted as arguments (PTC-Lisp has no Character type). DIV-41: character-literal receivers behave as one-character strings. DIV-53: the bounded UTF-16 view rejects String inputs larger than 256,000 bytes. |
.substring | ✅ supported | Extract substring | Uses Java UTF-16 code-unit indexes. DIV-41: character-literal receivers behave as one-character strings. DIV-53: ranges containing an unpaired surrogate and inputs larger than 256,000 bytes produce invalid_java_string. |
.toLowerCase | 🔲 candidate | Lowercase string | Deferred until a deterministic locale and pinned Unicode-data contract are selected. |
.toUpperCase | 🔲 candidate | Uppercase string | Deferred until a deterministic locale and pinned Unicode-data contract are selected. |
.trim | ✅ supported | Remove leading and trailing code units from U+0000 through U+0020 | Uses Java String.trim semantics, which differ from clojure.string/trim. DIV-41: character-literal receivers behave as one-character strings. DIV-53: String inputs larger than 256,000 bytes produce invalid_java_string. |