Package org.apache.jasper.compiler
Class PageInfo
- java.lang.Object
-
- org.apache.jasper.compiler.PageInfo
-
public class PageInfo extends Object
A repository for various info about the translation unit under compilation.- Author:
- Kin-man Chung
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDependant(String d)voidaddImport(String imp)voidaddImports(List<String> imports)voidaddPrefix(String prefix)voidaddPrefixMapping(String prefix, String uri)voidaddTaglib(String uri, javax.servlet.jsp.tagext.TagLibraryInfo info)booleancontainsPrefix(String prefix)booleanerrorOnUndeclaredNamespace()StringgetAutoFlush()org.apache.jasper.compiler.BeanRepositorygetBeanRepository()intgetBuffer()StringgetBufferValue()StringgetContentType()StringgetDeferredSyntaxAllowedAsLiteral()List<String>getDependants()StringgetDoctypeName()StringgetDoctypePublic()StringgetDoctypeSystem()StringgetErrorPage()StringgetExtends()Gets the value of the 'extends' page directive attribute.StringgetExtends(boolean useDefault)Gets the value of the 'extends' page directive attribute.List<String>getImports()List<String>getIncludeCoda()List<String>getIncludePrelude()StringgetInfo()StringgetIsELIgnored()StringgetIsErrorPage()StringgetIsThreadSafe()StringgetJspFile()StringgetLanguage()StringgetLanguage(boolean useDefault)intgetMaxTagNesting()org.apache.jasper.compiler.MarkgetNonCustomTagPrefix(String prefix)StringgetOmitXmlDecl()StringgetSession()javax.servlet.jsp.tagext.TagLibraryInfogetTaglib(String uri)Collection<javax.servlet.jsp.tagext.TagLibraryInfo>getTaglibs()StringgetTrimDirectiveWhitespaces()StringgetURI(String prefix)booleanhasJspRoot()booleanhasTaglib(String uri)booleanisAutoFlush()booleanisDeferredSyntaxAllowedAsLiteral()booleanisELIgnored()booleanisErrorPage()booleanisJspPrefixHijacked()booleanisPluginDeclared(String id)Check if the plugin ID has been previously declared.booleanisScriptingInvalid()booleanisScriptless()booleanisSession()booleanisThreadSafe()booleanisTrimDirectiveWhitespaces()voidpopPrefixMapping(String prefix)voidpushPrefixMapping(String prefix, String uri)voidputNonCustomTagPrefix(String prefix, org.apache.jasper.compiler.Mark where)voidsetAutoFlush(String value, org.apache.jasper.compiler.Node n, ErrorDispatcher err)voidsetBuffer(int size)voidsetBufferValue(String value, org.apache.jasper.compiler.Node n, ErrorDispatcher err)voidsetContentType(String value)voidsetDeferredSyntaxAllowedAsLiteral(boolean s)voidsetDeferredSyntaxAllowedAsLiteral(String value, org.apache.jasper.compiler.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, org.apache.jasper.compiler.Node.PageDirective n)voidsetHasJspRoot(boolean s)voidsetIncludeCoda(List<String> coda)voidsetIncludePrelude(List<String> prelude)voidsetInfo(String value)voidsetIsELIgnored(String value, org.apache.jasper.compiler.Node n, ErrorDispatcher err, boolean pagedir)voidsetIsErrorPage(String value, org.apache.jasper.compiler.Node n, ErrorDispatcher err)voidsetIsJspPrefixHijacked(boolean isHijacked)voidsetIsThreadSafe(String value, org.apache.jasper.compiler.Node n, ErrorDispatcher err)voidsetLanguage(String value, org.apache.jasper.compiler.Node n, ErrorDispatcher err, boolean pagedir)voidsetMaxTagNesting(int maxTagNesting)voidsetOmitXmlDecl(String omit)voidsetScriptingInvalid(boolean s)voidsetScriptless(boolean s)voidsetSession(String value, org.apache.jasper.compiler.Node n, ErrorDispatcher err)voidsetTrimDirectiveWhitespaces(boolean s)voidsetTrimDirectiveWhitespaces(String value, org.apache.jasper.compiler.Node n, ErrorDispatcher err, boolean pagedir)
-
-
-
Method Detail
-
isPluginDeclared
public boolean isPluginDeclared(String id)
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.
-
addImport
public void addImport(String imp)
-
getJspFile
public String getJspFile()
-
addDependant
public void addDependant(String d)
-
getBeanRepository
public org.apache.jasper.compiler.BeanRepository 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()
-
setHasJspRoot
public void setHasJspRoot(boolean s)
-
hasJspRoot
public boolean hasJspRoot()
-
getOmitXmlDecl
public String getOmitXmlDecl()
-
setOmitXmlDecl
public void setOmitXmlDecl(String omit)
-
getDoctypeName
public String getDoctypeName()
-
setDoctypeName
public void setDoctypeName(String doctypeName)
-
getDoctypeSystem
public String getDoctypeSystem()
-
setDoctypeSystem
public void setDoctypeSystem(String doctypeSystem)
-
getDoctypePublic
public String getDoctypePublic()
-
setDoctypePublic
public void setDoctypePublic(String doctypePublic)
-
setIsJspPrefixHijacked
public void setIsJspPrefixHijacked(boolean isHijacked)
-
isJspPrefixHijacked
public boolean isJspPrefixHijacked()
-
addPrefix
public void addPrefix(String prefix)
-
containsPrefix
public boolean containsPrefix(String prefix)
-
addTaglib
public void addTaglib(String uri, javax.servlet.jsp.tagext.TagLibraryInfo info)
-
getTaglib
public javax.servlet.jsp.tagext.TagLibraryInfo getTaglib(String uri)
-
getTaglibs
public Collection<javax.servlet.jsp.tagext.TagLibraryInfo> getTaglibs()
-
hasTaglib
public boolean hasTaglib(String uri)
-
popPrefixMapping
public void popPrefixMapping(String prefix)
-
setLanguage
public void setLanguage(String value, org.apache.jasper.compiler.Node n, ErrorDispatcher err, boolean pagedir) throws JasperException
- Throws:
JasperException
-
getLanguage
public String getLanguage(boolean useDefault)
-
getLanguage
public String getLanguage()
-
setExtends
public void setExtends(String value, org.apache.jasper.compiler.Node.PageDirective n)
-
getExtends
public String getExtends(boolean useDefault)
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
public String 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
public void setContentType(String value)
-
getContentType
public String getContentType()
-
setBufferValue
public void setBufferValue(String value, org.apache.jasper.compiler.Node n, ErrorDispatcher err) throws JasperException
- Throws:
JasperException
-
getBufferValue
public String getBufferValue()
-
getBuffer
public int getBuffer()
-
setBuffer
public void setBuffer(int size)
-
setSession
public void setSession(String value, org.apache.jasper.compiler.Node n, ErrorDispatcher err) throws JasperException
- Throws:
JasperException
-
getSession
public String getSession()
-
isSession
public boolean isSession()
-
setAutoFlush
public void setAutoFlush(String value, org.apache.jasper.compiler.Node n, ErrorDispatcher err) throws JasperException
- Throws:
JasperException
-
getAutoFlush
public String getAutoFlush()
-
isAutoFlush
public boolean isAutoFlush()
-
setIsThreadSafe
public void setIsThreadSafe(String value, org.apache.jasper.compiler.Node n, ErrorDispatcher err) throws JasperException
- Throws:
JasperException
-
getIsThreadSafe
public String getIsThreadSafe()
-
isThreadSafe
public boolean isThreadSafe()
-
setInfo
public void setInfo(String value)
-
getInfo
public String getInfo()
-
setErrorPage
public void setErrorPage(String value)
-
getErrorPage
public String getErrorPage()
-
setIsErrorPage
public void setIsErrorPage(String value, org.apache.jasper.compiler.Node n, ErrorDispatcher err) throws JasperException
- Throws:
JasperException
-
getIsErrorPage
public String getIsErrorPage()
-
isErrorPage
public boolean isErrorPage()
-
setIsELIgnored
public void setIsELIgnored(String value, org.apache.jasper.compiler.Node n, ErrorDispatcher err, boolean pagedir) throws JasperException
- Throws:
JasperException
-
setELIgnored
public void setELIgnored(boolean s)
-
getIsELIgnored
public String getIsELIgnored()
-
isELIgnored
public boolean isELIgnored()
-
setDeferredSyntaxAllowedAsLiteral
public void setDeferredSyntaxAllowedAsLiteral(String value, org.apache.jasper.compiler.Node n, ErrorDispatcher err, boolean pagedir) throws JasperException
- Throws:
JasperException
-
setDeferredSyntaxAllowedAsLiteral
public void setDeferredSyntaxAllowedAsLiteral(boolean s)
-
getDeferredSyntaxAllowedAsLiteral
public String getDeferredSyntaxAllowedAsLiteral()
-
isDeferredSyntaxAllowedAsLiteral
public boolean isDeferredSyntaxAllowedAsLiteral()
-
setTrimDirectiveWhitespaces
public void setTrimDirectiveWhitespaces(String value, org.apache.jasper.compiler.Node n, ErrorDispatcher err, boolean pagedir) throws JasperException
- Throws:
JasperException
-
setTrimDirectiveWhitespaces
public void setTrimDirectiveWhitespaces(boolean s)
-
getTrimDirectiveWhitespaces
public String getTrimDirectiveWhitespaces()
-
isTrimDirectiveWhitespaces
public boolean isTrimDirectiveWhitespaces()
-
setErrorOnUndeclaredNamespace
public void setErrorOnUndeclaredNamespace(boolean s)
-
errorOnUndeclaredNamespace
public boolean errorOnUndeclaredNamespace()
-
putNonCustomTagPrefix
public void putNonCustomTagPrefix(String prefix, org.apache.jasper.compiler.Mark where)
-
getNonCustomTagPrefix
public org.apache.jasper.compiler.Mark getNonCustomTagPrefix(String prefix)
-
-