protected void set(Fields declarator, Fields selector, Tuple tuple, CoercibleType[] coercions) { try { set(declarator.getPos(selector), declarator.getTypes(), tuple, coercions); } catch (Exception exception) { throw new TupleException( "unable to set into: " + declarator.print() + ", using selector: " + selector.print(), exception); } }
/** * Method set sets the values in the given selector positions to the values from the given Tuple. * * <p>If type information is given, each incoming value from tuple will be coerced from its * canonical type to the current type as declared in the declarator. * * @param declarator of type Fields * @param selector of type Fields * @param tuple of type Tuple */ public void set(Fields declarator, Fields selector, Tuple tuple) { try { set( declarator.getPos(selector), declarator.getTypes(), tuple, TupleEntry.getCoercions(declarator, tuple)); } catch (Exception exception) { throw new TupleException( "unable to set into: " + declarator.print() + ", using selector: " + selector.print(), exception); } }