static Fragment executeFragmentExpression( final IExpressionContext context, final FragmentExpression expression) { if (!(context instanceof ITemplateContext)) { throw new TemplateProcessingException( "Cannot evaluate expression \"" + expression + "\". Fragment expressions " + "can only be evaluated in a template-processing environment (as a part of an in-template expression) " + "where processing context is an implementation of " + ITemplateContext.class.getClass() + ", which it isn't (" + context.getClass().getName() + ")"); } if (expression == EMPTY_FRAGMENT_EXPRESSION) { return Fragment.EMPTY_FRAGMENT; } return resolveExecutedFragmentExpression( (ITemplateContext) context, createExecutedFragmentExpression(context, expression), // By default we will NOT consider a non existing template a failure, so that we give the system the chance // to return null here (in exchange for a call to resource.exists()). So this false will always be // applied in scenarios such as when the fragment expression is used as a parameter in a larger // fragment expression: "template : fragment (part=~{expr})" false); }
FragmentExpression.createExecutedFragmentExpression(context, (FragmentExpression) expression);
FragmentExpression.createExecutedFragmentExpression(context, fragmentExpression); FragmentExpression.createExecutedFragmentExpression(context, (FragmentExpression) fragmentExpression);
FragmentExpression.createExecutedFragmentExpression(context, (FragmentExpression) expression);
FragmentExpression.createExecutedFragmentExpression(context, (FragmentExpression) expression);
FragmentExpression.createExecutedFragmentExpression(context, fragmentExpression);
FragmentExpression.createExecutedFragmentExpression(context, fragmentExpression);
FragmentExpression.createExecutedFragmentExpression(context, fragmentExpression);
FragmentExpression.createExecutedFragmentExpression(context, fragmentExpression);
FragmentExpression.createExecutedFragmentExpression(context, fragmentExpression);
FragmentExpression.createExecutedFragmentExpression(context, fragmentExpression);