ParseValue extends CoreValue implements ParseItem { @Override public Token getDefinition() { return definition; } ParseValue(final String name, final Token definition, final Slice slice, final Encoding encoding); boolean matches(final String name); @Override boolean isValue(); @Override ParseValue asValue(); @Override Token getDefinition(); @Override String toString(); @Override boolean equals(final Object obj); @Override int hashCode(); final String name; final Token definition; }
@Test public void state() { assertThat(value.name, is("value")); assertThat(value.getDefinition(), is(definition)); assertThat(value.slice().offset.longValueExact(), is(0L)); assertThat(value.value(), is(equalTo(new byte[] { 1 }))); }