Package net.fabricmc.mappingio.format
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 java.lang.Enum
Enum.EnumDesc<E extends Enum<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.TheJOBFmapping format, as specified 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
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic 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 notes
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 notes
Access modifiers are currently not supported. -
ENIGMA_DIR
Enigma's mapping format (in directory form), as specified here.Implementation notes
Access modifiers are currently not supported. -
SRG_FILE
TheSRG("Searge RetroGuard") mapping format, as specified here.Implementation notes
Package mappings are currently not supported. -
XSRG_FILE
TheXSRG("Extended SRG") mapping format, as specified here. Same as SRG, but with field descriptors.Implementation notes
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 notes
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 notes
Package mappings are currently not supported. -
TSRG_2_FILE
TheTSRG v2mapping format, as specified here.Implementation notes
Package mappings and static markers for methods are currently not supported. -
PROGUARD_FILE
ProGuard's mapping format, as specified here.Implementation notes
Line numbers are currently not supported. -
RECAF_SIMPLE_FILE
Recaf'sSimplemapping format, as specified here. -
JOBF_FILE
TheJOBFmapping format, as specified here.Implementation notes
Package mappings are currently not supported.
-
-
Field Details
-
name
-
fileExt
-
hasNamespaces
public final boolean hasNamespaces -
hasFieldDescriptors
public final boolean hasFieldDescriptors -
supportsComments
public final boolean supportsComments -
supportsArgs
public final boolean supportsArgs -
supportsLocals
public final boolean supportsLocals -
hasWriter
public final boolean hasWriter
-
-
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
-
hasSingleFile
public boolean hasSingleFile() -
getGlobPattern
-