Skip to content

Commit

Permalink
Revise javadoc on InlineExpressionParser
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu committed Sep 24, 2023
1 parent 0d95caf commit 299cd63
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,9 @@ public interface InlineExpressionParser extends TypedSPI {

/**
* This method is used to return the inlineExpression String itself. In some cases, you may want to do
* additional processing on inlineExpression to return a specific value, in which case you need to override this
* method.
* additional processing on inlineExpression to return a specific value, in which case you need to override this method.
*
* @return result processed inline expression defined by the SPI implementation.
* @return result processed inline expression defined by the SPI implementation
*/
String handlePlaceHolder();

Expand All @@ -54,8 +53,7 @@ public interface InlineExpressionParser extends TypedSPI {
* Evaluate closure.
*
* @return closure
* @throws UnsupportedOperationException In most cases, users should not implement this method, and the return value
* of this method can only be a Groovy Closure.
* @throws UnsupportedOperationException In most cases, users should not implement this method, and the return value of this method can only be a Groovy closure
*/
default Closure<?> evaluateClosure() {
throw new UnsupportedOperationException("This SPI implementation does not support the use of this method.");
Expand Down

0 comments on commit 299cd63

Please sign in to comment.