Enum Class MappingFormat
- All Implemented Interfaces:
Serializable, Comparable<MappingFormat>, Constable
Represents a supported mapping format. Every format can be assumed to have an associated reader available.
A feature comparison table can be found here.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTheCSRG("Compact SRG", since it saves disk space over SRG) mapping format, as specified here.Enigma's mapping format (in directory form), as specified here.Enigma's mapping format, as specified here.The IntelliJ IDEA migration map format, as implemented here.TheJOBFmapping format, as implemented here.ProGuard's mapping format, as specified here.Recaf'sSimplemapping format, as specified here.TheSRG("Searge RetroGuard") mapping format, as specified here.TheTiny v2mapping format, as specified here.TheTinymapping format, as specified here.TheTSRG v2mapping format, as specified here.TheTSRG("Tiny SRG", since it saves disk space over SRG) mapping format, as specified here.TheXSRG("Extended SRG") mapping format, as specified here. -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal @Nullable Stringfinal booleanDeprecated.final booleanDeprecated.Usefeatures()instead.final booleanfinal Stringfinal booleanDeprecated.Usefeatures()instead.final booleanDeprecated.Usefeatures()instead.final booleanDeprecated.Usefeatures()instead. -
Method Summary
Modifier and TypeMethodDescriptionfeatures()booleanstatic MappingFormatReturns the enum constant of this class with the specified name.static MappingFormat[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TINY_FILE
TheTinymapping format, as specified here.- Implementation Note:
- File metadata only has limited support as of now, and is hardcoded to intermediary counters.
-
TINY_2_FILE
TheTiny v2mapping format, as specified here. -
ENIGMA_FILE
Enigma's mapping format, as specified here.- Implementation Note:
- Access modifiers are currently not supported.
-
ENIGMA_DIR
Enigma's mapping format (in directory form), as specified here.- Implementation Note:
- Access modifiers are currently not supported.
-
PROGUARD_FILE
ProGuard's mapping format, as specified here.- Implementation Note:
- Line numbers are currently not supported.
-
SRG_FILE
TheSRG("Searge RetroGuard") mapping format, as specified here.- Implementation Note:
- Package mappings are currently not supported.
-
XSRG_FILE
TheXSRG("Extended SRG") mapping format, as specified here.Same as SRG, but with field descriptors.
- Implementation Note:
- Package mappings are currently not supported.
-
JAM_FILE
-
CSRG_FILE
TheCSRG("Compact SRG", since it saves disk space over SRG) mapping format, as specified here.- Implementation Note:
- Package mappings are currently not supported.
-
TSRG_FILE
TheTSRG("Tiny SRG", since it saves disk space over SRG) mapping format, as specified here.Same as CSRG, but hierarchical instead of flat.
- Implementation Note:
- Package mappings are currently not supported.
-
TSRG_2_FILE
TheTSRG v2mapping format, as specified here.- Implementation Note:
- Package mappings and static markers for methods are currently not supported.
-
INTELLIJ_MIGRATION_MAP_FILE
The IntelliJ IDEA migration map format, as implemented here.- Implementation Note:
- Package mappings and file metadata are currently not supported.
-
RECAF_SIMPLE_FILE
Recaf'sSimplemapping format, as specified here. -
JOBF_FILE
TheJOBFmapping format, as implemented here.- Implementation Note:
- Package mappings are currently not supported.
-
-
Field Details
-
name
-
hasWriter
public final boolean hasWriter -
fileExt
-
hasNamespaces
Deprecated.Usefeatures()instead. -
hasFieldDescriptors
Deprecated.Usefeatures()instead. -
supportsComments
Deprecated.Usefeatures()instead. -
supportsArgs
Deprecated.Usefeatures()instead. -
supportsLocals
Deprecated.Usefeatures()instead.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
features
-
hasSingleFile
public boolean hasSingleFile() -
getGlobPattern
-
features()instead.