use of lucee.runtime.type.ref.VariableReference in project Lucee by lucee.
the class Operator method unaryPreMinus.
// pre minus
public static Double unaryPreMinus(PageContext pc, Collection.Key[] keys, double value) throws PageException {
VariableReference ref = VariableInterpreter.getVariableReference(pc, keys, true);
double rtn = Caster.toDoubleValue(ref.get(pc)) - value;
ref.set(rtn);
return rtn;
}
use of lucee.runtime.type.ref.VariableReference in project Lucee by lucee.
the class Operator method unaryPreConcat.
// Concat
public static String unaryPreConcat(PageContext pc, Collection.Key[] keys, String value) throws PageException {
VariableReference ref = VariableInterpreter.getVariableReference(pc, keys, true);
String rtn = Caster.toString(ref.get(pc)).concat(value);
ref.set(pc, rtn);
return rtn;
}
Aggregations