public Expression createExpression(String text) throws JellyException { try { return new JexlExpression( org.apache.commons.jexl.ExpressionFactory.createExpression(text) ); } catch (Exception e) { throw new JellyException("Unable to create expression: " + text, e); } }
/** * Creates a new Jelly exception, adorning it with location information */ protected JellyException createJellyException(String reason) { return new JellyException( reason, fileName, elementName, columnNumber, lineNumber ); }
/** * Creates a new Jelly exception, adorning it with location information */ protected JellyException createJellyException(String reason) { return new JellyException( reason, fileName, elementName, columnNumber, lineNumber ); }
/** * Creates a new Jelly exception, adorning it with location information */ protected JellyException createJellyException(String reason) { return new JellyException( reason, fileName, elementName, columnNumber, lineNumber ); }
/** * Creates a new Jelly exception, adorning it with location information */ protected JellyException createJellyException(String reason) { return new JellyException( reason, fileName, elementName, columnNumber, lineNumber ); }
public Tag createTag(String name, Attributes attributes) throws JellyException { try { return (Tag) tagClass.newInstance(); } catch (InstantiationException e) { throw new JellyException(e.toString()); } catch (IllegalAccessException e) { throw new JellyException(e.toString()); } }
public Tag createTag(String name, Attributes attributes) throws JellyException { try { return (Tag) tagClass.newInstance(); } catch (InstantiationException e) { throw new JellyException(e.toString()); } catch (IllegalAccessException e) { throw new JellyException(e.toString()); } }
public Tag createTag(String name, Attributes attributes) throws JellyException { try { return (Tag) tagClass.newInstance(); } catch (InstantiationException e) { throw new JellyException(e.toString()); } catch (IllegalAccessException e) { throw new JellyException(e.toString()); } }
public Tag createTag(String name, Attributes attributes) throws JellyException { try { return (Tag) tagClass.newInstance(); } catch (InstantiationException e) { throw new JellyException(e.toString()); } catch (IllegalAccessException e) { throw new JellyException(e.toString()); } }
private TagScript createTagScript(JellyContext context, String uri, String name) throws JellyException { TagLibrary lib = context.getTagLibrary(uri); if (lib==null) throw new JellyException("Undefined tag library namespace URI: "+uri); TagScript tagScript = lib.createTagScript(name, null/*this parameter appears to be unused.*/); if (tagScript!=null) return tagScript; tagScript = lib.createTagScript(name.replace('_','-'), null); if (tagScript!=null) return tagScript; throw new JellyException(String.format("name '%s' not found for '%s'", name, uri)); } }
/** * Parses the script from the given file then compiles it and runs it. * * @return the new child context that was used to run the script */ public JellyContext runScript(File file, XMLOutput output, boolean export, boolean inherit) throws JellyException { try { return runScript(file.toURL(), output, export, inherit); } catch (MalformedURLException e) { throw new JellyException(e.toString()); } }
/** * Parses the script from the given File then compiles it and runs it. * * @return the new child context that was used to run the script */ public JellyContext runScript(File file, XMLOutput output) throws JellyException { try { return runScript(file.toURL(), output, JellyContext.DEFAULT_EXPORT, JellyContext.DEFAULT_INHERIT); } catch (MalformedURLException e) { throw new JellyException(e.toString()); } }
/** * Parses the script from the given file then compiles it and runs it. * * @return the new child context that was used to run the script */ public JellyContext runScript(File file, XMLOutput output, boolean export, boolean inherit) throws JellyException { try { return runScript(file.toURL(), output, export, inherit); } catch (MalformedURLException e) { throw new JellyException(e.toString()); } }
public Script load(CustomTagLibrary taglib, String name, ClassLoader classLoader) throws JellyException { URL res = classLoader.getResource(taglib.basePath + '/' + name + ".groovy"); if(res==null) return null; try { GroovyClassLoaderTearOff gcl = taglib.metaClassLoader.loadTearOff(GroovyClassLoaderTearOff.class); return gcl.parse(res); } catch (IOException e) { throw new JellyException(e); } } }
/** * Parses the script from the given file then compiles it and runs it. * * @return the new child context that was used to run the script */ public JellyContext runScript(File file, XMLOutput output, boolean export, boolean inherit) throws JellyException { try { return runScript(file.toURL(), output, export, inherit); } catch (MalformedURLException e) { throw new JellyException(e.toString()); } }
public Expression createExpression(String text) throws JellyException { try { return new JexlExpression( org.apache.commons.jexl.ExpressionFactory.createExpression(text) ); } catch (Exception e) { throw new JellyException("Unable to create expression: " + text, e); } }
public Expression createExpression(String text) throws JellyException { try { return new JexlExpression( org.apache.commons.jexl.ExpressionFactory.createExpression(text) ); } catch (Exception e) { throw new JellyException("Unable to create expression: " + text, e); } }
public Expression createExpression(String text) throws JellyException { try { return new JexlExpression( org.apache.commons.jexl.ExpressionFactory.createExpression(text) ); } catch (Exception e) { throw new JellyException("Unable to create expression: " + text, e); } }
public Expression createExpression(String text) throws JellyException { try { return new JexlExpression( org.apache.commons.jexl.ExpressionFactory.createExpression(text) ); } catch (Exception e) { throw new JellyException("Unable to create expression: " + text, e); } }
public Expression createExpression(String text) throws JellyException { try { return new JexlExpression( org.apache.commons.jexl.ExpressionFactory.createExpression(text)); } catch (Exception e) { throw new JellyException("Unable to create expression: " + text, e); } }