Search in sources :

Example 6 with JavaField

use of jadx.api.JavaField in project jadx by skylot.

the class CodeLinesInfo method addClass.

private void addClass(JavaClass cls, boolean includeFields) {
    map.put(cls.getDecompiledLine(), cls);
    for (JavaClass innerCls : cls.getInnerClasses()) {
        map.put(innerCls.getDecompiledLine(), innerCls);
        addClass(innerCls, includeFields);
    }
    for (JavaMethod mth : cls.getMethods()) {
        map.put(mth.getDecompiledLine(), mth);
    }
    if (includeFields) {
        for (JavaField field : cls.getFields()) {
            map.put(field.getDecompiledLine(), field);
        }
    }
}
Also used : JavaField(jadx.api.JavaField) JavaClass(jadx.api.JavaClass) JavaMethod(jadx.api.JavaMethod)

Aggregations

JavaField (jadx.api.JavaField)6 JavaClass (jadx.api.JavaClass)5 JavaMethod (jadx.api.JavaMethod)5 JavaVariable (jadx.api.JavaVariable)1 IJavaNodeRef (jadx.api.data.IJavaNodeRef)1 MethodNode (jadx.core.dex.nodes.MethodNode)1 JadxRuntimeException (jadx.core.utils.exceptions.JadxRuntimeException)1 JClass (jadx.gui.treemodel.JClass)1 JField (jadx.gui.treemodel.JField)1 JMethod (jadx.gui.treemodel.JMethod)1 JNode (jadx.gui.treemodel.JNode)1 JVariable (jadx.gui.treemodel.JVariable)1 JNodeCache (jadx.gui.utils.JNodeCache)1 Nullable (org.jetbrains.annotations.Nullable)1