@@ -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,58 @@ 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+ tags = [
919+ ],
920+ deps = [
921+ ":activation" ,
922+ ":evaluation_exception" ,
923+ ":function_resolver" ,
924+ ":interpretable" ,
925+ ":program" ,
926+ "//:auto_value" ,
927+ "@maven//:com_google_errorprone_error_prone_annotations" ,
928+ ],
929+ )
930+
931+ cel_android_library (
932+ name = "lite_program_impl_android" ,
933+ srcs = LITE_PROGRAM_IMPL_SOURCES ,
934+ tags = [
935+ ],
936+ deps = [
937+ ":activation_android" ,
938+ ":evaluation_exception" ,
939+ ":function_resolver_android" ,
940+ ":interpretable_android" ,
941+ ":program_android" ,
942+ "//:auto_value" ,
943+ "@maven//:com_google_errorprone_error_prone_annotations" ,
944+ ],
945+ )
946+
914947cel_android_library (
915948 name = "lite_runtime_impl_android" ,
916949 srcs = LITE_RUNTIME_IMPL_SOURCES ,
917950 tags = [
918951 ],
919952 deps = [
920- ":activation_android" ,
921953 ":cel_value_runtime_type_provider_android" ,
922954 ":dispatcher_android" ,
923- ":evaluation_exception" ,
924955 ":function_binding_android" ,
925- ":function_resolver_android" ,
926- ":interpretable_android" ,
927956 ":interpreter_android" ,
957+ ":lite_program_impl_android" ,
928958 ":lite_runtime_android" ,
959+ ":program_android" ,
929960 ":runtime_equality_android" ,
930961 ":runtime_helpers_android" ,
931962 ":type_resolver_android" ,
@@ -1127,7 +1158,7 @@ cel_android_library(
11271158 deps = [
11281159 ":evaluation_exception" ,
11291160 ":function_binding_android" ,
1130- ":function_resolver_android " ,
1161+ ":program_android " ,
11311162 "//:auto_value" ,
11321163 "//common:cel_ast_android" ,
11331164 "//common:options" ,
@@ -1195,6 +1226,31 @@ cel_android_library(
11951226 ],
11961227)
11971228
1229+ java_library (
1230+ name = "program" ,
1231+ srcs = ["Program.java" ],
1232+ tags = [
1233+ ],
1234+ deps = [
1235+ ":evaluation_exception" ,
1236+ ":function_resolver" ,
1237+ "@maven//:com_google_errorprone_error_prone_annotations" ,
1238+ ],
1239+ )
1240+
1241+ cel_android_library (
1242+ name = "program_android" ,
1243+ srcs = ["Program.java" ],
1244+ tags = [
1245+ ],
1246+ deps = [
1247+ ":evaluation_exception" ,
1248+ ":function_resolver_android" ,
1249+ "//:auto_value" ,
1250+ "@maven//:com_google_errorprone_error_prone_annotations" ,
1251+ ],
1252+ )
1253+
11981254java_library (
11991255 name = "internal_function_binder" ,
12001256 srcs = ["InternalFunctionBinder.java" ],
0 commit comments