Methods Summary |
---|
public void | addDependant(java.lang.String d)
if (!dependants.contains(d) && !jspFile.equals(d))
dependants.add(d);
|
public void | addImport(java.lang.String imp)
this.imports.add(imp);
|
public void | addImports(java.util.List imports)
this.imports.addAll(imports);
|
public void | addPrefix(java.lang.String prefix)
prefixes.add(prefix);
|
public void | addPrefixMapping(java.lang.String prefix, java.lang.String uri)
jspPrefixMapper.put(prefix, uri);
|
public void | addTaglib(java.lang.String uri, javax.servlet.jsp.tagext.TagLibraryInfo info)
taglibsMap.put(uri, info);
|
public boolean | containsPrefix(java.lang.String prefix)
return prefixes.contains(prefix);
|
public java.lang.String | getAutoFlush()
return autoFlush;
|
public BeanRepository | getBeanRepository()
return beanRepository;
|
public int | getBuffer()
return buffer;
|
public java.lang.String | getBufferValue()
return bufferValue;
|
public java.lang.String | getContentType()
return contentType;
|
public java.lang.String | getDeferredSyntaxAllowedAsLiteral()
return deferredSyntaxAllowedAsLiteralValue;
|
public java.util.List | getDependants()
return dependants;
|
public java.lang.String | getDoctypeName()
return doctypeName;
|
public java.lang.String | getDoctypePublic()
return doctypePublic;
|
public java.lang.String | getDoctypeSystem()
return doctypeSystem;
|
public java.lang.String | getErrorPage()
return errorPage;
|
public java.lang.String | getExtends(boolean useDefault)Gets the value of the 'extends' page directive attribute.
return (xtends == null && useDefault ? defaultExtends : xtends);
|
public java.lang.String | getExtends()Gets the value of the 'extends' page directive attribute.
return getExtends(true);
|
public java.util.List | getImports()
return imports;
|
public java.util.List | getIncludeCoda()
return includeCoda;
|
public java.util.List | getIncludePrelude()
return includePrelude;
|
public java.lang.String | getInfo()
return info;
|
public java.lang.String | getIsELIgnored()
return isELIgnoredValue;
|
public java.lang.String | getIsErrorPage()
return isErrorPageValue;
|
public java.lang.String | getIsThreadSafe()
return isThreadSafeValue;
|
public java.lang.String | getJspFile()
return jspFile;
|
public java.lang.String | getLanguage(boolean useDefault)
return (language == null && useDefault ? defaultLanguage : language);
|
public java.lang.String | getLanguage()
return getLanguage(true);
|
public int | getMaxTagNesting()
return maxTagNesting;
|
public Mark | getNonCustomTagPrefix(java.lang.String prefix)
return (Mark) nonCustomTagPrefixMap.get(prefix);
|
public java.lang.String | getOmitXmlDecl()
return omitXmlDecl;
|
java.lang.String | getRootPath()Gets the resource location path of the translation unit's top-level
page.
return rootPath;
|
public java.lang.String | getSession()
return session;
|
public javax.servlet.jsp.tagext.TagLibraryInfo | getTaglib(java.lang.String uri)
return (TagLibraryInfo) taglibsMap.get(uri);
|
public java.util.Collection | getTaglibs()
return taglibsMap.values();
|
public java.lang.String | getTrimDirectiveWhitespaces()
return trimDirectiveWhitespacesValue;
|
public java.lang.String | getURI(java.lang.String prefix)
String uri = null;
LinkedList stack = (LinkedList) xmlPrefixMapper.get(prefix);
if (stack == null || stack.size() == 0) {
uri = (String) jspPrefixMapper.get(prefix);
} else {
uri = (String) stack.getFirst();
}
return uri;
|
public boolean | hasJspRoot()
return hasJspRoot;
|
public boolean | hasTaglib(java.lang.String uri)
return taglibsMap.containsKey(uri);
|
public boolean | isAutoFlush()
return isAutoFlush;
|
public boolean | isDeferredSyntaxAllowedAsLiteral()
return deferredSyntaxAllowedAsLiteral;
|
public boolean | isELIgnored()
return isELIgnored;
|
public boolean | isErrorPage()
return isErrorPage;
|
public boolean | isJspPrefixHijacked()
return isJspPrefixHijacked;
|
public boolean | isPluginDeclared(java.lang.String id)Check if the plugin ID has been previously declared. Make a not
that this Id is now declared.
if (pluginDcls.contains(id))
return true;
pluginDcls.add(id);
return false;
|
public boolean | isScriptingInvalid()
return scriptingInvalid;
|
public boolean | isScriptless()
return scriptless;
|
public boolean | isSession()
return isSession;
|
public boolean | isThreadSafe()
return isThreadSafe;
|
public boolean | isTrimDirectiveWhitespaces()
return trimDirectiveWhitespaces;
|
public void | popPrefixMapping(java.lang.String prefix)
LinkedList stack = (LinkedList) xmlPrefixMapper.get(prefix);
if (stack == null || stack.size() == 0) {
// XXX throw new Exception("XXX");
}
stack.removeFirst();
|
public void | pushPrefixMapping(java.lang.String prefix, java.lang.String uri)
LinkedList stack = (LinkedList) xmlPrefixMapper.get(prefix);
if (stack == null) {
stack = new LinkedList();
xmlPrefixMapper.put(prefix, stack);
}
stack.addFirst(uri);
|
public void | putNonCustomTagPrefix(java.lang.String prefix, Mark where)
nonCustomTagPrefixMap.put(prefix, where);
|
public void | setAutoFlush(java.lang.String value, Node n, ErrorDispatcher err)
if ("true".equalsIgnoreCase(value))
isAutoFlush = true;
else if ("false".equalsIgnoreCase(value))
isAutoFlush = false;
else
err.jspError(n, "jsp.error.autoFlush.invalid");
autoFlush = value;
|
public void | setBuffer(int size)
buffer = size;
|
public void | setBufferValue(java.lang.String value, Node n, ErrorDispatcher err)
if ("none".equalsIgnoreCase(value))
buffer = 0;
else {
if (value == null || !value.endsWith("kb"))
err.jspError(n, "jsp.error.page.invalid.buffer");
try {
Integer k = new Integer(value.substring(0, value.length()-2));
buffer = k.intValue() * 1024;
} catch (NumberFormatException e) {
err.jspError(n, "jsp.error.page.invalid.buffer");
}
}
bufferValue = value;
|
public void | setContentType(java.lang.String value)
contentType = value;
|
public void | setDeferredSyntaxAllowedAsLiteral(java.lang.String value, Node n, ErrorDispatcher err, boolean pagedir)
if ("true".equalsIgnoreCase(value))
deferredSyntaxAllowedAsLiteral = true;
else if ("false".equalsIgnoreCase(value))
deferredSyntaxAllowedAsLiteral = false;
else {
if (pagedir)
err.jspError(n, "jsp.error.page.invalid.deferred");
else
err.jspError(n, "jsp.error.tag.invalid.deferred");
}
deferredSyntaxAllowedAsLiteralValue = value;
|
public void | setDeferredSyntaxAllowedAsLiteral(boolean s)
deferredSyntaxAllowedAsLiteral = s;
|
public void | setDoctypeName(java.lang.String doctypeName)
this.doctypeName = doctypeName;
|
public void | setDoctypePublic(java.lang.String doctypePublic)
this.doctypePublic = doctypePublic;
|
public void | setDoctypeSystem(java.lang.String doctypeSystem)
this.doctypeSystem = doctypeSystem;
|
public void | setELIgnored(boolean s)
isELIgnored = s;
|
public void | setErrorPage(java.lang.String value)
errorPage = value;
|
public void | setExtends(java.lang.String value, Node.PageDirective n)
xtends = value;
/*
* If page superclass is top level class (i.e. not in a package)
* explicitly import it. If this is not done, the compiler will assume
* the extended class is in the same pkg as the generated servlet.
*/
if (value.indexOf('.") < 0)
n.addImport(value);
|
public void | setHasJspRoot(boolean s)
hasJspRoot = s;
|
public void | setIncludeCoda(java.util.Vector coda)
includeCoda = coda;
|
public void | setIncludePrelude(java.util.Vector prelude)
includePrelude = prelude;
|
public void | setInfo(java.lang.String value)
info = value;
|
public void | setIsELIgnored(java.lang.String value, Node n, ErrorDispatcher err, boolean pagedir)
if ("true".equalsIgnoreCase(value))
isELIgnored = true;
else if ("false".equalsIgnoreCase(value))
isELIgnored = false;
else {
if (pagedir)
err.jspError(n, "jsp.error.page.invalid.iselignored");
else
err.jspError(n, "jsp.error.tag.invalid.iselignored");
}
isELIgnoredValue = value;
|
public void | setIsErrorPage(java.lang.String value, Node n, ErrorDispatcher err)
if ("true".equalsIgnoreCase(value))
isErrorPage = true;
else if ("false".equalsIgnoreCase(value))
isErrorPage = false;
else
err.jspError(n, "jsp.error.page.invalid.iserrorpage");
isErrorPageValue = value;
|
public void | setIsJspPrefixHijacked(boolean isHijacked)
isJspPrefixHijacked = isHijacked;
|
public void | setIsThreadSafe(java.lang.String value, Node n, ErrorDispatcher err)
if ("true".equalsIgnoreCase(value))
isThreadSafe = true;
else if ("false".equalsIgnoreCase(value))
isThreadSafe = false;
else
err.jspError(n, "jsp.error.page.invalid.isthreadsafe");
isThreadSafeValue = value;
|
public void | setLanguage(java.lang.String value, Node n, ErrorDispatcher err, boolean pagedir)
if (!"java".equalsIgnoreCase(value)) {
if (pagedir)
err.jspError(n, "jsp.error.page.language.nonjava");
else
err.jspError(n, "jsp.error.tag.language.nonjava");
}
language = value;
|
public void | setMaxTagNesting(int maxTagNesting)
this.maxTagNesting = maxTagNesting;
|
public void | setOmitXmlDecl(java.lang.String omit)
omitXmlDecl = omit;
|
void | setRootPath(java.lang.String rootPath)Sets the resource location path of the translation unit's top-level
page.
this.rootPath = rootPath;
|
public void | setScriptingInvalid(boolean s)
scriptingInvalid = s;
|
public void | setScriptless(boolean s)
scriptless = s;
|
public void | setSession(java.lang.String value, Node n, ErrorDispatcher err)
if ("true".equalsIgnoreCase(value))
isSession = true;
else if ("false".equalsIgnoreCase(value))
isSession = false;
else
err.jspError(n, "jsp.error.page.invalid.session");
session = value;
|
public void | setTrimDirectiveWhitespaces(java.lang.String value, Node n, ErrorDispatcher err, boolean pagedir)
if ("true".equalsIgnoreCase(value))
trimDirectiveWhitespaces = true;
else if ("false".equalsIgnoreCase(value))
trimDirectiveWhitespaces = false;
else {
if (pagedir)
err.jspError(n, "jsp.error.page.invalid.trim");
else
err.jspError(n, "jsp.error.tag.invalid.trim");
}
trimDirectiveWhitespacesValue = value;
|
public void | setTrimDirectiveWhitespaces(boolean s)
trimDirectiveWhitespaces = s;
|