Class ClassInfo

java.lang.Object
jadx.core.dex.info.ClassInfo
All Implemented Interfaces:
Comparable<ClassInfo>

public final class ClassInfo extends Object implements Comparable<ClassInfo>
  • Field Details

    • type

      private final ArgType type
    • name

      private String name
    • pkg

      @Nullable("for inner classes") private @Nullable("for inner classes") String pkg
    • fullName

      private String fullName
    • parentClass

      @Nullable private @Nullable ClassInfo parentClass
    • alias

      @Nullable private @Nullable ClassAliasInfo alias
  • Constructor Details

    • ClassInfo

      private ClassInfo(RootNode root, ArgType type, boolean canBeInner)
  • Method Details

    • fromType

      public static ClassInfo fromType(RootNode root, ArgType type)
    • fromName

      public static ClassInfo fromName(RootNode root, String clsName)
    • fromNameWithoutCache

      public static ClassInfo fromNameWithoutCache(RootNode root, String fullClsName, boolean canBeInner)
    • checkClassType

      private static ArgType checkClassType(ArgType type)
    • changeShortName

      public void changeShortName(String aliasName)
    • changePkg

      public void changePkg(String aliasPkg)
    • changePkgAndName

      public void changePkgAndName(String aliasPkg, String aliasShortName)
    • fillAliasFullName

      private void fillAliasFullName(ClassAliasInfo alias)
    • getAliasPkg

      public String getAliasPkg()
    • getAliasShortName

      public String getAliasShortName()
    • getAliasFullName

      public String getAliasFullName()
    • hasAlias

      public boolean hasAlias()
    • hasAliasPkg

      public boolean hasAliasPkg()
    • removeAlias

      public void removeAlias()
    • splitAndApplyNames

      private void splitAndApplyNames(RootNode root, ArgType type, boolean canBeInner)
    • makeFullClsName

      private static String makeFullClsName(String pkg, String shortName, ClassInfo parentClass, boolean alias, boolean raw)
    • makeFullName

      private String makeFullName()
    • makeRawFullName

      public String makeRawFullName()
    • makeAliasFullName

      public String makeAliasFullName()
    • makeAliasRawFullName

      public String makeAliasRawFullName()
    • getAliasFullPath

      public String getAliasFullPath()
    • getFullName

      public String getFullName()
    • getShortName

      public String getShortName()
    • getPackage

      @NotNull public @NotNull String getPackage()
    • isDefaultPackage

      public boolean isDefaultPackage()
    • getRawName

      public String getRawName()
    • getAliasNameWithoutPackage

      public String getAliasNameWithoutPackage()
    • getParentClass

      @Nullable public @Nullable ClassInfo getParentClass()
      Return the outer class of the class represented by this ClassInfo
    • getTopParentClass

      @Nullable public @Nullable ClassInfo getTopParentClass()
      Return the top outer class of the class represented by this ClassInfo
    • isInner

      public boolean isInner()
    • notInner

      public void notInner(RootNode root)
    • convertToInner

      public void convertToInner(ClassNode parent)
    • updateNames

      public void updateNames(RootNode root)
    • getType

      public ArgType getType()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • compareTo

      public int compareTo(@NotNull @NotNull ClassInfo other)
      Specified by:
      compareTo in interface Comparable<ClassInfo>