enhance translation

This commit is contained in:
beiwei30 committed 2018-10-29 21:55:47 +08:00
1 parent ee2cbb130b
commit f39e386d2e
1 file changed
+7 -14
+7 -14
View File
@@ -1,27 +1,24 @@
jad jad
=== ===
De-compile specified loaded classes. > De-compile the specified classes.
`jad` helps to *de-compile* the byte code in JVM to the source code to assist you to better understand the logic behind. `jad` helps to de-compile the byte code running in JVM to the source code to assist you to understand the logic behind better.
F.Y.I * The de-compiled code is syntax highlighted for better readability in Arthas console.
* the de-compiled code will be grammatically highlighted for readability in Arthas console; * It is possible that there's grammar error in the de-compiled code, but it should not affect your interpretation.
* there might be some trivial grammar errors but it won't affect the logic understanding.
### Options ### Options
|Name|Specification| |Name|Specification|
|---:|:---| |---:|:---|
|*class-pattern*|pattern for the class name| |*class-pattern*|pattern for the class name|
|[c:]|hashcode of the class loader that loaded the class| |`[c:]`|hashcode of the class loader that loads the class|
|[E]|turn on regex matching while the default is wildcard matching| |`[E]`|turn on regex match while the default is wildcard match|
### Usage ### Usage
When several class loaders loaded the same class: > If the target class is loaded by multiple classloaders, `jad` outputs the `hashcode` of the corresponding classloaders, then you can re-run `jad` and specify `-c <hashcode>` to de-compile the target class from the specified classloader.
1. `jad` to get the hashcode of the class loader;
2. `jad -c <hashcode>` to get the de-compiled class loaded by the specified class loader.
```java ```java
$ jad org.apache.log4j.Logger $ jad org.apache.log4j.Logger
@@ -156,7 +153,3 @@ private Map<String, Object> directMetrics(String ip, String[] metrics) {
Affect(row-cnt:1) cost in 1508 ms. Affect(row-cnt:1) cost in 1508 ms.
``` ```
F.Y.I
Inner class is not yet supported, you can just check the *outer* class to further check the inner class.