JBBPFieldArrayBit extends JBBPAbstractArrayField<JBBPFieldBit> implements BitEntity, JBBPNumericArray { @Override public JBBPBitNumber getBitWidth() { return this.bitNumber; } JBBPFieldArrayBit(final JBBPNamedFieldInfo name, final byte[] array, final JBBPBitNumber bitNumber); byte[] getArray(); @Override JBBPBitNumber getBitWidth(); @Override int size(); @Override JBBPFieldBit getElementAt(final int index); @Override int getAsInt(final int index); @Override long getAsLong(final int index); @Override boolean getAsBool(final int index); @Override Object getValueArrayAsObject(final boolean reverseBits); @Override String getTypeAsString();  }
@Test public void testNameAndOffset() { assertEquals("test.field", test.getFieldPath()); assertEquals("field", test.getFieldName()); assertNotNull(test.getNameInfo()); assertEquals(999, test.getNameInfo().getFieldOffsetInCompiledBlock()); assertEquals(JBBPBitNumber.BITS_1, test.getBitWidth()); }