Skip to content

Commit

Permalink
Let methods from ObjcProviderApi throw UnsupportedOperationException(…
Browse files Browse the repository at this point in the history
…) - the API isn't used anymore.

PiperOrigin-RevId: 675907100
Change-Id: Id1eed1405862aaf90fffdd4184c95ae53af83155
  • Loading branch information
pzembrod authored and copybara-github committed Sep 18, 2024
1 parent 2c1a72a commit 538136e
Showing 1 changed file with 21 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,44 +38,58 @@ public interface ObjcProviderApi<FileApiT extends FileApi> extends StarlarkValue
doc =
"Non-propagated include search paths specified with '-I' on the command line. Also known "
+ "as header search paths (and distinct from <em>user</em> header search paths).")
Depset strictIncludeForStarlark();
default Depset strictIncludeForStarlark() {
throw new UnsupportedOperationException(); // just for docs
}

@StarlarkMethod(
name = "j2objc_library",
structField = true,
doc = "Static libraries that are built from J2ObjC-translated Java code.")
Depset /*<FileApiT>*/ j2objcLibrary();
default Depset /*<FileApiT>*/ j2objcLibrary() {
throw new UnsupportedOperationException(); // just for docs
}

@StarlarkMethod(
name = "module_map",
structField = true,
doc = "Clang module maps, used to enforce proper use of private header files.")
Depset /*<FileApiT>*/ moduleMap();
default Depset /*<FileApiT>*/ moduleMap() {
throw new UnsupportedOperationException(); // just for docs
}

@StarlarkMethod(
name = "direct_module_maps",
structField = true,
doc =
"Module map files from this target directly (no transitive module maps). "
+ "Used to enforce proper use of private header files and for Swift compilation.")
Sequence<FileApiT> directModuleMaps();
default Sequence<FileApiT> directModuleMaps() {
throw new UnsupportedOperationException(); // just for docs
}

@StarlarkMethod(name = "source", structField = true, doc = "All transitive source files.")
Depset /*<FileApiT>*/ sourceForStarlark();
default Depset /*<FileApiT>*/ sourceForStarlark() {
throw new UnsupportedOperationException(); // just for docs
}

@StarlarkMethod(
name = "direct_sources",
structField = true,
doc =
"All direct source files from this target (no transitive files), "
+ "including any headers in the 'srcs' attribute.")
Sequence<FileApiT> directSources();
default Sequence<FileApiT> directSources() {
throw new UnsupportedOperationException(); // just for docs
}

@StarlarkMethod(
name = "umbrella_header",
structField = true,
doc =
"Clang umbrella header. Public headers are #included in umbrella headers to be "
+ "compatible with J2ObjC segmented headers.")
Depset /*<FileApiT>*/ umbrellaHeader();
default Depset /*<FileApiT>*/ umbrellaHeader() {
throw new UnsupportedOperationException(); // just for docs
}
}

0 comments on commit 538136e

Please sign in to comment.