Package dev.cel.common.internal
Class CelCodePointArray
- java.lang.Object
-
- dev.cel.common.internal.CelCodePointArray
-
- Direct Known Subclasses:
BasicCodePointArray
,Latin1CodePointArray
,SupplementalCodePointArray
@Immutable @Internal public abstract class CelCodePointArray extends java.lang.Object
Represents an in-memory read-only contiguous source of Unicode code points.CEL Library Internals. Do Not Use.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static CelCodePointArray
fromString(java.lang.String text)
abstract int
get(int index)
Get the code point at the given index.boolean
isEmpty()
Returns true if empty, false otherwise.int
length()
abstract com.google.common.collect.ImmutableList<java.lang.Integer>
lineOffsets()
Returns the line offsets.abstract int
size()
Returns the number of code points.abstract CelCodePointArray
slice(int i, int j)
Returns a newCelCodePointArray
that is a subview of this between [i, j).abstract java.lang.String
toString()
-
-
-
Method Detail
-
slice
public abstract CelCodePointArray slice(int i, int j)
Returns a newCelCodePointArray
that is a subview of this between [i, j).
-
get
public abstract int get(int index)
Get the code point at the given index.
-
size
public abstract int size()
Returns the number of code points.
-
lineOffsets
public abstract com.google.common.collect.ImmutableList<java.lang.Integer> lineOffsets()
Returns the line offsets.
-
length
public final int length()
-
isEmpty
public boolean isEmpty()
Returns true if empty, false otherwise.
-
toString
public abstract java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
fromString
public static CelCodePointArray fromString(java.lang.String text)
-
-