Repository navigation
Commit 70db44a
Add the
`CelIp` extends `OpaqueValue` directly using immutable primitive fields for Java 8, ErrorProne `@Immutable` and `@CheckReturnValue`, and Android (`CelLiteRuntime`) compatibility without external networking dependencies. Parsing enforces strict `netip` and RFC 4291 rules (rejecting leading zeros in IPv4 octets, zone identifiers, and IPv4-mapped IPv6 addresses) and formats canonical strings per RFC 5952. Also register `net.IP` in `DefaultTypeProvider` so type identifiers resolve during evaluation.
PiperOrigin-RevId: 1024996980CelIp opaque value representation (net.IP) to support the CEL network extension library (cel.lib.ext.network) in Java with parity against cel-go and cel-spec.1 parent 85d6295 commit 70db44a
6 files changed
Lines changed: 638 additions & 0 deletions
File tree
- common/src/main/java/dev/cel/common/types
- extensions
- src
- main/java/dev/cel/extensions
- test/java/dev/cel/extensions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
53 | 57 | | |
54 | 58 | | |
55 | 59 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
599 | 599 | | |
600 | 600 | | |
601 | 601 | | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
602 | 628 | | |
603 | 629 | | |
604 | 630 | | |
| |||
0 commit comments