Package com.strobel.decompiler
Class DecompilerContext
- java.lang.Object
-
- com.strobel.componentmodel.UserDataStoreBase
-
- com.strobel.decompiler.DecompilerContext
-
- All Implemented Interfaces:
UserDataStore,java.lang.Cloneable
public final class DecompilerContext extends UserDataStoreBase
-
-
Field Summary
Fields Modifier and Type Field Description private MethodDefinition_currentMethodprivate TypeDefinition_currentTypeprivate java.util.Set<IMemberDefinition>_forcedVisibleMembersprivate BooleanBox_isCanceledprivate java.util.List<java.lang.String>_reservedVariableNamesprivate DecompilerSettings_settings-
Fields inherited from class com.strobel.componentmodel.UserDataStoreBase
COPYABLE_USER_MAP_KEY
-
-
Constructor Summary
Constructors Constructor Description DecompilerContext()DecompilerContext(DecompilerSettings settings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanBoxgetCanceled()MethodDefinitiongetCurrentMethod()TypeDefinitiongetCurrentType()java.util.Set<IMemberDefinition>getForcedVisibleMembers()java.util.List<java.lang.String>getReservedVariableNames()DecompilerSettingsgetSettings()booleanisSupported(LanguageFeature feature)booleanisSupported(TypeDefinition versionSource, LanguageFeature feature)voidsetCanceled(BooleanBox canceled)voidsetCurrentMethod(MethodDefinition currentMethod)voidsetCurrentType(TypeDefinition currentType)voidsetSettings(DecompilerSettings settings)CompilerTargettarget()CompilerTargettarget(TypeDefinition versionSource)-
Methods inherited from class com.strobel.componentmodel.UserDataStoreBase
clone, getUserData, putUserData, putUserDataIfAbsent, replace
-
-
-
-
Field Detail
-
_reservedVariableNames
private final java.util.List<java.lang.String> _reservedVariableNames
-
_forcedVisibleMembers
private final java.util.Set<IMemberDefinition> _forcedVisibleMembers
-
_settings
private DecompilerSettings _settings
-
_isCanceled
private BooleanBox _isCanceled
-
_currentType
private TypeDefinition _currentType
-
_currentMethod
private MethodDefinition _currentMethod
-
-
Constructor Detail
-
DecompilerContext
public DecompilerContext()
-
DecompilerContext
public DecompilerContext(DecompilerSettings settings)
-
-
Method Detail
-
getSettings
public DecompilerSettings getSettings()
-
setSettings
public void setSettings(DecompilerSettings settings)
-
getCanceled
public BooleanBox getCanceled()
-
setCanceled
public void setCanceled(BooleanBox canceled)
-
getCurrentType
public TypeDefinition getCurrentType()
-
setCurrentType
public void setCurrentType(TypeDefinition currentType)
-
getCurrentMethod
public MethodDefinition getCurrentMethod()
-
setCurrentMethod
public void setCurrentMethod(MethodDefinition currentMethod)
-
getReservedVariableNames
public java.util.List<java.lang.String> getReservedVariableNames()
-
getForcedVisibleMembers
public java.util.Set<IMemberDefinition> getForcedVisibleMembers()
-
isSupported
public boolean isSupported(@NotNull LanguageFeature feature)
-
isSupported
public boolean isSupported(TypeDefinition versionSource, @NotNull LanguageFeature feature)
-
target
public CompilerTarget target()
-
target
public CompilerTarget target(TypeDefinition versionSource)
-
-