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
_currentMethod
private TypeDefinition
_currentType
private java.util.Set<IMemberDefinition>
_forcedVisibleMembers
private BooleanBox
_isCanceled
private java.util.List<java.lang.String>
_reservedVariableNames
private 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 BooleanBox
getCanceled()
MethodDefinition
getCurrentMethod()
TypeDefinition
getCurrentType()
java.util.Set<IMemberDefinition>
getForcedVisibleMembers()
java.util.List<java.lang.String>
getReservedVariableNames()
DecompilerSettings
getSettings()
boolean
isSupported(LanguageFeature feature)
boolean
isSupported(TypeDefinition versionSource, LanguageFeature feature)
void
setCanceled(BooleanBox canceled)
void
setCurrentMethod(MethodDefinition currentMethod)
void
setCurrentType(TypeDefinition currentType)
void
setSettings(DecompilerSettings settings)
CompilerTarget
target()
CompilerTarget
target(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)
-
-