ParseReference implements ParseItem { @Override public Token getDefinition() { return definition; } ParseReference(final BigInteger location, final Source source, final Token definition); Optional<ParseItem> resolve(final ParseGraph root); @Override boolean isReference(); @Override ParseReference asReference(); @Override Token getDefinition(); @Override String toString(); @Override boolean equals(final Object obj); @Override int hashCode(); final BigInteger location; final Source source; final Token definition; }
@Test public void state() { assertThat(reference.location.longValueExact(), is(0L)); assertThat(reference.getDefinition(), is(definition)); }