/** Reverse-concatenation: concatenate this value onto another value * known to be a {@link LuaNumber} * and return the result using rules of lua string concatenation including * metatag processing. * <p> * Only strings and numbers as represented can be concatenated, meaning * each operand must derive from {@link LuaString} or {@link LuaNumber}. * * @param lhs The left-hand-side value onto which this will be concatenated * @return {@link LuaValue} resulting from concatenation of {@code (lhs .. this)} * @throws LuaError if either operand is not of an appropriate type, * such as nil or a table * @see #concat(LuaValue) */ public LuaValue concatTo(LuaNumber lhs) { return lhs.concatmt(this); }
/** Reverse-concatenation: concatenate this value onto another value * known to be a {@link LuaNumber} * and return the result using rules of lua string concatenation including * metatag processing. * <p> * Only strings and numbers as represented can be concatenated, meaning * each operand must derive from {@link LuaString} or {@link LuaNumber}. * * @param lhs The left-hand-side value onto which this will be concatenated * @return {@link LuaValue} resulting from concatenation of {@code (lhs .. this)} * @throws LuaError if either operand is not of an appropriate type, * such as nil or a table * @see #concat(LuaValue) */ public LuaValue concatTo(LuaNumber lhs) { return lhs.concatmt(this); }
/** Reverse-concatenation: concatenate this value onto another value * known to be a {@link LuaNumber} * and return the result using rules of lua string concatenation including * metatag processing. * <p> * Only strings and numbers as represented can be concatenated, meaning * each operand must derive from {@link LuaString} or {@link LuaNumber}. * * @param lhs The left-hand-side value onto which this will be concatenated * @returns {@link LuaValue} resulting from concatenation of {@code (lhs .. this)} * @throws LuaError if either operand is not of an appropriate type, * such as nil or a table * @see #concat(LuaValue) */ public LuaValue concatTo(LuaNumber lhs) { return lhs.concatmt(this); }