@Test public void tieFail() { final Token token = seq(def("a", con(1), eq(con(0))), tie(def("b", con(1), eq(con(1))), last(ref("a")))); assertFalse(token.parse(env(stream(0))).isPresent()); }
public Tie(final String name, final Token token, final ValueExpression dataExpression, final Encoding encoding) { super(name, encoding); this.token = checkNotNull(token, "token"); this.dataExpression = checkNotNull(dataExpression, "dataExpression"); }
Tie extends Token { public Tie(final String name, final Token token, final ValueExpression dataExpression, final Encoding encoding) { super(name, encoding); this.token = checkNotNull(token, "token"); this.dataExpression = checkNotNull(dataExpression, "dataExpression"); } }
Tie extends Token { public Tie(final String name, final Token token, final ValueExpression dataExpression, final Encoding encoding) { super(name, encoding); this.token = checkNotNull(token, "token"); this.dataExpression = checkNotNull(dataExpression, "dataExpression"); } Tie(final String name, final Token token, final ValueExpression dataExpression, final Encoding encoding); }
Tie extends Token { public Tie(final String name, final Token token, final ValueExpression dataExpression, final Encoding encoding) { super(name, encoding); this.token = checkNotNull(token, "token"); this.dataExpression = checkNotNull(dataExpression, "dataExpression"); } Tie(final String name, final Token token, final ValueExpression dataExpression, final Encoding encoding); @Override String toString(); @Override boolean equals(final Object obj); @Override int hashCode(); }
Tie extends Token { public Tie(final String name, final Token token, final ValueExpression dataExpression, final Encoding encoding) { super(name, encoding); this.token = checkNotNull(token, "token"); this.dataExpression = checkNotNull(dataExpression, "dataExpression"); } Tie(final String name, final Token token, final ValueExpression dataExpression, final Encoding encoding); @Override String toString(); @Override boolean equals(final Object obj); @Override int hashCode(); final Token token; final ValueExpression dataExpression; }