com.io7m.jpra.model.types

## Interface TPackedBuilderType

-     public interface TPackedBuilderType

  The type of mutable records for `TPacked` values.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addField(FieldName name, IdentifierType id, TIntegerType type)` Add a value field.
    `void` | `addPaddingBits(Optional<com.io7m.jlexing.core.ImmutableLexicalPositionType<Path>> lex, Size<SizeUnitBitsType> size)` Add a field of padding bits.
    `TPacked` | `build()`
    `Size<SizeUnitBitsType>` | `getCurrentSize()`

- - ### Method Detail

    - #### addPaddingBits

          void addPaddingBits(Optional<com.io7m.jlexing.core.ImmutableLexicalPositionType<Path>> lex,
                              Size<SizeUnitBitsType> size)

      Add a field of padding bits.
      Parameters:
        `lex` - The lexical information, if any
        `size` - The size of the padding in bits

    - #### addField

          void addField(FieldName name,
                        IdentifierType id,
                        TIntegerType type)

      Add a value field.
      Parameters:
        `name` - The field name
        `id` - The field identifier
        `type` - The field type

    - #### getCurrentSize

          Size<SizeUnitBitsType> getCurrentSize()

      Returns:
        The current size of the type in bits

    - #### build

          TPacked build()

      Returns:
        A constructed record

Copyright © 2016 <code@io7m.com> http://io7m.com