Package dev.cel.runtime
Class DefaultMetadata
- java.lang.Object
-
- dev.cel.runtime.DefaultMetadata
-
- All Implemented Interfaces:
Metadata
@Immutable @Internal public final class DefaultMetadata extends java.lang.Object implements Metadata
Metadata implementation based onCheckedExpr.CEL Library Internals. Do Not Use.
-
-
Constructor Summary
Constructors Constructor Description DefaultMetadata(CelAbstractSyntaxTree ast)DefaultMetadata(CheckedExpr checkedExpr)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Constructor Detail
-
DefaultMetadata
public DefaultMetadata(CelAbstractSyntaxTree ast)
-
DefaultMetadata
@Deprecated public DefaultMetadata(CheckedExpr checkedExpr)
Deprecated.
-
-
Method Detail
-
getLocation
public java.lang.String getLocation()
Description copied from interface:MetadataReturns the location (like a filename) of the interpreted expression.- Specified by:
getLocationin interfaceMetadata
-
getPosition
public int getPosition(long exprId)
Description copied from interface:MetadataReturns the character position of the node in the source. This is a 0-based character offset.- Specified by:
getPositionin interfaceMetadata
-
-