private boolean shouldSkipExpressionProcessing ( String expressionString ) { // We don't skip if it's a component prop as we want Java validation // We don't optimize String expression, as we want GWT to convert Java values // to String for us (Enums, wrapped primitives...) return currentProp == null && ! String . class . getCanonicalName ( ) . equals ( currentExpressionReturnType . toString ( ) ) && isSimpleVueJsExpression ( expressionString ) ; }
In some cases we want to skip expression processing for optimization . This is when we are sure the expression is valid and there is no need to create a Java method for it .