类 ResourceTableOperation
java.lang.Object
io.github.amsonix.molt.internal.reschiper.operations.ResourceTableOperation
Utility class for operations on Android resource tables.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static voidcheckConfiguration(@NotNull com.android.aapt.Resources.Entry entry) Checks for duplicate configurations in an Entry.static @NotNull com.android.aapt.Resources.ConfigValuereplaceEntryPath(@NotNull com.android.aapt.Resources.ConfigValue configValue, String path) Replaces the entry path in a ConfigValue.static @NotNull com.android.aapt.Resources.EntryupdateEntryConfigValueList(@NotNull com.android.aapt.Resources.Entry entry, List<com.android.aapt.Resources.ConfigValue> configValueList) Updates the configuration values list for an Entry.static @NotNull com.android.aapt.Resources.EntryupdateEntryName(@NotNull com.android.aapt.Resources.Entry entry, String name) Updates the name of an Entry.
-
构造器详细资料
-
ResourceTableOperation
public ResourceTableOperation()
-
-
方法详细资料
-
replaceEntryPath
public static @NotNull com.android.aapt.Resources.ConfigValue replaceEntryPath(@NotNull com.android.aapt.Resources.ConfigValue configValue, String path) Replaces the entry path in a ConfigValue.- 参数:
configValue- The ConfigValue to update.path- The new path to set.- 返回:
- The updated ConfigValue.
-
updateEntryConfigValueList
public static @NotNull com.android.aapt.Resources.Entry updateEntryConfigValueList(@NotNull com.android.aapt.Resources.Entry entry, List<com.android.aapt.Resources.ConfigValue> configValueList) Updates the configuration values list for an Entry.- 参数:
entry- The Entry to update.configValueList- The new list of ConfigValues.- 返回:
- The updated Entry.
-
updateEntryName
public static @NotNull com.android.aapt.Resources.Entry updateEntryName(@NotNull com.android.aapt.Resources.Entry entry, String name) Updates the name of an Entry.- 参数:
entry- The Entry to update.name- The new name to set.- 返回:
- The updated Entry.
-
checkConfiguration
public static void checkConfiguration(@NotNull com.android.aapt.Resources.Entry entry) Checks for duplicate configurations in an Entry.- 参数:
entry- The Entry to check.- 抛出:
IllegalArgumentException- if duplicate configurations are found.
-