@@ -41,10 +41,14 @@ LITE_RUNTIME_SOURCES = [
4141
4242# keep sorted
4343LITE_RUNTIME_IMPL_SOURCES = [
44- "LiteProgramImpl.java" ,
4544 "LiteRuntimeImpl.java" ,
4645]
4746
47+ # keep sorted
48+ LITE_PROGRAM_IMPL_SOURCES = [
49+ "LiteProgramImpl.java" ,
50+ ]
51+
4852# keep sorted
4953FUNCTION_BINDING_SOURCES = [
5054 "CelFunctionBinding.java" ,
@@ -833,7 +837,6 @@ java_library(
833837 ":function_resolver" ,
834838 ":interpretable" ,
835839 ":interpreter" ,
836- ":lite_runtime" ,
837840 ":proto_message_activation_factory" ,
838841 ":proto_message_runtime_equality" ,
839842 ":runtime_equality" ,
@@ -853,6 +856,7 @@ java_library(
853856 "//common/types:cel_types" ,
854857 "//common/values:cel_value_provider" ,
855858 "//common/values:proto_message_value_provider" ,
859+ "//runtime:program" ,
856860 "@maven//:com_google_code_findbugs_annotations" ,
857861 "@maven//:com_google_errorprone_error_prone_annotations" ,
858862 "@maven//:com_google_guava_guava" ,
@@ -869,12 +873,12 @@ java_library(
869873 deps = [
870874 ":evaluation_exception" ,
871875 ":function_binding" ,
872- ":function_resolver" ,
873876 "//:auto_value" ,
874877 "//common:cel_ast" ,
875878 "//common:options" ,
876879 "//common/annotations" ,
877880 "//common/values:cel_value_provider" ,
881+ "//runtime:program" ,
878882 "//runtime/standard:standard_function" ,
879883 "@maven//:com_google_code_findbugs_annotations" ,
880884 "@maven//:com_google_errorprone_error_prone_annotations" ,
@@ -888,14 +892,11 @@ java_library(
888892 tags = [
889893 ],
890894 deps = [
891- ":activation" ,
892895 ":cel_value_runtime_type_provider" ,
893896 ":dispatcher" ,
894- ":evaluation_exception" ,
895897 ":function_binding" ,
896- ":function_resolver" ,
897- ":interpretable" ,
898898 ":interpreter" ,
899+ ":lite_program_impl" ,
899900 ":lite_runtime" ,
900901 ":runtime_equality" ,
901902 ":runtime_helpers" ,
@@ -904,28 +905,54 @@ java_library(
904905 "//common:cel_ast" ,
905906 "//common:options" ,
906907 "//common/values:cel_value_provider" ,
908+ "//runtime:program" ,
907909 "//runtime/standard:standard_function" ,
908910 "@maven//:com_google_code_findbugs_annotations" ,
909- "@maven//:com_google_errorprone_error_prone_annotations" ,
910911 "@maven//:com_google_guava_guava" ,
911912 ],
912913)
913914
915+ java_library (
916+ name = "lite_program_impl" ,
917+ srcs = LITE_PROGRAM_IMPL_SOURCES ,
918+ deps = [
919+ ":activation" ,
920+ ":evaluation_exception" ,
921+ ":function_resolver" ,
922+ ":interpretable" ,
923+ ":program" ,
924+ "//:auto_value" ,
925+ "@maven//:com_google_errorprone_error_prone_annotations" ,
926+ ],
927+ )
928+
929+ cel_android_library (
930+ name = "lite_program_impl_android" ,
931+ srcs = LITE_PROGRAM_IMPL_SOURCES ,
932+ deps = [
933+ ":activation_android" ,
934+ ":evaluation_exception" ,
935+ ":function_resolver_android" ,
936+ ":interpretable_android" ,
937+ ":program_android" ,
938+ "//:auto_value" ,
939+ "@maven//:com_google_errorprone_error_prone_annotations" ,
940+ ],
941+ )
942+
914943cel_android_library (
915944 name = "lite_runtime_impl_android" ,
916945 srcs = LITE_RUNTIME_IMPL_SOURCES ,
917946 tags = [
918947 ],
919948 deps = [
920- ":activation_android" ,
921949 ":cel_value_runtime_type_provider_android" ,
922950 ":dispatcher_android" ,
923- ":evaluation_exception" ,
924951 ":function_binding_android" ,
925- ":function_resolver_android" ,
926- ":interpretable_android" ,
927952 ":interpreter_android" ,
953+ ":lite_program_impl_android" ,
928954 ":lite_runtime_android" ,
955+ ":program_android" ,
929956 ":runtime_equality_android" ,
930957 ":runtime_helpers_android" ,
931958 ":type_resolver_android" ,
@@ -1127,7 +1154,7 @@ cel_android_library(
11271154 deps = [
11281155 ":evaluation_exception" ,
11291156 ":function_binding_android" ,
1130- ":function_resolver_android " ,
1157+ ":program_android " ,
11311158 "//:auto_value" ,
11321159 "//common:cel_ast_android" ,
11331160 "//common:options" ,
@@ -1195,6 +1222,31 @@ cel_android_library(
11951222 ],
11961223)
11971224
1225+ java_library (
1226+ name = "program" ,
1227+ srcs = ["Program.java" ],
1228+ tags = [
1229+ ],
1230+ deps = [
1231+ ":evaluation_exception" ,
1232+ ":function_resolver" ,
1233+ "@maven//:com_google_errorprone_error_prone_annotations" ,
1234+ ],
1235+ )
1236+
1237+ cel_android_library (
1238+ name = "program_android" ,
1239+ srcs = ["Program.java" ],
1240+ tags = [
1241+ ],
1242+ deps = [
1243+ ":evaluation_exception" ,
1244+ ":function_resolver_android" ,
1245+ "//:auto_value" ,
1246+ "@maven//:com_google_errorprone_error_prone_annotations" ,
1247+ ],
1248+ )
1249+
11981250java_library (
11991251 name = "internal_function_binder" ,
12001252 srcs = ["InternalFunctionBinder.java" ],
0 commit comments