use of lucee.runtime.type.ref.VariableReference in project Lucee by lucee.
the class Operator method unaryPrMu.
public static double unaryPrMu(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 unaryPostPlus.
// post plus
public static Double unaryPostPlus(PageContext pc, Collection.Key[] keys, double value) throws PageException {
VariableReference ref = VariableInterpreter.getVariableReference(pc, keys, true);
double rtn = Caster.toDoubleValue(ref.get(pc));
ref.set(rtn + value);
return rtn;
}
use of lucee.runtime.type.ref.VariableReference in project Lucee by lucee.
the class Operator method unaryPrDi.
public static double unaryPrDi(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.
public static String unaryPreConcat(PageContext pc, Collection.Key key, String value) throws PageException {
VariableReference ref = VariableInterpreter.getVariableReference(pc, key, true);
String rtn = Caster.toString(ref.get(pc)).concat(value);
ref.set(pc, rtn);
return rtn;
}
use of lucee.runtime.type.ref.VariableReference in project Lucee by lucee.
the class Operator method unaryPrPl.
public static double unaryPrPl(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;
}
Aggregations