Package com.pnfsoftware.jeb.core.output
Class AbstractUnitRepresentation
java.lang.Object
com.pnfsoftware.jeb.core.output.AbstractUnitRepresentation
- All Implemented Interfaces:
IUnitDocumentPresentation
- Direct Known Subclasses:
AbstractTransientUnitRepresentation
,UnitRepresentationAdapter
@Ser
public abstract class AbstractUnitRepresentation
extends Object
implements IUnitDocumentPresentation
A skeleton class for unit document presentations.
-
Field Summary
Fields inherited from interface com.pnfsoftware.jeb.core.output.IUnitDocumentPresentation
DOC_ID_DISASSEMBLY
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractUnitRepresentation
(long id, String label, boolean defaultRepresentation) Create a new document presentation.AbstractUnitRepresentation
(String label) Create a new non-default document presentation.AbstractUnitRepresentation
(String label, boolean defaultRepresentation) Create a new document presentation. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.pnfsoftware.jeb.core.output.IUnitDocumentPresentation
dispose, getDocument
-
Constructor Details
-
AbstractUnitRepresentation
Create a new non-default document presentation. The identifier will be determined automatically.- Parameters:
label
-
-
AbstractUnitRepresentation
Create a new document presentation. The identifier will be determined automatically.- Parameters:
label
-defaultRepresentation
-
-
AbstractUnitRepresentation
Create a new document presentation.- Parameters:
id
- identifierlabel
- labeldefaultRepresentation
- indicates whether this representation should be the default one for the unit
-
-
Method Details
-
getId
public long getId()Description copied from interface:IUnitDocumentPresentation
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.
- Specified by:
getId
in interfaceIUnitDocumentPresentation
- Returns:
- the optional identifier, 0 if none
-
getLabel
Description copied from interface:IUnitDocumentPresentation
Get the label for that document.- Specified by:
getLabel
in interfaceIUnitDocumentPresentation
- Returns:
- the optional label
-
isDefaultRepresentation
public boolean isDefaultRepresentation()Description copied from interface:IUnitDocumentPresentation
Determine if the document is the default representation for that unit.- Specified by:
isDefaultRepresentation
in interfaceIUnitDocumentPresentation
- Returns:
- true if this presentation is the default, false otherwise.
-
toString
-