public class FlowExpressionParseUtil extends Object
| Modifier and Type | Class and Description | 
|---|---|
| static class  | FlowExpressionParseUtil.FlowExpressionContextContext used to parse a flow expression. | 
| static class  | FlowExpressionParseUtil.FlowExpressionParseExceptionAn exception that indicates a parse error. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected static Pattern | arrayPatternMatches an array access. | 
| protected static Pattern | identifierPatternMatches an identifier | 
| protected static String | identifierRegexRegular expression for an identifier. | 
| protected static Pattern | intPatternMatches integer literals | 
| protected static Pattern | longPatternMatches long literals | 
| protected static Pattern | memberselectMatches a field access. | 
| protected static Pattern | methodPatternMatches a method call. | 
| protected static Pattern | nullPatternMatches the null literal | 
| protected static Pattern | parameterPatternMatches a parameter | 
| protected static String | parameterRegexRegular expression for a formal parameter use. | 
| protected static Pattern | parenthesesPatternMatches an expression contained in matching start and end parentheses | 
| protected static Pattern | stringPatternMatches string literals | 
| protected static Pattern | superPatternMatches 'super' | 
| protected static Pattern | thisPatternMatches 'this', the self reference. | 
| protected static Pattern | unanchoredParameterPatternUnanchored; can be used to find all formal parameter uses. | 
| Constructor and Description | 
|---|
| FlowExpressionParseUtil() | 
| Modifier and Type | Method and Description | 
|---|---|
| static List<Integer> | parameterIndices(String s) | 
| static FlowExpressions.Receiver | parse(String expression,
     FlowExpressionParseUtil.FlowExpressionContext context,
     TreePath localScope,
     boolean useLocalScope)Parse a string and return its representation as a  FlowExpressions.Receiver, or throw anFlowExpressionParseUtil.FlowExpressionParseException. | 
protected static final String identifierRegex
protected static final String parameterRegex
protected static final Pattern unanchoredParameterPattern
protected static final Pattern parameterPattern
protected static final Pattern thisPattern
protected static final Pattern superPattern
protected static final Pattern identifierPattern
protected static final Pattern methodPattern
protected static final Pattern arrayPattern
protected static final Pattern memberselect
protected static final Pattern intPattern
protected static final Pattern longPattern
protected static final Pattern stringPattern
protected static final Pattern nullPattern
protected static final Pattern parenthesesPattern
public static FlowExpressions.Receiver parse(String expression, FlowExpressionParseUtil.FlowExpressionContext context, TreePath localScope, boolean useLocalScope) throws FlowExpressionParseUtil.FlowExpressionParseException
FlowExpressions.Receiver, or throw an FlowExpressionParseUtil.FlowExpressionParseException.expression - flow expression to parsecontext - information about any receiver and argumentslocalScope - path to local scope to useuseLocalScope - whether localScope should be used to resolve identifiersFlowExpressionParseUtil.FlowExpressionParseExceptionpublic static List<Integer> parameterIndices(String s)
s. Each
     formal parameter occurs in s as a string like "#1" or "#4". This routine does not do
     proper parsing; for instance, if "#2" appears within a string in s, then 2 would still be
     in the result list.