Package dev.cel.runtime
Interface Metadata
-
- All Known Implementing Classes:
DefaultMetadata
@Immutable @Internal public interface MetadataAn interface which provides metadata for syntax nodes.CEL Library Internals. Do Not Use.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetLocation()Returns the location (like a filename) of the interpreted expression.intgetPosition(long exprId)Returns the character position of the node in the source.booleanhasPosition(long exprId)Checks if a source position recorded for the provided expression id.
-
-
-
Method Detail
-
getLocation
java.lang.String getLocation()
Returns the location (like a filename) of the interpreted expression.
-
getPosition
int getPosition(long exprId)
Returns the character position of the node in the source. This is a 0-based character offset.
-
hasPosition
boolean hasPosition(long exprId)
Checks if a source position recorded for the provided expression id.
-
-