1 29 30 package com.caucho.jsp.java; 31 32 import javax.el.ELContext; 33 import javax.el.ELResolver; 34 import javax.el.FunctionMapper; 35 import javax.el.VariableMapper; 36 import java.lang.reflect.Method ; 37 38 41 public class JspGenELContext extends ELContext { 42 private final JavaJspGenerator _gen; 43 44 public JspGenELContext(JavaJspGenerator gen) 45 { 46 _gen = gen; 47 } 48 49 public ELResolver getELResolver() 50 { 51 return null; 52 } 53 54 public FunctionMapper getFunctionMapper() 55 { 56 return _funMapper; 57 } 58 59 public VariableMapper getVariableMapper() 60 { 61 return null; 62 } 63 64 private final FunctionMapper _funMapper = new FunctionMapper() 65 { 66 public Method resolveFunction(String prefix, String localName) 67 { 68 return _gen.resolveFunction(prefix, localName); 69 } 70 }; 71 } 72 | Popular Tags |