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 PropertyState |
tryCalculateValue(String path,
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 PropertyState tryCalculateValue(String path, 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 © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"