public class FunctionIndexProcessor extends Object
Modifier and Type | Method and Description |
---|---|
static String |
convertToPolishNotation(String function)
Convert a function (in human-readable form) to the polish notation.
|
static String[] |
getFunctionCode(String functionDescription)
Split the polish notation into a tokens that can more easily be processed.
|
static String[] |
getProperties(String[] functionCode)
Get the list of properties used in the given function code.
|
static org.apache.jackrabbit.oak.api.PropertyState |
tryCalculateValue(String path,
org.apache.jackrabbit.oak.spi.state.NodeState state,
String[] functionCode)
Try to calculate the value for the given function code.
|
public static String[] getProperties(String[] functionCode)
functionCode
- the tokens, for example ["function", "lower", "@name"]public static org.apache.jackrabbit.oak.api.PropertyState tryCalculateValue(String path, org.apache.jackrabbit.oak.spi.state.NodeState state, String[] functionCode)
path
- the path of the nodestate
- the node statefunctionCode
- the tokens, for example ["function", "lower", "@name"]public static String[] getFunctionCode(String functionDescription)
functionDescription
- in polish notation, for example "function*lower*@name"Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.