Home
last modified time | relevance | path

Searched refs:literalConstant (Results 1 – 25 of 33) sorted by relevance

12

/external/jsilver/src/com/google/clearsilver/jsilver/functions/operators/
DSubtractFunction.java21 import static com.google.clearsilver.jsilver.values.Value.literalConstant;
31 return literalConstant(0 - value.asNumber(), value); in execute()
35 return literalConstant(left.asNumber() - right.asNumber(), left, right); in execute()
DExistsFunction.java21 import static com.google.clearsilver.jsilver.values.Value.literalConstant;
30 return literalConstant(value.exists(), value); in execute()
DNotFunction.java21 import static com.google.clearsilver.jsilver.values.Value.literalConstant;
30 return literalConstant(!value.asBoolean(), value); in execute()
DNumericFunction.java21 import static com.google.clearsilver.jsilver.values.Value.literalConstant;
30 return literalConstant(value.asNumber(), value); in execute()
DNotEqualFunction.java21 import static com.google.clearsilver.jsilver.values.Value.literalConstant;
31 return literalConstant(!left.equals(right), left, right); in execute()
DEqualFunction.java21 import static com.google.clearsilver.jsilver.values.Value.literalConstant;
31 return literalConstant(left.equals(right), left, right); in execute()
DGreaterOrEqualFunction.java21 import static com.google.clearsilver.jsilver.values.Value.literalConstant;
31 return literalConstant(left.asNumber() >= right.asNumber(), left, right); in execute()
DAndFunction.java21 import static com.google.clearsilver.jsilver.values.Value.literalConstant;
31 return literalConstant(left.asBoolean() && right.asBoolean(), left, right); in execute()
DDivideFunction.java21 import static com.google.clearsilver.jsilver.values.Value.literalConstant;
31 return literalConstant(left.asNumber() / right.asNumber(), left, right); in execute()
DGreaterFunction.java21 import static com.google.clearsilver.jsilver.values.Value.literalConstant;
31 return literalConstant(left.asNumber() > right.asNumber(), left, right); in execute()
DLessFunction.java21 import static com.google.clearsilver.jsilver.values.Value.literalConstant;
31 return literalConstant(left.asNumber() < right.asNumber(), left, right); in execute()
DMultiplyFunction.java21 import static com.google.clearsilver.jsilver.values.Value.literalConstant;
31 return literalConstant(left.asNumber() * right.asNumber(), left, right); in execute()
DNumericAddFunction.java21 import static com.google.clearsilver.jsilver.values.Value.literalConstant;
31 return literalConstant(left.asNumber() + right.asNumber(), left, right); in execute()
DModuloFunction.java21 import static com.google.clearsilver.jsilver.values.Value.literalConstant;
31 return literalConstant(left.asNumber() % right.asNumber(), left, right); in execute()
DOrFunction.java21 import static com.google.clearsilver.jsilver.values.Value.literalConstant;
31 return literalConstant(left.asBoolean() || right.asBoolean(), left, right); in execute()
DLessOrEqualFunction.java21 import static com.google.clearsilver.jsilver.values.Value.literalConstant;
31 return literalConstant(left.asNumber() <= right.asNumber(), left, right); in execute()
DNumericEqualFunction.java21 import static com.google.clearsilver.jsilver.values.Value.literalConstant;
31 return literalConstant(left.asNumber() == right.asNumber(), left, right); in execute()
DNumericNotEqualFunction.java21 import static com.google.clearsilver.jsilver.values.Value.literalConstant;
31 return literalConstant(left.asNumber() != right.asNumber(), left, right); in execute()
/external/jsilver/src/com/google/clearsilver/jsilver/functions/structure/
DFirstFunction.java22 import static com.google.clearsilver.jsilver.values.Value.literalConstant;
37 return literalConstant(false, arg); in execute()
41 return literalConstant(thisNode.isFirstSibling(), arg); in execute()
DSubcountFunction.java22 import static com.google.clearsilver.jsilver.values.Value.literalConstant;
37 return literalConstant(0, arg); in execute()
41 return literalConstant(thisNode.getChildCount(), arg); in execute()
DLastFunction.java22 import static com.google.clearsilver.jsilver.values.Value.literalConstant;
37 return literalConstant(false, arg); in execute()
41 return literalConstant(thisNode.isLastSibling(), arg); in execute()
/external/jsilver/src/com/google/clearsilver/jsilver/functions/string/
DLengthFunction.java21 import static com.google.clearsilver.jsilver.values.Value.literalConstant;
34 return literalConstant(value.asString().length(), value); in execute()
DFindFunction.java21 import static com.google.clearsilver.jsilver.values.Value.literalConstant;
36 return literalConstant(fullStringValue.asString().indexOf(subStringValue.asString()), in execute()
/external/jsilver/src/com/google/clearsilver/jsilver/functions/numeric/
DAbsFunction.java21 import static com.google.clearsilver.jsilver.values.Value.literalConstant;
36 return literalConstant(abs(arg.asNumber()), arg); in execute()
DMinFunction.java21 import static com.google.clearsilver.jsilver.values.Value.literalConstant;
37 return literalConstant(min(left.asNumber(), right.asNumber()), left, right); in execute()

12