Class PageInfo
java.lang.Object
org.apache.jasper.compiler.PageInfo
A repository for various info about the translation unit under compilation.
- Author:
- Kin-man Chung
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDependant
(String d, Long lastModified) void
void
addImports
(List<String> imports) void
void
addPrefixMapping
(String prefix, String uri) void
addTaglib
(String uri, TagLibraryInfo info) boolean
containsPrefix
(String prefix) int
Gets the value of the 'extends' page directive attribute.getExtends
(boolean useDefault) Gets the value of the 'extends' page directive attribute.getInfo()
getLanguage
(boolean useDefault) getNonCustomTagPrefix
(String prefix) boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
Check if the plugin ID has been previously declared.boolean
boolean
boolean
boolean
boolean
void
popPrefixMapping
(String prefix) void
pushPrefixMapping
(String prefix, String uri) void
putNonCustomTagPrefix
(String prefix, Mark where) void
setAutoFlush
(String value, Node n, ErrorDispatcher err) void
setBufferValue
(String value, Node n, ErrorDispatcher err) void
setContentType
(String value) void
setDeferredSyntaxAllowedAsLiteral
(boolean isELDeferred) void
setDeferredSyntaxAllowedAsLiteral
(String value, Node n, ErrorDispatcher err, boolean pagedir) void
setDoctypeName
(String doctypeName) void
setDoctypePublic
(String doctypePublic) void
setDoctypeSystem
(String doctypeSystem) void
setELIgnored
(boolean s) void
setErrorOnELNotFound
(boolean s) void
setErrorOnELNotFound
(String value, Node n, ErrorDispatcher err, boolean pagedir) void
setErrorOnUndeclaredNamespace
(boolean errorOnUndeclaredNamespace) void
setErrorPage
(String value) void
setExtends
(String value) void
setHasJspRoot
(boolean s) void
setIncludeCoda
(Collection<String> coda) void
setIncludePrelude
(Collection<String> prelude) void
void
setIsELIgnored
(String value, Node n, ErrorDispatcher err, boolean pagedir) void
setIsErrorPage
(String value, Node n, ErrorDispatcher err) void
setIsJspPrefixHijacked
(boolean isHijacked) void
setLanguage
(String value, Node n, ErrorDispatcher err, boolean pagedir) void
setOmitXmlDecl
(String omit) void
setScriptingInvalid
(boolean s) void
setScriptless
(boolean s) void
setSession
(String value, Node n, ErrorDispatcher err) void
setTrimDirectiveWhitespaces
(boolean trimDirectiveWhitespaces) void
setTrimDirectiveWhitespaces
(String value, Node n, ErrorDispatcher err, boolean pagedir)
-
Method Details
-
isTagFile
public boolean isTagFile() -
isPluginDeclared
Check if the plugin ID has been previously declared. Make a note that this Id is now declared.- Parameters:
id
- The plugin ID to check- Returns:
- true if Id has been declared.
-
addImports
-
addImport
-
getImports
-
getJspFile
-
addDependant
-
getDependants
-
getBeanRepository
-
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
-
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() -
setSession
- Throws:
JasperException
-
getSession
-
isSession
public boolean isSession() -
setAutoFlush
- Throws:
JasperException
-
getAutoFlush
-
isAutoFlush
public boolean isAutoFlush() -
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
-
setErrorOnELNotFound
public void setErrorOnELNotFound(String value, Node n, ErrorDispatcher err, boolean pagedir) throws JasperException - Throws:
JasperException
-
setDeferredSyntaxAllowedAsLiteral
public void setDeferredSyntaxAllowedAsLiteral(String value, Node n, ErrorDispatcher err, boolean pagedir) throws JasperException - Throws:
JasperException
-
setTrimDirectiveWhitespaces
public void setTrimDirectiveWhitespaces(String value, Node n, ErrorDispatcher err, boolean pagedir) throws JasperException - Throws:
JasperException
-
setELIgnored
public void setELIgnored(boolean s) -
getIsELIgnored
-
isELIgnored
public boolean isELIgnored() -
setErrorOnELNotFound
public void setErrorOnELNotFound(boolean s) -
getErrorOnELNotFound
-
isErrorOnELNotFound
public boolean isErrorOnELNotFound() -
putNonCustomTagPrefix
-
getNonCustomTagPrefix
-
getDeferredSyntaxAllowedAsLiteral
-
isDeferredSyntaxAllowedAsLiteral
public boolean isDeferredSyntaxAllowedAsLiteral() -
setDeferredSyntaxAllowedAsLiteral
public void setDeferredSyntaxAllowedAsLiteral(boolean isELDeferred) -
getExpressionFactory
-
getTrimDirectiveWhitespaces
-
isTrimDirectiveWhitespaces
public boolean isTrimDirectiveWhitespaces() -
setTrimDirectiveWhitespaces
public void setTrimDirectiveWhitespaces(boolean trimDirectiveWhitespaces) -
getVarInfoNames
-
isErrorOnUndeclaredNamespace
public boolean isErrorOnUndeclaredNamespace() -
setErrorOnUndeclaredNamespace
public void setErrorOnUndeclaredNamespace(boolean errorOnUndeclaredNamespace)
-