use of org.eclipse.jst.jsp.core.internal.java.jspel.ASTFunctionInvocation in project webtools.sourceediting by eclipse.
the class JSPELContentAssistProcessor method getInvocation.
protected ASTFunctionInvocation getInvocation(int relativePosition, String elText) {
FindFunctionInvocationVisitor visitor = new FindFunctionInvocationVisitor(relativePosition);
JSPELParser parser = JSPELParser.createParser(elText);
try {
ASTExpression expression = parser.Expression();
return (ASTFunctionInvocation) expression.jjtAccept(visitor, null);
} catch (ParseException e) {
/* parse exception = no completion */
}
return (null);
}
Aggregations