Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ql04210214
jadx
提交
039f6eeb
J
jadx
项目概览
ql04210214
/
jadx
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
J
jadx
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
039f6eeb
编写于
3月 25, 2014
作者:
S
Skylot
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
core: rename depth traversal class
上级
8a464e82
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
9 addition
and
9 deletion
+9
-9
jadx-core/src/main/java/jadx/core/ProcessClass.java
jadx-core/src/main/java/jadx/core/ProcessClass.java
+2
-2
jadx-core/src/main/java/jadx/core/codegen/MethodGen.java
jadx-core/src/main/java/jadx/core/codegen/MethodGen.java
+2
-2
jadx-core/src/main/java/jadx/core/dex/visitors/DepthTraversal.java
.../src/main/java/jadx/core/dex/visitors/DepthTraversal.java
+1
-1
jadx-core/src/test/java/jadx/api/InternalJadxTest.java
jadx-core/src/test/java/jadx/api/InternalJadxTest.java
+2
-2
jadx-core/src/test/java/jadx/tests/internal/TestVariablesDefinitions.java
...st/java/jadx/tests/internal/TestVariablesDefinitions.java
+2
-2
未找到文件。
jadx-core/src/main/java/jadx/core/ProcessClass.java
浏览文件 @
039f6eeb
package
jadx.core
;
package
jadx.core
;
import
jadx.core.dex.nodes.ClassNode
;
import
jadx.core.dex.nodes.ClassNode
;
import
jadx.core.dex.visitors.DepthTravers
er
;
import
jadx.core.dex.visitors.DepthTravers
al
;
import
jadx.core.dex.visitors.IDexTreeVisitor
;
import
jadx.core.dex.visitors.IDexTreeVisitor
;
import
jadx.core.utils.exceptions.DecodeException
;
import
jadx.core.utils.exceptions.DecodeException
;
...
@@ -20,7 +20,7 @@ public final class ProcessClass {
...
@@ -20,7 +20,7 @@ public final class ProcessClass {
try
{
try
{
cls
.
load
();
cls
.
load
();
for
(
IDexTreeVisitor
visitor
:
passes
)
{
for
(
IDexTreeVisitor
visitor
:
passes
)
{
DepthTravers
er
.
visit
(
visitor
,
cls
);
DepthTravers
al
.
visit
(
visitor
,
cls
);
}
}
}
catch
(
DecodeException
e
)
{
}
catch
(
DecodeException
e
)
{
LOG
.
error
(
"Decode exception: "
+
cls
,
e
);
LOG
.
error
(
"Decode exception: "
+
cls
,
e
);
...
...
jadx-core/src/main/java/jadx/core/codegen/MethodGen.java
浏览文件 @
039f6eeb
...
@@ -14,7 +14,7 @@ import jadx.core.dex.nodes.InsnNode;
...
@@ -14,7 +14,7 @@ import jadx.core.dex.nodes.InsnNode;
import
jadx.core.dex.nodes.MethodNode
;
import
jadx.core.dex.nodes.MethodNode
;
import
jadx.core.dex.regions.Region
;
import
jadx.core.dex.regions.Region
;
import
jadx.core.dex.trycatch.CatchAttr
;
import
jadx.core.dex.trycatch.CatchAttr
;
import
jadx.core.dex.visitors.DepthTravers
er
;
import
jadx.core.dex.visitors.DepthTravers
al
;
import
jadx.core.dex.visitors.FallbackModeVisitor
;
import
jadx.core.dex.visitors.FallbackModeVisitor
;
import
jadx.core.utils.ErrorsCounter
;
import
jadx.core.utils.ErrorsCounter
;
import
jadx.core.utils.InsnUtils
;
import
jadx.core.utils.InsnUtils
;
...
@@ -274,7 +274,7 @@ public class MethodGen {
...
@@ -274,7 +274,7 @@ public class MethodGen {
// load original instructions
// load original instructions
try
{
try
{
mth
.
load
();
mth
.
load
();
DepthTravers
er
.
visit
(
new
FallbackModeVisitor
(),
mth
);
DepthTravers
al
.
visit
(
new
FallbackModeVisitor
(),
mth
);
}
catch
(
DecodeException
e
)
{
}
catch
(
DecodeException
e
)
{
LOG
.
error
(
"Error reload instructions in fallback mode:"
,
e
);
LOG
.
error
(
"Error reload instructions in fallback mode:"
,
e
);
code
.
startLine
(
"// Can't loadFile method instructions: "
+
e
.
getMessage
());
code
.
startLine
(
"// Can't loadFile method instructions: "
+
e
.
getMessage
());
...
...
jadx-core/src/main/java/jadx/core/dex/visitors/DepthTravers
er
.java
→
jadx-core/src/main/java/jadx/core/dex/visitors/DepthTravers
al
.java
浏览文件 @
039f6eeb
...
@@ -4,7 +4,7 @@ import jadx.core.dex.nodes.ClassNode;
...
@@ -4,7 +4,7 @@ import jadx.core.dex.nodes.ClassNode;
import
jadx.core.dex.nodes.MethodNode
;
import
jadx.core.dex.nodes.MethodNode
;
import
jadx.core.utils.ErrorsCounter
;
import
jadx.core.utils.ErrorsCounter
;
public
class
DepthTravers
er
{
public
class
DepthTravers
al
{
public
static
void
visit
(
IDexTreeVisitor
visitor
,
ClassNode
cls
)
{
public
static
void
visit
(
IDexTreeVisitor
visitor
,
ClassNode
cls
)
{
try
{
try
{
...
...
jadx-core/src/test/java/jadx/api/InternalJadxTest.java
浏览文件 @
039f6eeb
...
@@ -3,7 +3,7 @@ package jadx.api;
...
@@ -3,7 +3,7 @@ package jadx.api;
import
jadx.core.Jadx
;
import
jadx.core.Jadx
;
import
jadx.core.dex.nodes.ClassNode
;
import
jadx.core.dex.nodes.ClassNode
;
import
jadx.core.dex.nodes.MethodNode
;
import
jadx.core.dex.nodes.MethodNode
;
import
jadx.core.dex.visitors.DepthTravers
er
;
import
jadx.core.dex.visitors.DepthTravers
al
;
import
jadx.core.dex.visitors.IDexTreeVisitor
;
import
jadx.core.dex.visitors.IDexTreeVisitor
;
import
java.io.BufferedInputStream
;
import
java.io.BufferedInputStream
;
...
@@ -66,7 +66,7 @@ public abstract class InternalJadxTest extends TestUtils {
...
@@ -66,7 +66,7 @@ public abstract class InternalJadxTest extends TestUtils {
}
}
},
new
File
(
outDir
));
},
new
File
(
outDir
));
for
(
IDexTreeVisitor
visitor
:
passes
)
{
for
(
IDexTreeVisitor
visitor
:
passes
)
{
DepthTravers
er
.
visit
(
visitor
,
cls
);
DepthTravers
al
.
visit
(
visitor
,
cls
);
}
}
assertThat
(
cls
.
getCode
().
toString
(),
not
(
containsString
(
"inconsistent"
)));
assertThat
(
cls
.
getCode
().
toString
(),
not
(
containsString
(
"inconsistent"
)));
return
cls
;
return
cls
;
...
...
jadx-core/src/test/java/jadx/tests/internal/TestVariablesDefinitions.java
浏览文件 @
039f6eeb
...
@@ -2,7 +2,7 @@ package jadx.tests.internal;
...
@@ -2,7 +2,7 @@ package jadx.tests.internal;
import
jadx.api.InternalJadxTest
;
import
jadx.api.InternalJadxTest
;
import
jadx.core.dex.nodes.ClassNode
;
import
jadx.core.dex.nodes.ClassNode
;
import
jadx.core.dex.visitors.DepthTravers
er
;
import
jadx.core.dex.visitors.DepthTravers
al
;
import
jadx.core.dex.visitors.IDexTreeVisitor
;
import
jadx.core.dex.visitors.IDexTreeVisitor
;
import
jadx.core.utils.exceptions.DecodeException
;
import
jadx.core.utils.exceptions.DecodeException
;
...
@@ -28,7 +28,7 @@ public class TestVariablesDefinitions extends InternalJadxTest {
...
@@ -28,7 +28,7 @@ public class TestVariablesDefinitions extends InternalJadxTest {
cls
.
load
();
cls
.
load
();
Iterator
<
IDexTreeVisitor
>
iterator
=
passes
.
iterator
();
Iterator
<
IDexTreeVisitor
>
iterator
=
passes
.
iterator
();
while
(
iterator
.
hasNext
())
{
while
(
iterator
.
hasNext
())
{
DepthTravers
er
.
visit
(
iterator
.
next
(),
cls
);
DepthTravers
al
.
visit
(
iterator
.
next
(),
cls
);
}
}
}
catch
(
DecodeException
e
)
{
}
catch
(
DecodeException
e
)
{
LOG
.
error
(
"Decode exception: "
+
cls
,
e
);
LOG
.
error
(
"Decode exception: "
+
cls
,
e
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录