public class

RegisterDescriptionEntry

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.units.code.asm.processor.RegisterDescriptionEntry

Class Overview

Description of a register.

Summary

Public Constructors
RegisterDescriptionEntry(int number, String name, int bitsize, RegisterEncoding encoding, String alternateName, RegisterType type, int offset)
Full constructor.
Public Methods
RegisterDescriptionEntry addName(String name)
Add a name for this register.
int getBitsize()
Get the register size in bits.
RegisterEncoding getEncoding()
String getName()
Get the primary name.
List<String> getNames()
Get all the names for the register.
int getNumber()
Get the optional register number.
int getOffset()
Get the optional offset in a block of registers, meaningful in the context of the layout this entry belongs to.
int getSize()
Get the register size in bytes, rounded up (eg, if the register is 6-bit long, the returned byte size will be 1).
RegisterType getType()
void setNumber(int number)
void setOffset(int offset)
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public RegisterDescriptionEntry (int number, String name, int bitsize, RegisterEncoding encoding, String alternateName, RegisterType type, int offset)

Full constructor.

Parameters
number mandatory
name mandatory
bitsize mandatory
encoding optional
alternateName optional
type optional
offset optional

Public Methods

public RegisterDescriptionEntry addName (String name)

Add a name for this register.

Parameters
name a name, cannot be empty or null; it can be a primary name or an alternate name
Returns
  • this object (allows chained calls)

public int getBitsize ()

Get the register size in bits.

public RegisterEncoding getEncoding ()

Returns
  • never null

public String getName ()

Get the primary name.

Returns
  • non-null, non-empty

public List<String> getNames ()

Get all the names for the register. The first entry in the list is the primary name.

Returns
  • a list containing at least one entry

public int getNumber ()

Get the optional register number.

public int getOffset ()

Get the optional offset in a block of registers, meaningful in the context of the layout this entry belongs to.

Returns
  • -1 if unspecified

public int getSize ()

Get the register size in bytes, rounded up (eg, if the register is 6-bit long, the returned byte size will be 1).

public RegisterType getType ()

Returns
  • never null

public void setNumber (int number)

public void setOffset (int offset)

public String toString ()