test_class.file: core/src/test/java/org/ulordj/core/TransactionWitnessTest.java
test_class.identifier: TransactionWitnessTest
test_case.body: @Test
      public void testToString() throws Exception {
          TransactionWitness w1 = new TransactionWitness(0);
          assertEquals("", w1.toString());
  
          TransactionWitness w2 = new TransactionWitness(2);
          assertEquals("NULL NULL", w2.toString());
  
          TransactionWitness w3 = new TransactionWitness(3);
          w3.setPush(0, Utils.HEX.decode("123aaa"));
          w3.setPush(1, Utils.HEX.decode("123bbb"));
          w3.setPush(2, Utils.HEX.decode("123ccc"));
          assertEquals("123aaa 123bbb 123ccc", w3.toString());
      }
test_case.class_method_signature: TransactionWitnessTest.testToString()
test_case.full_signature: @Test public void testToString()
test_case.identifier: testToString
test_case.invocations: assertEquals toString assertEquals toString setPush decode setPush decode setPush decode assertEquals toString
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testToString()
focal_class.declarator: EMPTY = new TransactionWitness(0)
focal_class.modifier: public static final
focal_class.original_string: public static final TransactionWitness EMPTY = new TransactionWitness(0);
focal_class.type: TransactionWitness
focal_class.var_name: EMPTY
focal_class.declarator: pushes
focal_class.modifier: private final
focal_class.original_string: private final byte[][] pushes;
focal_class.type: byte[][]
focal_class.var_name: pushes
focal_class.file: core/src/main/java/org/ulordj/core/TransactionWitness.java
focal_class.identifier: TransactionWitness
focal_class.class_method_signature: TransactionWitness.TransactionWitness(int pushCount)
focal_class.full_signature: public  TransactionWitness(int pushCount)
focal_class.identifier: TransactionWitness
focal_class.modifiers: public
focal_class.parameters: (int pushCount)
focal_class.signature:  TransactionWitness(int pushCount)
focal_class.class_method_signature: TransactionWitness.getPush(int i)
focal_class.full_signature: public byte[] getPush(int i)
focal_class.identifier: getPush
focal_class.modifiers: public
focal_class.parameters: (int i)
focal_class.return: byte[]
focal_class.signature: byte[] getPush(int i)
focal_class.class_method_signature: TransactionWitness.getPushCount()
focal_class.full_signature: public int getPushCount()
focal_class.identifier: getPushCount
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getPushCount()
focal_class.class_method_signature: TransactionWitness.setPush(int i, byte[] value)
focal_class.full_signature: public void setPush(int i, byte[] value)
focal_class.identifier: setPush
focal_class.modifiers: public
focal_class.parameters: (int i, byte[] value)
focal_class.return: void
focal_class.signature: void setPush(int i, byte[] value)
focal_class.class_method_signature: TransactionWitness.bitcoinSerializeToStream(OutputStream stream)
focal_class.full_signature: protected void bitcoinSerializeToStream(OutputStream stream)
focal_class.identifier: bitcoinSerializeToStream
focal_class.modifiers: protected
focal_class.parameters: (OutputStream stream)
focal_class.return: void
focal_class.signature: void bitcoinSerializeToStream(OutputStream stream)
focal_class.class_method_signature: TransactionWitness.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: TransactionWitness.equals(Object o)
focal_class.full_signature: @Override public boolean equals(Object o)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (Object o)
focal_class.return: boolean
focal_class.signature: boolean equals(Object o)
focal_class.class_method_signature: TransactionWitness.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_method.body: @Override
      public String toString() {
          List<String> stringPushes = new ArrayList<>();
          for (int j = 0; j < this.getPushCount(); j++) {
              byte[] push = this.getPush(j);
              if (push != null) {
                  stringPushes.add(Utils.HEX.encode(push));
              } else {
                  stringPushes.add("NULL");
              }
          }
          return Utils.SPACE_JOINER.join(stringPushes);
      }
focal_method.class_method_signature: TransactionWitness.toString()
focal_method.full_signature: @Override public String toString()
focal_method.identifier: toString
focal_method.invocations: getPushCount getPush add encode add join
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: String
focal_method.signature: String toString()