Class FieldFormatLiteral

  extended bybyucc.jhdl.util.BVFormat.FieldFormat
      extended bybyucc.jhdl.util.BVFormat.FieldFormatLiteral

public class FieldFormatLiteral
extends FieldFormat

Abstract class used for formatting fields.

Field Summary
Fields inherited from class byucc.jhdl.util.BVFormat.FieldFormat
Constructor Summary
FieldFormatLiteral(java.lang.String literal)
          Constructor for the FieldFormat object.
Method Summary
protected  java.lang.String formatField(BV field, boolean fractional)
          This method is written by the subclasses of FieldFormat.
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 FieldFormatLiteral(java.lang.String literal)
Constructor for the FieldFormat object.

Method Detail


protected java.lang.String formatField(BV field,
                                       boolean fractional)
This method is written by the subclasses of FieldFormat.

Specified by:
formatField in class FieldFormat
field - This BV is the entire BV. The correct ranges will need to be gotten by subclasses of this class.
fractional - Tells whether or not this field represents a fraction (if true) or a whole number (if false).

Copyright ? 2006 Brigham Young University, Configurable Computing Laboratory. All Rights Reserved.