Modifier and Type | Method and Description |
---|---|
void |
JSilver.registerGlobalFunction(String name,
Function function)
Registers a global Function that can be used from any template.
|
Modifier and Type | Class and Description |
---|---|
class |
EscapingFunction |
class |
NonEscapingFunction |
Modifier and Type | Field and Description |
---|---|
protected Map<String,Function> |
FunctionRegistry.functions |
Modifier and Type | Method and Description |
---|---|
void |
FunctionRegistry.registerFunction(String name,
Function function)
Register a Function with a given name.
|
Modifier and Type | Class and Description |
---|---|
class |
AbsFunction
Returns the absolute value of the numeric expressions.
|
class |
MaxFunction
Returns the larger of two numeric expressions.
|
class |
MinFunction
Returns the smaller of two numeric expressions.
|
Modifier and Type | Class and Description |
---|---|
class |
AddFunction
X + Y (string).
|
class |
AndFunction
X && Y.
|
class |
DivideFunction
X / Y.
|
class |
EqualFunction
X == Y (string).
|
class |
ExistsFunction
?X.
|
class |
GreaterFunction
X > Y.
|
class |
GreaterOrEqualFunction
X >= Y.
|
class |
LessFunction
X < Y.
|
class |
LessOrEqualFunction
X <= Y.
|
class |
ModuloFunction
X % Y.
|
class |
MultiplyFunction
X * Y.
|
class |
NotEqualFunction
X != Y (string).
|
class |
NotFunction
!X.
|
class |
NumericAddFunction
X + Y (numeric).
|
class |
NumericEqualFunction
X == Y (numeric).
|
class |
NumericFunction
#X (numeric).
|
class |
NumericNotEqualFunction
X != Y (numeric).
|
class |
OrFunction
X || Y.
|
class |
SubtractFunction
X - Y.
|
Modifier and Type | Class and Description |
---|---|
class |
CrcFunction
Returns the CRC-32 of a string.
|
class |
FindFunction
Returns the numeric position of the substring in the string (if found), otherwise returns -1
similar to the Python string.find method.
|
class |
LengthFunction
Returns the length of the string expression.
|
class |
SliceFunction
Returns the string slice starting at start and ending at end, similar to the Python slice
operator.
|
Modifier and Type | Class and Description |
---|---|
class |
FirstFunction
Returns true if the local variable is the first in a loop or each.
|
class |
LastFunction
Returns true if the local variable is the last in a loop or each.
|
class |
NameFunction
Returns the Data variable name for a local variable alias.
|
class |
SubcountFunction
Returns the number of child nodes for the HDF variable.
|
Copyright © 2010–2015 Google. All rights reserved.