public abstract class

AbstractUnitRepresentation

extends Object
implements IUnitDocumentPresentation
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.output.AbstractUnitRepresentation
Known Direct Subclasses

Class Overview

A skeleton class for unit document presentations.

Summary

[Expand]
Inherited Constants
From interface com.pnfsoftware.jeb.core.output.IUnitDocumentPresentation
Public Constructors
AbstractUnitRepresentation(String label)
Create a new non-default document presentation.
AbstractUnitRepresentation(String label, boolean defaultRepresentation)
Create a new document presentation.
AbstractUnitRepresentation(long id, String label, boolean defaultRepresentation)
Create a new document presentation.
Public Methods
long getId()
Get a unique identifier for the document across all documents generated by the unit formatter.
String getLabel()
Get the label for that document.
boolean isDefaultRepresentation()
Determine if the document is the default representation for that unit.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.pnfsoftware.jeb.core.output.IUnitDocumentPresentation

Public Constructors

public AbstractUnitRepresentation (String label)

Create a new non-default document presentation. The identifier will be determined automatically.

public AbstractUnitRepresentation (String label, boolean defaultRepresentation)

Create a new document presentation. The identifier will be determined automatically.

public AbstractUnitRepresentation (long id, String label, boolean defaultRepresentation)

Create a new document presentation.

Parameters
id identifier
label label
defaultRepresentation indicates whether this representation should be the default one for the unit

Public Methods

public long getId ()

Get a unique identifier for the document across all documents generated by the unit formatter.

Note: 1 is the commonly-used id for disassembly documents.

Returns
  • the optional identifier, 0 if none

public String getLabel ()

Get the label for that document.

Returns
  • the optional label

public boolean isDefaultRepresentation ()

Determine if the document is the default representation for that unit.

Returns
  • true if this presentation is the default, false otherwise.

public String toString ()