@Test public void errorNegativeSize() { assertFalse(def("negativeSize", con(-1, signed())).parse(env(stream(1))).isPresent()); }
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; }