Package jadx.core.clsp
Class ClsSet
java.lang.Object
jadx.core.clsp.ClsSet
Classes list for import into classpath graph
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate ClspClass[]private static final Stringprivate static final Stringprivate static final Stringprivate static final ArgType[]private static final Stringprivate static final org.slf4j.Loggerprivate static final ArgType[]private final RootNodeprivate static final Stringprivate static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidintintprivate static ClspClassprivate static ClspClassprivate static ClspClassprivate static ClspClassSourceprivate List<ClspMethod> private voidload(InputStream input) voidvoidstatic ArgType[]private voidprocessMethodDetails(MethodNode mth, List<ClspMethod> methods) private ArgTypeprivate @Nullable ArgType[]private List<ClspMethod> readClsMethods(DataInputStream in, ClassInfo clsInfo) private static ClspClassSourceprivate ClspMethodreadMethod(DataInputStream in, ClassInfo clsInfo) private static Stringprivate static StringreadString(DataInputStream in, int len) private static intprivate voidsave(OutputStream output) voidvoidsetAndroidApiLevel(int androidApiLevel) private static voidwriteArgType(DataOutputStream out, ArgType argType, Map<String, ClspClass> names) private static voidwriteArgTypesArray(DataOutputStream out, @Nullable ArgType[] arr, Map<String, ClspClass> names) private static voidwriteArgTypesList(DataOutputStream out, List<ArgType> list, Map<String, ClspClass> names) private static voidwriteMethod(DataOutputStream out, ClspMethod method, Map<String, ClspClass> names) private static voidwriteString(DataOutputStream out, String name) private static voidwriteUnsignedByte(DataOutputStream out, int value)
-
Field Details
-
LOG
private static final org.slf4j.Logger LOG -
CLST_EXTENSION
- See Also:
-
CLST_FILENAME
- See Also:
-
CLST_PATH
- See Also:
-
JADX_CLS_SET_HEADER
- See Also:
-
VERSION
private static final int VERSION- See Also:
-
STRING_CHARSET
- See Also:
-
EMPTY_ARGTYPE_ARRAY
-
OBJECT_ARGTYPE_ARRAY
-
root
-
androidApiLevel
private int androidApiLevel -
classes
-
-
Constructor Details
-
ClsSet
-
-
Method Details
-
loadFromClstFile
- Throws:
IOExceptionDecodeException
-
loadFrom
-
getClspClassSource
-
getMethodsDetails
-
processMethodDetails
-
makeParentsArray
-
getCls
-
getCls
-
getCls
-
save
- Throws:
IOException
-
save
- Throws:
IOException
-
writeMethod
private static void writeMethod(DataOutputStream out, ClspMethod method, Map<String, ClspClass> names) throws IOException- Throws:
IOException
-
writeArgTypesList
private static void writeArgTypesList(DataOutputStream out, List<ArgType> list, Map<String, ClspClass> names) throws IOException- Throws:
IOException
-
writeArgTypesArray
private static void writeArgTypesArray(DataOutputStream out, @Nullable @Nullable ArgType[] arr, Map<String, ClspClass> names) throws IOException- Throws:
IOException
-
writeArgType
private static void writeArgType(DataOutputStream out, ArgType argType, Map<String, ClspClass> names) throws IOException- Throws:
IOException
-
load
- Throws:
IOExceptionDecodeException
-
readClsSource
private static ClspClassSource readClsSource(DataInputStream in) throws IOException, DecodeException - Throws:
IOExceptionDecodeException
-
readClsMethods
- Throws:
IOException
-
readMethod
- Throws:
IOException
-
readArgTypesList
- Throws:
IOException
-
readArgTypesArray
- Throws:
IOException
-
readArgType
- Throws:
IOException
-
writeString
- Throws:
IOException
-
readString
- Throws:
IOException
-
readString
- Throws:
IOException
-
writeUnsignedByte
- Throws:
IOException
-
readUnsignedByte
- Throws:
IOException
-
getClassesCount
public int getClassesCount() -
addToMap
-
getAndroidApiLevel
public int getAndroidApiLevel() -
setAndroidApiLevel
public void setAndroidApiLevel(int androidApiLevel)
-