Class HotspotInlineExpressionParser
java.lang.Object
org.apache.shardingsphere.infra.util.groovy.expr.HotspotInlineExpressionParser
Hotspot Inline expression parser.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongroovy.lang.Closure<?>Evaluate closure.static StringhandlePlaceHolder(String inlineExpression) Replace all inline expression placeholders.Split and evaluate inline expression.
-
Constructor Details
-
HotspotInlineExpressionParser
public HotspotInlineExpressionParser()
-
-
Method Details
-
handlePlaceHolder
Replace all inline expression placeholders.- Parameters:
inlineExpression- inline expression with$->- Returns:
- result inline expression with
$
-
splitAndEvaluate
Split and evaluate inline expression.- Returns:
- result list
-
evaluateClosure
public groovy.lang.Closure<?> evaluateClosure()Evaluate closure.- Returns:
- closure
-