test_class.declarator: resolver
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private Resolver resolver;
test_class.type: Resolver
test_class.var_name: resolver
test_class.declarator: size
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private Expression<Integer, Resolver> size;
test_class.type: Expression<Integer, Resolver>
test_class.var_name: size
test_class.declarator: matchExpression
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private Expression<Integer, Resolver> matchExpression;
test_class.type: Expression<Integer, Resolver>
test_class.var_name: matchExpression
test_class.declarator: channel
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private BitChannel channel;
test_class.type: BitChannel
test_class.var_name: channel
test_class.file: preon-binding/src/test/java/org/codehaus/preon/codec/NumericCodecTest.java
test_class.identifier: NumericCodecTest
test_case.body: @Test
      public void shouldEncodeCorrectly() throws IOException {
          NumericCodec codec = new NumericCodec(size, ByteOrder.BigEndian, NumericCodec.NumericType.Long, matchExpression);
          when(size.eval(resolver)).thenReturn(3);
          codec.encode(new Long(12L), channel, resolver);
          Mockito.verify(channel).write(3, 12L, ByteOrder.BigEndian);
      }
test_case.class_method_signature: NumericCodecTest.shouldEncodeCorrectly()
test_case.full_signature: @Test public void shouldEncodeCorrectly()
test_case.identifier: shouldEncodeCorrectly
test_case.invocations: thenReturn when eval encode write verify
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldEncodeCorrectly()
focal_class.declarator: NUMERIC_TYPES = new HashMap<Class<?>, NumericType>(
              8)
focal_class.modifier: static
focal_class.original_string: static Map<Class<?>, NumericType> NUMERIC_TYPES = new HashMap<Class<?>, NumericType>(
              8);
focal_class.type: Map<Class<?>, NumericType>
focal_class.var_name: NUMERIC_TYPES
focal_class.declarator: sizeExpr
focal_class.modifier: protected
focal_class.original_string: protected Expression<Integer, Resolver> sizeExpr;
focal_class.type: Expression<Integer, Resolver>
focal_class.var_name: sizeExpr
focal_class.declarator: byteOrder
focal_class.modifier: protected
focal_class.original_string: protected ByteOrder byteOrder;
focal_class.type: ByteOrder
focal_class.var_name: byteOrder
focal_class.declarator: type
focal_class.modifier: protected
focal_class.original_string: protected NumericType type;
focal_class.type: NumericType
focal_class.var_name: type
focal_class.declarator: matchExpr
focal_class.modifier: private
focal_class.original_string: private Expression<Integer, Resolver> matchExpr;
focal_class.type: Expression<Integer, Resolver>
focal_class.var_name: matchExpr
focal_class.file: preon-binding/src/main/java/org/codehaus/preon/codec/NumericCodec.java
focal_class.identifier: NumericCodec
focal_class.interfaces: implements Codec<Object>
focal_class.class_method_signature: NumericCodec.NumericCodec(Expression<Integer, Resolver> sizeExpr,
                          ByteOrder byteOrder, NumericType type,
                          Expression<Integer, Resolver> matchExpr)
focal_class.full_signature: public  NumericCodec(Expression<Integer, Resolver> sizeExpr,
                          ByteOrder byteOrder, NumericType type,
                          Expression<Integer, Resolver> matchExpr)
focal_class.identifier: NumericCodec
focal_class.modifiers: public
focal_class.parameters: (Expression<Integer, Resolver> sizeExpr,
                          ByteOrder byteOrder, NumericType type,
                          Expression<Integer, Resolver> matchExpr)
focal_class.signature:  NumericCodec(Expression<Integer, Resolver> sizeExpr,
                          ByteOrder byteOrder, NumericType type,
                          Expression<Integer, Resolver> matchExpr)
focal_class.class_method_signature: NumericCodec.decode(BitBuffer buffer, Resolver resolver,
                           Builder builder)
focal_class.full_signature: public Object decode(BitBuffer buffer, Resolver resolver,
                           Builder builder)
focal_class.identifier: decode
focal_class.modifiers: public
focal_class.parameters: (BitBuffer buffer, Resolver resolver,
                           Builder builder)
focal_class.return: Object
focal_class.signature: Object decode(BitBuffer buffer, Resolver resolver,
                           Builder builder)
focal_class.class_method_signature: NumericCodec.encode(Object value, BitChannel channel, Resolver resolver)
focal_class.full_signature: public void encode(Object value, BitChannel channel, Resolver resolver)
focal_class.identifier: encode
focal_class.modifiers: public
focal_class.parameters: (Object value, BitChannel channel, Resolver resolver)
focal_class.return: void
focal_class.signature: void encode(Object value, BitChannel channel, Resolver resolver)
focal_class.class_method_signature: NumericCodec.getTypes()
focal_class.full_signature: public Class<?>[] getTypes()
focal_class.identifier: getTypes
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Class<?>[]
focal_class.signature: Class<?>[] getTypes()
focal_class.class_method_signature: NumericCodec.getSize()
focal_class.full_signature: public Expression<Integer, Resolver> getSize()
focal_class.identifier: getSize
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Expression<Integer, Resolver>
focal_class.signature: Expression<Integer, Resolver> getSize()
focal_class.class_method_signature: NumericCodec.getType()
focal_class.full_signature: public Class<?> getType()
focal_class.identifier: getType
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Class<?>
focal_class.signature: Class<?> getType()
focal_class.class_method_signature: NumericCodec.getCodecDescriptor()
focal_class.full_signature: public CodecDescriptor getCodecDescriptor()
focal_class.identifier: getCodecDescriptor
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: CodecDescriptor
focal_class.signature: CodecDescriptor getCodecDescriptor()
focal_class.class_method_signature: NumericCodec.toString()
focal_class.full_signature: public String toString()
focal_class.identifier: toString
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_method.body: public void encode(Object value, BitChannel channel, Resolver resolver) throws IOException {
          type.encode(channel, sizeExpr.eval(resolver), byteOrder, value);
      }
focal_method.class_method_signature: NumericCodec.encode(Object value, BitChannel channel, Resolver resolver)
focal_method.full_signature: public void encode(Object value, BitChannel channel, Resolver resolver)
focal_method.identifier: encode
focal_method.invocations: encode eval
focal_method.modifiers: public
focal_method.parameters: (Object value, BitChannel channel, Resolver resolver)
focal_method.return: void
focal_method.signature: void encode(Object value, BitChannel channel, Resolver resolver)