public class

WellKnownUnitTypes

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.units.WellKnownUnitTypes

Class Overview

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.

Summary

Constants
String genDecompiler special pseudo-type for decompilers
String genDisassembler special pseudo-type for disassemblers
String pfxTypeDebugger special prefix-type used by debugger plugins
String pfxTypeDecompiler special prefix-type used by decompiler plugins
String typeARM
String typeARM64
String typeAndroidApk
String typeAndroidArt
String typeAndroidCompactDex
String typeAndroidDex
String typeAndroidOat
String typeAndroidOptimizedDex
String typeAndroidResources
String typeAndroidVdex
String typeAndroidXApk
String typeAppleMacho
String typeAppleMachoFat
String typeArArchive
String typeAtmelAVR
String typeBinary
String typeC
String typeCertificate
String typeChromeCrx
String typeComposite
String typeCpp
String typeEthereumBytecode
String typeEthereumContract
String typeGeneric
String typeGzip
String typeHtml
String typeIntelHEX
String typeIntelX86
String typeIntelX86_64
String typeJava
String typeJavaArchive
String typeJavaClassfile
String typeJavaScript
String typeJson
String typeLLVMBitcode
String typeLinuxElf
String typeMIPS
String typeMIPS64
String typeMicrosoftExcel
String typeMicrosoftExcelOpenXML
String typeMicrosoftOle
String typeMicrosoftOutlook
String typeMicrosoftPowerpoint
String typeMicrosoftPowerpointOpenXML
String typeMicrosoftThumbs
String typeMicrosoftWord
String typeMicrosoftWordOpenXML
String typePdf
String typePython
String typeRarArchive
String typeSevenzipArchive
String typeStream
String typeTar
String typeText
String typeVBScript
String typeWebassemblyBytecode
String typeWebassemblyModule
String typeWinCoff
String typeWinPe
String typeXml
String typeZipArchive
Public Constructors
WellKnownUnitTypes()
Public Methods
static boolean isNativeCode(String formatType)
static String toCommonExtension(String formatType)
Convert a WellKnownUnitTypes to the common extension.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String genDecompiler

special pseudo-type for decompilers

Constant Value: "code_dcmp"

public static final String genDisassembler

special pseudo-type for disassemblers

Constant Value: "code_disa"

public static final String pfxTypeDebugger

special prefix-type used by debugger plugins

Constant Value: "dbug_"

public static final String pfxTypeDecompiler

special prefix-type used by decompiler plugins

Constant Value: "dcmp_"

public static final String typeARM

Constant Value: "arm"

public static final String typeARM64

Constant Value: "arm64"

public static final String typeAndroidApk

Constant Value: "apk"

public static final String typeAndroidArt

Constant Value: "art"

public static final String typeAndroidCompactDex

Constant Value: "cdex"

public static final String typeAndroidDex

Constant Value: "dex"

public static final String typeAndroidOat

Constant Value: "oat"

public static final String typeAndroidOptimizedDex

Constant Value: "odex"

public static final String typeAndroidResources

Constant Value: "arsc"

public static final String typeAndroidVdex

Constant Value: "vdex"

public static final String typeAndroidXApk

Constant Value: "xapk"

public static final String typeAppleMacho

Constant Value: "macho"

public static final String typeAppleMachoFat

Constant Value: "machofat"

public static final String typeArArchive

Constant Value: "ar"

public static final String typeAtmelAVR

Constant Value: "avr"

public static final String typeBinary

Constant Value: "binary"

public static final String typeC

Constant Value: "c"

public static final String typeCertificate

Constant Value: "cert"

public static final String typeChromeCrx

Constant Value: "crx"

public static final String typeComposite

Constant Value: "composite"

public static final String typeCpp

Constant Value: "cpp"

public static final String typeEthereumBytecode

Constant Value: "evmbc"

public static final String typeEthereumContract

Constant Value: "eth"

public static final String typeGeneric

Constant Value: "generic"

public static final String typeGzip

Constant Value: "gzip"

public static final String typeHtml

Constant Value: "html"

public static final String typeIntelHEX

Constant Value: "ihex"

public static final String typeIntelX86

Constant Value: "x86"

public static final String typeIntelX86_64

Constant Value: "x86_64"

public static final String typeJava

Constant Value: "java"

public static final String typeJavaArchive

Constant Value: "jar"

public static final String typeJavaClassfile

Constant Value: "javaclass"

public static final String typeJavaScript

Constant Value: "javascript"

public static final String typeJson

Constant Value: "json"

public static final String typeLLVMBitcode

Constant Value: "llvmbc"

public static final String typeLinuxElf

Constant Value: "elf"

public static final String typeMIPS

Constant Value: "mips"

public static final String typeMIPS64

Constant Value: "mips64"

public static final String typeMicrosoftExcel

Constant Value: "msxls"

public static final String typeMicrosoftExcelOpenXML

Constant Value: "msxlsx"

public static final String typeMicrosoftOle

Constant Value: "ole"

public static final String typeMicrosoftOutlook

Constant Value: "msoutlook"

public static final String typeMicrosoftPowerpoint

Constant Value: "msppt"

public static final String typeMicrosoftPowerpointOpenXML

Constant Value: "mspptx"

public static final String typeMicrosoftThumbs

Constant Value: "msthumbs"

public static final String typeMicrosoftWord

Constant Value: "msdoc"

public static final String typeMicrosoftWordOpenXML

Constant Value: "msdocx"

public static final String typePdf

Constant Value: "pdf"

public static final String typePython

Constant Value: "python"

public static final String typeRarArchive

Constant Value: "rar"

public static final String typeSevenzipArchive

Constant Value: "sevenzip"

public static final String typeStream

Constant Value: "stream"

public static final String typeTar

Constant Value: "tar"

public static final String typeText

Constant Value: "text"

public static final String typeVBScript

Constant Value: "vbscript"

public static final String typeWebassemblyBytecode

Constant Value: "wasmbc"

public static final String typeWebassemblyModule

Constant Value: "wasm"

public static final String typeWinCoff

Constant Value: "wincoff"

public static final String typeWinPe

Constant Value: "winpe"

public static final String typeXml

Constant Value: "xml"

public static final String typeZipArchive

Constant Value: "zip"

Public Constructors

public WellKnownUnitTypes ()

Public Methods

public static boolean isNativeCode (String formatType)

public static String toCommonExtension (String formatType)

Convert a WellKnownUnitTypes to the common extension. A WellKnownUnitTypes of an IUnit can be retrieved with getFormatType()

Returns
  • the common extension, without dot. Empty string if none can be found.