Package com.strobel.decompiler.languages
Class BytecodeAstLanguage
- java.lang.Object
-
- com.strobel.decompiler.languages.Language
-
- com.strobel.decompiler.languages.BytecodeAstLanguage
-
public class BytecodeAstLanguage extends Language
-
-
Field Summary
Fields Modifier and Type Field Description private AstOptimizationStep
_abortBeforeStep
private boolean
_inlineVariables
private java.lang.String
_name
-
Constructor Summary
Constructors Modifier Constructor Description BytecodeAstLanguage()
private
BytecodeAstLanguage(java.lang.String name, boolean inlineVariables, AstOptimizationStep abortBeforeStep)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
decompileMethod(MethodDefinition method, ITextOutput output, DecompilationOptions options)
TypeDecompilationResults
decompileType(TypeDefinition type, ITextOutput output, DecompilationOptions options)
static java.util.List<BytecodeAstLanguage>
getDebugLanguages()
java.lang.String
getFileExtension()
java.lang.String
getName()
java.lang.String
typeToString(TypeReference type, boolean includePackage)
private static void
writeError(ITextOutput output, java.lang.Throwable t)
private void
writeMethodHeader(MethodDefinition method, ITextOutput output)
private void
writeTypeHeader(TypeDefinition type, ITextOutput output)
-
Methods inherited from class com.strobel.decompiler.languages.Language
decompileField, decompilePackage, formatTypeName, getHint, isMemberBrowsable, writeCommentLine
-
-
-
-
Field Detail
-
_name
private final java.lang.String _name
-
_inlineVariables
private final boolean _inlineVariables
-
_abortBeforeStep
private final AstOptimizationStep _abortBeforeStep
-
-
Constructor Detail
-
BytecodeAstLanguage
public BytecodeAstLanguage()
-
BytecodeAstLanguage
private BytecodeAstLanguage(java.lang.String name, boolean inlineVariables, AstOptimizationStep abortBeforeStep)
-
-
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
-
decompileMethod
public void decompileMethod(MethodDefinition method, ITextOutput output, DecompilationOptions options)
- Overrides:
decompileMethod
in classLanguage
-
writeError
private static void writeError(ITextOutput output, java.lang.Throwable t)
-
writeTypeHeader
private void writeTypeHeader(TypeDefinition type, ITextOutput output)
-
writeMethodHeader
private void writeMethodHeader(MethodDefinition method, ITextOutput output)
-
typeToString
public java.lang.String typeToString(TypeReference type, boolean includePackage)
- Overrides:
typeToString
in classLanguage
-
getDebugLanguages
public static java.util.List<BytecodeAstLanguage> getDebugLanguages()
-
-