|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2009 the original author or authors. |
| 2 | + * Copyright 2002-2024 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
|
18 | 18 |
|
19 | 19 | /**
|
20 | 20 | * Parses expression strings into compiled expressions that can be evaluated.
|
21 |
| - * Supports parsing templates as well as standard expression strings. |
| 21 | + * |
| 22 | + * <p>Supports parsing template expressions as well as standard expression strings. |
22 | 23 | *
|
23 | 24 | * @author Keith Donald
|
24 | 25 | * @author Andy Clement
|
|
27 | 28 | public interface ExpressionParser {
|
28 | 29 |
|
29 | 30 | /**
|
30 |
| - * Parse the expression string and return an Expression object you can use for repeated evaluation. |
31 |
| - * <p>Some examples: |
| 31 | + * Parse the expression string and return an {@link Expression} object that |
| 32 | + * can be used for repeated evaluation. |
| 33 | + * <p>Examples: |
32 | 34 | * <pre class="code">
|
33 | 35 | * 3 + 4
|
34 | 36 | * name.firstName
|
35 | 37 | * </pre>
|
36 | 38 | * @param expressionString the raw expression string to parse
|
37 |
| - * @return an evaluator for the parsed expression |
38 |
| - * @throws ParseException an exception occurred during parsing |
| 39 | + * @return an {@code Expression} for the parsed expression |
| 40 | + * @throws ParseException if an exception occurred during parsing |
39 | 41 | */
|
40 | 42 | Expression parseExpression(String expressionString) throws ParseException;
|
41 | 43 |
|
42 | 44 | /**
|
43 |
| - * Parse the expression string and return an Expression object you can use for repeated evaluation. |
44 |
| - * <p>Some examples: |
| 45 | + * Parse the expression string and return an {@link Expression} object that |
| 46 | + * can be used for repeated evaluation. |
| 47 | + * <p>Examples: |
45 | 48 | * <pre class="code">
|
46 | 49 | * 3 + 4
|
47 | 50 | * name.firstName
|
48 | 51 | * </pre>
|
49 | 52 | * @param expressionString the raw expression string to parse
|
50 |
| - * @param context a context for influencing this expression parsing routine (optional) |
51 |
| - * @return an evaluator for the parsed expression |
52 |
| - * @throws ParseException an exception occurred during parsing |
| 53 | + * @param context a context for influencing the expression parsing routine |
| 54 | + * @return an {@code Expression} for the parsed expression |
| 55 | + * @throws ParseException if an exception occurred during parsing |
53 | 56 | */
|
54 | 57 | Expression parseExpression(String expressionString, ParserContext context) throws ParseException;
|
55 | 58 |
|
|
0 commit comments