Class PageInfo
java.lang.Object
org.apache.jasper.compiler.PageInfo
A repository for various info about the translation unit under compilation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate BeanRepositoryprivate intprivate Stringprivate Stringprivate Stringprivate Stringprivate booleanprivate Stringprivate Stringprivate Stringprivate Stringprivate booleanprivate Stringprivate booleanprivate Stringprivate booleanprivate booleanprivate Stringprivate booleanprivate Stringprivate booleanprivate booleanprivate booleanprivate Stringprivate Stringprivate Stringprivate intprivate Stringprivate Stringprivate booleanprivate booleanprivate Stringprivate static final String[]These classes/packages are automatically imported by the generated code.private HashMap<String, TagLibraryInfo> private booleanprivate Stringprivate HashMap<String, LinkedList<String>> private String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidaddImports(List<String> imports) voidvoidaddPrefixMapping(String prefix, String uri) voidaddTaglib(String uri, TagLibraryInfo info) booleancontainsPrefix(String prefix) booleanintGets the value of the 'extends' page directive attribute.getExtends(boolean useDefault) Gets the value of the 'extends' page directive attribute.getInfo()getLanguage(boolean useDefault) intgetNonCustomTagPrefix(String prefix) (package private) StringGets the resource location path of the translation unit's top-level page.booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanCheck if the plugin ID has been previously declared.booleanbooleanbooleanbooleanbooleanvoidpopPrefixMapping(String prefix) voidpushPrefixMapping(String prefix, String uri) voidputNonCustomTagPrefix(String prefix, Mark where) voidsetAutoFlush(String value, Node n, ErrorDispatcher err) voidsetBuffer(int size) voidsetBufferValue(String value, Node n, ErrorDispatcher err) voidsetContentType(String value) voidsetDeferredSyntaxAllowedAsLiteral(boolean s) voidsetDeferredSyntaxAllowedAsLiteral(String value, Node n, ErrorDispatcher err, boolean pagedir) voidsetDoctypeName(String doctypeName) voidsetDoctypePublic(String doctypePublic) voidsetDoctypeSystem(String doctypeSystem) voidsetELIgnored(boolean s) voidsetErrorOnUndeclaredNamespace(boolean s) voidsetErrorPage(String value) voidsetExtends(String value, Node.PageDirective n) voidsetHasJspRoot(boolean s) voidsetIncludeCoda(List<String> coda) voidsetIncludePrelude(List<String> prelude) voidvoidsetIsELIgnored(String value, Node n, ErrorDispatcher err, boolean pagedir) voidsetIsErrorPage(String value, Node n, ErrorDispatcher err) voidsetIsJspPrefixHijacked(boolean isHijacked) voidsetIsThreadSafe(String value, Node n, ErrorDispatcher err) voidsetLanguage(String value, Node n, ErrorDispatcher err, boolean pagedir) voidsetMaxTagNesting(int maxTagNesting) voidsetOmitXmlDecl(String omit) (package private) voidsetRootPath(String rootPath) Sets the resource location path of the translation unit's top-level page.voidsetScriptingInvalid(boolean s) voidsetScriptless(boolean s) voidsetSession(String value, Node n, ErrorDispatcher err) voidsetTrimDirectiveWhitespaces(boolean s) voidsetTrimDirectiveWhitespaces(String value, Node n, ErrorDispatcher err, boolean pagedir)
-
Field Details
-
STANDARD_IMPORTS
These classes/packages are automatically imported by the generated code. -
imports
-
dependants
-
beanRepository
-
taglibsMap
-
jspPrefixMapper
-
xmlPrefixMapper
-
nonCustomTagPrefixMap
-
jspFile
-
defaultLanguage
-
language
-
defaultExtends
-
xtends
-
contentType
-
session
-
isSession
private boolean isSession -
bufferValue
-
buffer
private int buffer -
autoFlush
-
isAutoFlush
private boolean isAutoFlush -
isThreadSafeValue
-
isThreadSafe
private boolean isThreadSafe -
isErrorPageValue
-
isErrorPage
private boolean isErrorPage -
errorPage
-
info
-
maxTagNesting
private int maxTagNesting -
scriptless
private boolean scriptless -
scriptingInvalid
private boolean scriptingInvalid -
isELIgnoredValue
-
isELIgnored
private boolean isELIgnored -
omitXmlDecl
-
doctypeName
-
doctypePublic
-
doctypeSystem
-
deferredSyntaxAllowedAsLiteralValue
-
deferredSyntaxAllowedAsLiteral
private boolean deferredSyntaxAllowedAsLiteral -
trimDirectiveWhitespacesValue
-
trimDirectiveWhitespaces
private boolean trimDirectiveWhitespaces -
errorOnUndeclaredNamespace
private boolean errorOnUndeclaredNamespace -
isJspPrefixHijacked
private boolean isJspPrefixHijacked -
prefixes
-
hasJspRoot
private boolean hasJspRoot -
includePrelude
-
includeCoda
-
pluginDcls
-
rootPath
-
-
Constructor Details
-
PageInfo
PageInfo(BeanRepository beanRepository, String jspFile)
-
-
Method Details
-
isPluginDeclared
Check if the plugin ID has been previously declared. Make a not that this Id is now declared.- Returns:
- true if Id has been declared.
-
addImports
-
addImport
-
getImports
-
getJspFile
-
addDependant
-
getDependants
-
getBeanRepository
-
getMaxTagNesting
public int getMaxTagNesting() -
setMaxTagNesting
public void setMaxTagNesting(int maxTagNesting) -
setScriptless
public void setScriptless(boolean s) -
isScriptless
public boolean isScriptless() -
setScriptingInvalid
public void setScriptingInvalid(boolean s) -
isScriptingInvalid
public boolean isScriptingInvalid() -
getIncludePrelude
-
setIncludePrelude
-
getIncludeCoda
-
setIncludeCoda
-
setHasJspRoot
public void setHasJspRoot(boolean s) -
hasJspRoot
public boolean hasJspRoot() -
getOmitXmlDecl
-
setOmitXmlDecl
-
getDoctypeName
-
setDoctypeName
-
getDoctypeSystem
-
setDoctypeSystem
-
getDoctypePublic
-
setDoctypePublic
-
setIsJspPrefixHijacked
public void setIsJspPrefixHijacked(boolean isHijacked) -
isJspPrefixHijacked
public boolean isJspPrefixHijacked() -
addPrefix
-
containsPrefix
-
addTaglib
-
getTaglib
-
getTaglibs
-
hasTaglib
-
addPrefixMapping
-
pushPrefixMapping
-
popPrefixMapping
-
getURI
-
setLanguage
public void setLanguage(String value, Node n, ErrorDispatcher err, boolean pagedir) throws JasperException - Throws:
JasperException
-
getLanguage
-
getLanguage
-
setExtends
-
getExtends
Gets the value of the 'extends' page directive attribute.- Parameters:
useDefault- TRUE if the default (org.apache.jasper.runtime.HttpJspBase) should be returned if this attribute has not been set, FALSE otherwise- Returns:
- The value of the 'extends' page directive attribute, or the default (org.apache.jasper.runtime.HttpJspBase) if this attribute has not been set and useDefault is TRUE
-
getExtends
Gets the value of the 'extends' page directive attribute.- Returns:
- The value of the 'extends' page directive attribute, or the default (org.apache.jasper.runtime.HttpJspBase) if this attribute has not been set
-
setContentType
-
getContentType
-
setBufferValue
- Throws:
JasperException
-
getBufferValue
-
getBuffer
public int getBuffer() -
setBuffer
public void setBuffer(int size) -
setSession
- Throws:
JasperException
-
getSession
-
isSession
public boolean isSession() -
setAutoFlush
- Throws:
JasperException
-
getAutoFlush
-
isAutoFlush
public boolean isAutoFlush() -
setIsThreadSafe
- Throws:
JasperException
-
getIsThreadSafe
-
isThreadSafe
public boolean isThreadSafe() -
setInfo
-
getInfo
-
setErrorPage
-
getErrorPage
-
setIsErrorPage
- Throws:
JasperException
-
getIsErrorPage
-
isErrorPage
public boolean isErrorPage() -
setIsELIgnored
public void setIsELIgnored(String value, Node n, ErrorDispatcher err, boolean pagedir) throws JasperException - Throws:
JasperException
-
setELIgnored
public void setELIgnored(boolean s) -
getIsELIgnored
-
isELIgnored
public boolean isELIgnored() -
setDeferredSyntaxAllowedAsLiteral
public void setDeferredSyntaxAllowedAsLiteral(String value, Node n, ErrorDispatcher err, boolean pagedir) throws JasperException - Throws:
JasperException
-
setDeferredSyntaxAllowedAsLiteral
public void setDeferredSyntaxAllowedAsLiteral(boolean s) -
getDeferredSyntaxAllowedAsLiteral
-
isDeferredSyntaxAllowedAsLiteral
public boolean isDeferredSyntaxAllowedAsLiteral() -
setTrimDirectiveWhitespaces
public void setTrimDirectiveWhitespaces(String value, Node n, ErrorDispatcher err, boolean pagedir) throws JasperException - Throws:
JasperException
-
setTrimDirectiveWhitespaces
public void setTrimDirectiveWhitespaces(boolean s) -
getTrimDirectiveWhitespaces
-
isTrimDirectiveWhitespaces
public boolean isTrimDirectiveWhitespaces() -
setErrorOnUndeclaredNamespace
public void setErrorOnUndeclaredNamespace(boolean s) -
errorOnUndeclaredNamespace
public boolean errorOnUndeclaredNamespace() -
putNonCustomTagPrefix
-
getNonCustomTagPrefix
-
setRootPath
Sets the resource location path of the translation unit's top-level page.- Parameters:
rootPath- Resource location path of the translation unit's top-level page
-
getRootPath
String getRootPath()Gets the resource location path of the translation unit's top-level page.- Returns:
- Resource location path of the translation unit's top-level page
-