Package com.pnfsoftware.jeb.core.units
Class WellKnownUnitTypes
java.lang.Object
com.pnfsoftware.jeb.core.units.WellKnownUnitTypes
Well-known binary types for
unit identifiers
. Plugin
writers may use one of those types, as they see fit. They are in no way limited to those types;
those types are solely provided for convenience.
When writing plugins for one of the following type, it is recommended to use the associated type string. They provide several advantages, both visual and functional:
- clients (such as the official RCP client) are aware of those types and may provide icon
labels automatically, freeing developers from implementing
getIconData
. - during delegation, other plugins may expect a given input type
- during processing, plugins may want to produce units with a given, forced well-known type
- engines plugins may want to look for units with a specific type
Types starting with the prefix pfxTypeDecompiler
should be treated as decompilers by
front-end clients.
Types starting with the prefix pfxTypeDebugger
should be treated as debuggers by
front-end clients.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
special pseudo-type fordecompilers
static final String
special pseudo-type fordisassemblers
static final String
special prefix-type used by debugger pluginsstatic final String
special prefix-type used by decompiler pluginsstatic final String
Generic Image format (jpg, png, bmp...)static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
fromMimeType
(String mimeType) Convert aMimeType
to aWellKnownUnitTypes
.static boolean
isNativeCode
(String formatType) static String
toCommonExtension
(String formatType) Convert aWellKnownUnitTypes
to the common extension.
-
Field Details
-
typeGeneric
- See Also:
-
typeComposite
- See Also:
-
typeStream
- See Also:
-
typeBinary
- See Also:
-
typeText
- See Also:
-
typeZipArchive
- See Also:
-
typeRarArchive
- See Also:
-
typeTar
- See Also:
-
typeGzip
- See Also:
-
typeArArchive
- See Also:
-
typeSevenzipArchive
- See Also:
-
typeLinuxElf
- See Also:
-
typeWinPe
- See Also:
-
typeAppleMacho
- See Also:
-
typeAppleMachoFat
- See Also:
-
typeWinCoff
- See Also:
-
typeIntelX86
- See Also:
-
typeIntelX86_64
- See Also:
-
typeARM
- See Also:
-
typeARM64
- See Also:
-
typeMIPS
- See Also:
-
typeMIPS64
- See Also:
-
typeAtmelAVR
- See Also:
-
typeIntelHEX
- See Also:
-
typeRiscV
- See Also:
-
typeJavaArchive
- See Also:
-
typeJavaClassfile
- See Also:
-
typeAndroidOptimizedDex
- See Also:
-
typeAndroidDex
- See Also:
-
typeAndroidApk
- See Also:
-
typeAndroidResources
- See Also:
-
typeAndroidXApk
- See Also:
-
typeAndroidOat
- See Also:
-
typeAndroidArt
- See Also:
-
typeAndroidVdex
- See Also:
-
typeAndroidCompactDex
- See Also:
-
typeChromeCrx
- See Also:
-
typeXml
- See Also:
-
typeHtml
- See Also:
-
typeSvg
- See Also:
-
typeJson
- See Also:
-
typeCertificate
- See Also:
-
typeC
- See Also:
-
typeCpp
- See Also:
-
typePython
- See Also:
-
typeJava
- See Also:
-
typeJavaScript
- See Also:
-
typeVBScript
- See Also:
-
typeWebassemblyModule
- See Also:
-
typeWebassemblyBytecode
- See Also:
-
typeEthereumContract
- See Also:
-
typeEthereumBytecode
- See Also:
-
typePdf
- See Also:
-
typeMicrosoftOle
- See Also:
-
typeMicrosoftWord
- See Also:
-
typeMicrosoftExcel
- See Also:
-
typeMicrosoftPowerpoint
- See Also:
-
typeMicrosoftWordOpenXML
- See Also:
-
typeMicrosoftExcelOpenXML
- See Also:
-
typeMicrosoftPowerpointOpenXML
- See Also:
-
typeMicrosoftOutlook
- See Also:
-
typeMicrosoftThumbs
- See Also:
-
typeLLVMBitcode
- See Also:
-
pseudotypeImage
Generic Image format (jpg, png, bmp...)- See Also:
-
pfxTypeDecompiler
special prefix-type used by decompiler plugins- See Also:
-
pfxTypeDebugger
special prefix-type used by debugger plugins- See Also:
-
genDisassembler
special pseudo-type fordisassemblers
- See Also:
-
genDecompiler
special pseudo-type fordecompilers
- See Also:
-
typeCART
- See Also:
-
-
Constructor Details
-
WellKnownUnitTypes
public WellKnownUnitTypes()
-
-
Method Details
-
isNativeCode
-
toCommonExtension
Convert aWellKnownUnitTypes
to the common extension. AWellKnownUnitTypes
of anIUnit
can be retrieved withIUnit.getFormatType()
- Returns:
- the common extension, without dot. Empty string if none can be found.
-
fromMimeType
Convert aMimeType
to aWellKnownUnitTypes
.- Parameters:
mimeType
- mime type. SeeMimeType
for well known mime types- Returns:
- the related
WellKnownUnitTypes
or null if unknown
-