Package | Description |
---|---|
org.tinygroup.jspengine | |
org.tinygroup.jspengine.compiler | |
org.tinygroup.jspengine.runtime | |
org.tinygroup.jspengine.servlet | |
org.tinygroup.jspengine.xmlparser |
Modifier and Type | Method and Description |
---|---|
List<JasperException> |
JspC.getJSPCompilationErrors()
Gets the list of JSP compilation errors caught during the most recent
invocation of this instance's
execute method when
failOnError has been set to FALSE. |
Modifier and Type | Method and Description |
---|---|
void |
JspCompilationContext.compile() |
Compiler |
JspCompilationContext.createCompiler(boolean jspcMode)
Create a "Compiler" object.
|
Compiler |
JspCompilationContext.createParser()
Create a compiler object for parsing only.
|
void |
JspC.execute() |
InputStream |
JspCompilationContext.getResourceAsStream(String res)
Gets a resource as a stream, relative to the meanings of this
context's implementation.
|
Set |
JspCompilationContext.getResourcePaths(String path) |
String[] |
JspCompilationContext.getTldLocation(String uri)
Gets the 'location' of the TLD associated with the given taglib 'uri'.
|
Class |
JspCompilationContext.load() |
void |
JspC.scanFiles(File base)
Locate all jsp files in the webapp.
|
void |
JspC.setArgs(String[] arg) |
Constructor and Description |
---|
EmbeddedServletOptions(javax.servlet.ServletConfig config,
javax.servlet.ServletContext context)
Create an EmbeddedServletOptions object using data available from
ServletConfig and ServletContext.
|
JspCompilationContext(String jspUri,
boolean isErrPage,
Options options,
javax.servlet.ServletContext context,
JspServletWrapper jsw,
JspRuntimeContext rctxt) |
JspCompilationContext(String tagfile,
javax.servlet.jsp.tagext.TagInfo tagInfo,
Options options,
javax.servlet.ServletContext context,
JspServletWrapper jsw,
JspRuntimeContext rctxt,
URL tagFileJarUrl) |
Modifier and Type | Method and Description |
---|---|
void |
ErrorDispatcher.throwException(org.tinygroup.jspengine.compiler.Mark where,
JasperException je)
Creates and throws a new exception from the given JasperException,
by prepending the given location information (containing file name,
line number, and column number) to the message of the given exception,
and copying the stacktrace of the given exception to the new exception.
|
Modifier and Type | Method and Description |
---|---|
void |
TagPluginManager.apply(Node.Nodes page,
ErrorDispatcher err,
PageInfo pageInfo) |
static void |
JspUtil.checkAttributes(String typeOfTag,
org.tinygroup.jspengine.compiler.Node n,
JspUtil.ValidAttribute[] validAttributes,
ErrorDispatcher err)
Checks if all mandatory attributes are present and if all attributes
present have valid names.
|
static void |
JspUtil.checkScope(String scope,
org.tinygroup.jspengine.compiler.Node n,
ErrorDispatcher err)
Checks to see if the given scope is valid.
|
JavacErrorDetail[] |
AntJavaCompiler.compile(String className,
Node.Nodes pageNodes) |
JavacErrorDetail[] |
JDTJavaCompiler.compile(String targetClassName,
Node.Nodes pageNodes) |
static void |
TextOptimizer.concatenate(Compiler compiler,
Node.Nodes page) |
static JavacErrorDetail |
ErrorDispatcher.createJavacError(String fname,
Node.Nodes page,
StringBuffer errMsgBuf,
int lineNum) |
JspProperty |
JspConfig.findJspProperty(String uri)
Find a property that best matches the supplied resource.
|
static InputStream |
JspUtil.getInputStream(String fname,
JarFile jarFile,
JspCompilationContext ctxt,
ErrorDispatcher err) |
Writer |
AntJavaCompiler.getJavaWriter(String javaFileName,
String javaEncoding) |
Writer |
JDTJavaCompiler.getJavaWriter(String javaFileName,
String javaEncoding) |
String[] |
TldLocationsCache.getLocation(String uri)
Gets the 'location' of the TLD associated with the given taglib 'uri'.
|
static String |
JspUtil.getTagHandlerClassName(String path,
ErrorDispatcher err)
Gets the fully-qualified class name of the tag handler corresponding to
the given tag file path.
|
boolean |
JspConfig.isJspPage(String uri)
To find out if an uri matches an url pattern in jsp config.
|
void |
ErrorDispatcher.javacError(JavacErrorDetail[] javacErrors) |
void |
ErrorHandler.javacError(JavacErrorDetail[] details)
Processes the given javac compilation errors.
|
void |
ErrorDispatcher.javacError(String errorReport,
Exception e) |
void |
ErrorHandler.javacError(String errorReport,
Exception exception)
Processes the given javac error report and exception.
|
void |
ErrorDispatcher.jspError(Exception e) |
void |
ErrorDispatcher.jspError(org.tinygroup.jspengine.compiler.Mark where,
Exception e) |
void |
ErrorDispatcher.jspError(org.tinygroup.jspengine.compiler.Mark where,
String errCode) |
void |
ErrorDispatcher.jspError(org.tinygroup.jspengine.compiler.Mark where,
String errCode,
String... args) |
void |
ErrorDispatcher.jspError(org.tinygroup.jspengine.compiler.Node n,
String errCode) |
void |
ErrorDispatcher.jspError(org.tinygroup.jspengine.compiler.Node n,
String errCode,
String... args) |
void |
ErrorDispatcher.jspError(org.tinygroup.jspengine.compiler.Node n,
String errCode,
String arg,
Exception e) |
void |
ErrorDispatcher.jspError(String errCode) |
void |
ErrorHandler.jspError(String msg,
Exception exception)
Processes the given JSP parse error.
|
void |
ErrorHandler.jspError(String fname,
int line,
int column,
String msg,
Exception exception)
Processes the given JSP parse error.
|
void |
ErrorDispatcher.jspError(String errCode,
String... args) |
void |
ErrorDispatcher.jspError(String errCode,
String arg,
Exception e) |
static void |
ELFunctionMapper.map(Compiler compiler,
Node.Nodes page)
Creates the functions mappers for all EL expressions in the JSP page.
|
static JavacErrorDetail[] |
ErrorDispatcher.parseJavacMessage(Node.Nodes pageNodes,
String errMsg,
String fname) |
void |
PageInfo.setAutoFlush(String value,
org.tinygroup.jspengine.compiler.Node n,
ErrorDispatcher err) |
void |
PageInfo.setBufferValue(String value,
org.tinygroup.jspengine.compiler.Node n,
ErrorDispatcher err) |
void |
PageInfo.setDeferredSyntaxAllowedAsLiteral(String value,
org.tinygroup.jspengine.compiler.Node n,
ErrorDispatcher err,
boolean pagedir) |
void |
PageInfo.setIsELIgnored(String value,
org.tinygroup.jspengine.compiler.Node n,
ErrorDispatcher err,
boolean pagedir) |
void |
PageInfo.setIsErrorPage(String value,
org.tinygroup.jspengine.compiler.Node n,
ErrorDispatcher err) |
void |
PageInfo.setIsThreadSafe(String value,
org.tinygroup.jspengine.compiler.Node n,
ErrorDispatcher err) |
void |
PageInfo.setLanguage(String value,
org.tinygroup.jspengine.compiler.Node n,
ErrorDispatcher err,
boolean pagedir) |
void |
PageInfo.setSession(String value,
org.tinygroup.jspengine.compiler.Node n,
ErrorDispatcher err) |
void |
PageInfo.setTrimDirectiveWhitespaces(String value,
org.tinygroup.jspengine.compiler.Node n,
ErrorDispatcher err,
boolean pagedir) |
void |
ErrorDispatcher.throwException(org.tinygroup.jspengine.compiler.Mark where,
JasperException je)
Creates and throws a new exception from the given JasperException,
by prepending the given location information (containing file name,
line number, and column number) to the message of the given exception,
and copying the stacktrace of the given exception to the new exception.
|
static void |
JspUtil.validateExpressions(org.tinygroup.jspengine.compiler.Mark where,
String expressions,
javax.el.FunctionMapper functionMapper,
ErrorDispatcher err)
Validates the syntax of all EL expressions within the given string.
|
Constructor and Description |
---|
JspConfig(javax.servlet.ServletContext ctxt,
Options options) |
TagLibraryInfoImpl(JspCompilationContext ctxt,
org.tinygroup.jspengine.compiler.ParserController pc,
String prefix,
String uriIn,
String[] location,
ErrorDispatcher err)
Constructor which builds a TagLibraryInfoImpl by parsing a TLD.
|
Modifier and Type | Method and Description |
---|---|
static Object |
JspRuntimeLibrary.convert(String propertyName,
String s,
Class t,
Class propertyEditorClass) |
static void |
JspRuntimeLibrary.createTypedArray(String propertyName,
Object bean,
Method method,
String[] values,
Class t,
Class propertyEditorClass)
Create a typed array.
|
static Method |
JspRuntimeLibrary.getReadMethod(Class beanClass,
String prop) |
static Object |
JspRuntimeLibrary.getValueFromBeanInfoPropertyEditor(Class attrClass,
String attrName,
String attrValue,
Class propertyEditorClass) |
static Object |
JspRuntimeLibrary.getValueFromPropertyEditorManager(Class attrClass,
String attrName,
String attrValue) |
static Method |
JspRuntimeLibrary.getWriteMethod(Class beanClass,
String prop) |
static Object |
JspRuntimeLibrary.handleGetProperty(Object o,
String prop) |
static void |
JspRuntimeLibrary.handleSetProperty(Object bean,
String prop,
boolean value) |
static void |
JspRuntimeLibrary.handleSetProperty(Object bean,
String prop,
byte value) |
static void |
JspRuntimeLibrary.handleSetProperty(Object bean,
String prop,
char value) |
static void |
JspRuntimeLibrary.handleSetProperty(Object bean,
String prop,
double value) |
static void |
JspRuntimeLibrary.handleSetProperty(Object bean,
String prop,
float value) |
static void |
JspRuntimeLibrary.handleSetProperty(Object bean,
String prop,
int value) |
static void |
JspRuntimeLibrary.handleSetProperty(Object bean,
String prop,
long value) |
static void |
JspRuntimeLibrary.handleSetProperty(Object bean,
String prop,
Object value) |
static void |
JspRuntimeLibrary.handleSetProperty(Object bean,
String prop,
short value) |
static void |
JspRuntimeLibrary.handleSetPropertyExpression(Object bean,
String prop,
String expression,
javax.servlet.jsp.PageContext pageContext,
ProtectedFunctionMapper functionMapper)
Use proprietaryEvaluate
public static void handleSetPropertyExpression(Object bean,
String prop, String expression, PageContext pageContext,
VariableResolver variableResolver, FunctionMapper functionMapper )
throws JasperException
{
try {
Method method = getWriteMethod(bean.getClass(), prop);
method.invoke(bean, new Object[] {
pageContext.getExpressionEvaluator().evaluate(
expression,
method.getParameterTypes()[0],
variableResolver,
functionMapper,
null )
});
} catch (Exception ex) {
throw new JasperException(ex);
}
}
|
static void |
JspRuntimeLibrary.introspect(Object bean,
javax.servlet.ServletRequest request) |
static void |
JspRuntimeLibrary.introspecthelper(Object bean,
String prop,
String value,
javax.servlet.ServletRequest request,
String param,
boolean ignoreMethodNF) |
Object |
JspRuntimeLibrary.PrivilegedIntrospectHelper.run() |
Modifier and Type | Method and Description |
---|---|
void |
JspServletWrapper.setCompilationException(JasperException je)
Sets the compilation exception for this JspServletWrapper.
|
Modifier and Type | Method and Description |
---|---|
Class |
JspServletWrapper.loadTagFile()
Compile (if needed) and load a tag file
|
Class |
JspServletWrapper.loadTagFilePrototype()
Compile and load a prototype for the Tag file.
|
Constructor and Description |
---|
JspServletWrapper(javax.servlet.ServletContext servletContext,
Options options,
String tagFilePath,
javax.servlet.jsp.tagext.TagInfo tagInfo,
JspRuntimeContext rctxt,
URL tagFileJarUrl) |
Modifier and Type | Method and Description |
---|---|
static Object[] |
XMLEncodingDetector.getEncoding(String fname,
JarFile jarFile,
JspCompilationContext ctxt,
ErrorDispatcher err)
Autodetects the encoding of the XML document supplied by the given
input stream.
|
TreeNode |
ParserUtils.parseXMLDocument(String uri,
InputSource is)
Parse the specified XML document, and return a
TreeNode
that corresponds to the root node of the document tree. |
TreeNode |
ParserUtils.parseXMLDocument(String uri,
InputSource is,
boolean validate)
Parse the specified XML document, and return a
TreeNode
that corresponds to the root node of the document tree. |
TreeNode |
ParserUtils.parseXMLDocument(String uri,
InputStream is)
Parse the specified XML document, and return a
TreeNode
that corresponds to the root node of the document tree. |
TreeNode |
ParserUtils.parseXMLDocument(String uri,
InputStream is,
boolean validate)
Parse the specified XML document, and return a
TreeNode
that corresponds to the root node of the document tree. |
String |
XMLEncodingDetector.scanPseudoAttribute(boolean scanningTextDecl,
XMLString value)
Scans a pseudo attribute.
|
Copyright © 2006–2018 TinyGroup. All rights reserved.