use of lucee.runtime.type.ref.VariableReference in project Lucee by lucee.
the class Operator method unaryPreDivide.
// pre divide
public static Double unaryPreDivide(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 unaryPrePlus.
// pre plus
public static Double unaryPrePlus(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 unaryPoPl.
public static double unaryPoPl(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 unaryPoMi.
public static double unaryPoMi(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 unaryPostMinus.
// post minus
public static Double unaryPostMinus(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;
}
Aggregations