Package com.strobel.decompiler.languages
Class BytecodeLanguage
- java.lang.Object
-
- com.strobel.decompiler.languages.Language
-
- com.strobel.decompiler.languages.BytecodeLanguage
-
public class BytecodeLanguage extends Language
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
BytecodeLanguage.DummyTypeReference
private static class
BytecodeLanguage.InstructionPrinter
-
Field Summary
Fields Modifier and Type Field Description private static char[]
HEX_CHARS
-
Constructor Summary
Constructors Constructor Description BytecodeLanguage()
-
Method Summary
-
Methods inherited from class com.strobel.decompiler.languages.Language
decompilePackage, formatTypeName, getHint, isMemberBrowsable, typeToString, writeCommentLine
-
-
-
-
Method Detail
-
getFileExtension
public java.lang.String getFileExtension()
- Specified by:
getFileExtension
in classLanguage
-
decompileType
public TypeDecompilationResults decompileType(TypeDefinition type, ITextOutput output, DecompilationOptions options)
- Overrides:
decompileType
in classLanguage
-
newlineIfNeeded
private static boolean newlineIfNeeded(ITextOutput output, boolean needNewLine)
-
writeModuleBody
public static void writeModuleBody(ITextOutput output, ModuleAttribute module, boolean useDottedNames)
-
writeModuleDependency
private static void writeModuleDependency(ITextOutput output, ModuleDependency dependency)
-
writePackageInfo
private static void writePackageInfo(ITextOutput output, PackageInfo export, boolean useDottedNames, boolean isExport)
-
writeServiceInfo
private static void writeServiceInfo(ITextOutput output, ServiceInfo service, boolean useDottedNames)
-
writeMethodBodyParseError
private void writeMethodBodyParseError(ITextOutput output, java.lang.Throwable error)
-
writeTypeAttribute
private void writeTypeAttribute(ITextOutput output, TypeDefinition type, SourceAttribute attribute)
-
writeBlobAttribute
private void writeBlobAttribute(ITextOutput output, BlobAttribute attribute)
-
writeBootstrapMethodEntry
private void writeBootstrapMethodEntry(ITextOutput output, BootstrapMethodsTableEntry entry)
-
writeInnerClassEntry
private void writeInnerClassEntry(ITextOutput output, TypeDefinition type, InnerClassEntry entry)
-
tryWriteType
private boolean tryWriteType(@NotNull ITextOutput output, @NotNull MetadataParser parser, java.lang.String text, java.lang.String descriptor)
-
writeTypeHeader
private void writeTypeHeader(ITextOutput output, TypeDefinition type)
-
decompileField
public void decompileField(FieldDefinition field, ITextOutput output, DecompilationOptions options)
- Overrides:
decompileField
in classLanguage
-
writeFieldAttribute
private void writeFieldAttribute(ITextOutput output, FieldDefinition field, SourceAttribute attribute)
-
decompileMethod
public void decompileMethod(MethodDefinition method, ITextOutput output, DecompilationOptions options)
- Overrides:
decompileMethod
in classLanguage
-
writeMethodHeader
private void writeMethodHeader(ITextOutput output, MethodDefinition method, DecompilationOptions options)
-
writeMethodAttribute
private void writeMethodAttribute(ITextOutput output, MethodDefinition method, SourceAttribute attribute)
-
writeMethodBody
private void writeMethodBody(ITextOutput output, MethodDefinition method, DecompilationOptions options)
-
writeMethodEnd
private void writeMethodEnd(ITextOutput output, MethodDefinition method, DecompilationOptions options)
-
getBytecodeOptions
private static BytecodeOutputOptions getBytecodeOptions(DecompilationOptions options)
-
-