@Test public void scopeWithEncoding() { assertEquals(1, getValue(def("a", 1, signed()).parse(env("scope", stream(1), enc())).get().order, "scope.a").asNumeric().intValueExact()); }
public Def(final String name, final SingleValueExpression size, final Encoding encoding) { super(checkNotEmpty(name, "name"), encoding); this.size = checkNotNull(size, "size"); }
Def extends Token { public Def(final String name, final SingleValueExpression size, final Encoding encoding) { super(checkNotEmpty(name, "name"), encoding); this.size = checkNotNull(size, "size"); } }
Def extends Token { public Def(final String name, final SingleValueExpression size, final Encoding encoding) { super(checkNotEmpty(name, "name"), encoding); this.size = checkNotNull(size, "size"); } Def(final String name, final SingleValueExpression size, final Encoding encoding); }
Def extends Token { public Def(final String name, final SingleValueExpression size, final Encoding encoding) { super(checkNotEmpty(name, "name"), encoding); this.size = checkNotNull(size, "size"); } Def(final String name, final SingleValueExpression size, final Encoding encoding); @Override String toString(); @Override boolean equals(final Object obj); @Override int hashCode(); }
Def extends Token { public Def(final String name, final SingleValueExpression size, final Encoding encoding) { super(checkNotEmpty(name, "name"), encoding); this.size = checkNotNull(size, "size"); } Def(final String name, final SingleValueExpression size, final Encoding encoding); @Override String toString(); @Override boolean equals(final Object obj); @Override int hashCode(); final SingleValueExpression size; }