|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbyucc.jhdl.util.BVFormat.FieldFormat
byucc.jhdl.util.BVFormat.FieldFormatInteger
byucc.jhdl.util.BVFormat.FieldFormatSignedDecimal
FieldFormat class used for formatting signed decimal.
Field Summary |
Fields inherited from class byucc.jhdl.util.BVFormat.FieldFormatInteger |
bottom, top |
Fields inherited from class byucc.jhdl.util.BVFormat.FieldFormat |
minWidth |
Constructor Summary | |
FieldFormatSignedDecimal(int top,
int bottom,
int minWidth)
Constructor which simply specifies the width of the field. |
Method Summary | |
java.lang.String |
formatFieldInteger(BV field,
boolean fractional)
Formats a field. |
Methods inherited from class byucc.jhdl.util.BVFormat.FieldFormatInteger |
formatField, fraction2DecimalString, getBottom, getTop |
Methods inherited from class byucc.jhdl.util.BVFormat.FieldFormat |
formatField, getMinWidth |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FieldFormatSignedDecimal(int top, int bottom, int minWidth)
top
- Top (most-significant) bit of the range.bottom
- Bottom (lease-significant) bit of the range.minWidth
- Optional minimum Width of the field.Method Detail |
public java.lang.String formatFieldInteger(BV field, boolean fractional)
formatFieldInteger
in class FieldFormatInteger
field
- BV which represents the field to be formatted.fractional
- Tells whether or not this field represents a
fraction (if true) or a whole number (if false).
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |