类 ResourceTableOperation

java.lang.Object
io.github.amsonix.molt.internal.reschiper.operations.ResourceTableOperation

public class ResourceTableOperation extends Object
Utility class for operations on Android resource tables.
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    static void
    checkConfiguration(@NotNull com.android.aapt.Resources.Entry entry)
    Checks for duplicate configurations in an Entry.
    static @NotNull com.android.aapt.Resources.ConfigValue
    replaceEntryPath(@NotNull com.android.aapt.Resources.ConfigValue configValue, String path)
    Replaces the entry path in a ConfigValue.
    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.
    static @NotNull com.android.aapt.Resources.Entry
    updateEntryName(@NotNull com.android.aapt.Resources.Entry entry, String name)
    Updates the name of an Entry.

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • 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.