Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
import java.util.Optional;

/** Internal implementation of CEL two variable comprehensions extensions. */
final class CelComprehensionsExtensions
public final class CelComprehensionsExtensions
implements CelCompilerLibrary, CelInternalRuntimeLibrary, CelExtensionLibrary.FeatureSet {

private static final String MAP_INSERT_FUNCTION = "cel.@mapInsert";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@
import java.util.Set;

/** Internal implementation of CEL lists extensions. */
final class CelListsExtensions
public final class CelListsExtensions
implements CelCompilerLibrary, CelInternalRuntimeLibrary, CelExtensionLibrary.FeatureSet {

/** Supported functions for Lists extension library. */
@SuppressWarnings({"unchecked"}) // Unchecked: Type-checker guarantees casting safety.
public enum Function {
// Note! Creating dependencies on the outer class may cause circular initialization issues.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
*/
@SuppressWarnings({"rawtypes", "unchecked"}) // Use of raw Comparables.
@Immutable
final class CelMathExtensions
public final class CelMathExtensions
implements CelCompilerLibrary, CelRuntimeLibrary, CelExtensionLibrary.FeatureSet {

private static final String MATH_NAMESPACE = "math";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@

/** Internal implementation of CEL proto extensions. */
@Immutable
final class CelProtoExtensions implements CelCompilerLibrary, CelExtensionLibrary.FeatureSet {
public final class CelProtoExtensions
implements CelCompilerLibrary, CelExtensionLibrary.FeatureSet {

private static final String PROTO_NAMESPACE = "proto";
private static final CelExpr ERROR = CelExpr.newBuilder().setConstant(Constants.ERROR).build();
Expand Down Expand Up @@ -148,4 +149,6 @@ private static boolean isTargetInNamespace(CelExpr target) {
return target.exprKind().getKind().equals(CelExpr.ExprKind.Kind.IDENT)
&& target.ident().name().equals(PROTO_NAMESPACE);
}

CelProtoExtensions() {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

/** Internal implementation of CEL regex extensions. */
@Immutable
final class CelRegexExtensions
public final class CelRegexExtensions
implements CelCompilerLibrary, CelRuntimeLibrary, CelExtensionLibrary.FeatureSet {

private static final String REGEX_REPLACE_FUNCTION = "regex.replace";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
* rewrite the AST into a map to achieve a O(1) lookup.
*/
@Immutable
final class CelSetsExtensions
public final class CelSetsExtensions
implements CelCompilerLibrary, CelRuntimeLibrary, CelExtensionLibrary.FeatureSet {

private static final String SET_CONTAINS_OVERLOAD_DOC =
Expand Down
Loading