forked from pshirshov/idea-bytecode-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
268 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
cd ./shade_asm | ||
call mvnw install | ||
call mvnw clean install | ||
cd .. | ||
set JAVA_HOME=C:\jdk-17\ | ||
call gradlew clean buildPlugin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#Sat Sep 21 06:16:57 CST 2024 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.1-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/main/java/com/github/pshirshov/conversion/DisassembleStrategy.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,24 @@ | ||
package com.github.pshirshov.conversion; | ||
|
||
import com.intellij.openapi.fileTypes.FileType; | ||
import lombok.Getter; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
public interface DisassembleStrategy { | ||
|
||
@NotNull | ||
String getName(); | ||
|
||
@NotNull | ||
Assembler getAssembler(); | ||
|
||
@NotNull | ||
Disassembler getDisassembler(); | ||
|
||
@NotNull | ||
String getFileNameSuffix(); | ||
|
||
@NotNull | ||
FileType getFileType(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
src/main/java/com/github/pshirshov/conversion/impl/asm/AsmFileType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package com.github.pshirshov.conversion.impl.asm; | ||
|
||
import com.github.pshirshov.conversion.DisassembleStrategyEnum; | ||
import com.intellij.ide.highlighter.JavaClassFileType; | ||
import com.intellij.openapi.fileTypes.FileType; | ||
import org.jetbrains.annotations.Nls; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
import javax.swing.Icon; | ||
|
||
|
||
public final class AsmFileType implements FileType { | ||
public static final AsmFileType INSTANCE = new AsmFileType(); | ||
|
||
private AsmFileType() { | ||
} | ||
|
||
@Override | ||
public @NotNull String getName() { | ||
return DisassembleStrategyEnum.ASM.getName(); | ||
} | ||
|
||
@Override | ||
public @NotNull String getDescription() { | ||
return DisassembleStrategyEnum.ASM.getName(); | ||
} | ||
|
||
@Override | ||
public @Nls @NotNull String getDisplayName() { | ||
return DisassembleStrategyEnum.ASM.getName(); | ||
} | ||
|
||
@Override | ||
public @NotNull String getDefaultExtension() { | ||
return DisassembleStrategyEnum.ASM.getFileNameSuffix(); | ||
} | ||
|
||
@Override | ||
public Icon getIcon() { | ||
return JavaClassFileType.INSTANCE.getIcon(); | ||
} | ||
|
||
@Override | ||
public boolean isBinary() { | ||
return true; | ||
} | ||
} |
47 changes: 47 additions & 0 deletions
47
src/main/java/com/github/pshirshov/conversion/impl/asm_xml/AsmXmlFileType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package com.github.pshirshov.conversion.impl.asm_xml; | ||
|
||
import com.github.pshirshov.conversion.DisassembleStrategyEnum; | ||
import com.intellij.ide.highlighter.JavaClassFileType; | ||
import com.intellij.openapi.fileTypes.FileType; | ||
import org.jetbrains.annotations.Nls; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
import javax.swing.Icon; | ||
|
||
|
||
public final class AsmXmlFileType implements FileType { | ||
public static final AsmXmlFileType INSTANCE = new AsmXmlFileType(); | ||
|
||
private AsmXmlFileType() { | ||
} | ||
|
||
@Override | ||
public @NotNull String getName() { | ||
return DisassembleStrategyEnum.ASM_XML.getName(); | ||
} | ||
|
||
@Override | ||
public @NotNull String getDescription() { | ||
return DisassembleStrategyEnum.ASM_XML.getName(); | ||
} | ||
|
||
@Override | ||
public @Nls @NotNull String getDisplayName() { | ||
return DisassembleStrategyEnum.ASM_XML.getName(); | ||
} | ||
|
||
@Override | ||
public @NotNull String getDefaultExtension() { | ||
return DisassembleStrategyEnum.ASM_XML.getFileNameSuffix(); | ||
} | ||
|
||
@Override | ||
public Icon getIcon() { | ||
return JavaClassFileType.INSTANCE.getIcon(); | ||
} | ||
|
||
@Override | ||
public boolean isBinary() { | ||
return true; | ||
} | ||
} |
47 changes: 47 additions & 0 deletions
47
src/main/java/com/github/pshirshov/conversion/impl/jasmin/JasminFileType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package com.github.pshirshov.conversion.impl.jasmin; | ||
|
||
import com.github.pshirshov.conversion.DisassembleStrategyEnum; | ||
import com.intellij.ide.highlighter.JavaClassFileType; | ||
import com.intellij.openapi.fileTypes.FileType; | ||
import org.jetbrains.annotations.Nls; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
import javax.swing.Icon; | ||
|
||
|
||
public final class JasminFileType implements FileType { | ||
public static final JasminFileType INSTANCE = new JasminFileType(); | ||
|
||
private JasminFileType() { | ||
} | ||
|
||
@Override | ||
public @NotNull String getName() { | ||
return DisassembleStrategyEnum.JASMIN.getName(); | ||
} | ||
|
||
@Override | ||
public @NotNull String getDescription() { | ||
return DisassembleStrategyEnum.JASMIN.getName(); | ||
} | ||
|
||
@Override | ||
public @Nls @NotNull String getDisplayName() { | ||
return DisassembleStrategyEnum.JASMIN.getName(); | ||
} | ||
|
||
@Override | ||
public @NotNull String getDefaultExtension() { | ||
return DisassembleStrategyEnum.JASMIN.getFileNameSuffix(); | ||
} | ||
|
||
@Override | ||
public Icon getIcon() { | ||
return JavaClassFileType.INSTANCE.getIcon(); | ||
} | ||
|
||
@Override | ||
public boolean isBinary() { | ||
return true; | ||
} | ||
} |
Oops, something went wrong.