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.
  • Field Details

    • STANDARD_IMPORTS

      private static final String[] STANDARD_IMPORTS
      These classes/packages are automatically imported by the generated code.
    • imports

      private List<String> imports
    • dependants

      private List<String> dependants
    • beanRepository

      private BeanRepository beanRepository
    • taglibsMap

      private HashMap<String,javax.servlet.jsp.tagext.TagLibraryInfo> taglibsMap
    • jspPrefixMapper

      private HashMap<String,String> jspPrefixMapper
    • xmlPrefixMapper

      private HashMap<String,LinkedList<String>> xmlPrefixMapper
    • nonCustomTagPrefixMap

      private HashMap<String,Mark> nonCustomTagPrefixMap
    • jspFile

      private String jspFile
    • defaultLanguage

      private String defaultLanguage
    • language

      private String language
    • defaultExtends

      private String defaultExtends
    • xtends

      private String xtends
    • contentType

      private String contentType
    • session

      private String session
    • isSession

      private boolean isSession
    • bufferValue

      private String bufferValue
    • buffer

      private int buffer
    • autoFlush

      private String autoFlush
    • isAutoFlush

      private boolean isAutoFlush
    • isThreadSafeValue

      private String isThreadSafeValue
    • isThreadSafe

      private boolean isThreadSafe
    • isErrorPageValue

      private String isErrorPageValue
    • isErrorPage

      private boolean isErrorPage
    • errorPage

      private String errorPage
    • info

      private String info
    • maxTagNesting

      private int maxTagNesting
    • scriptless

      private boolean scriptless
    • scriptingInvalid

      private boolean scriptingInvalid
    • isELIgnoredValue

      private String isELIgnoredValue
    • isELIgnored

      private boolean isELIgnored
    • omitXmlDecl

      private String omitXmlDecl
    • doctypeName

      private String doctypeName
    • doctypePublic

      private String doctypePublic
    • doctypeSystem

      private String doctypeSystem
    • deferredSyntaxAllowedAsLiteralValue

      private String deferredSyntaxAllowedAsLiteralValue
    • deferredSyntaxAllowedAsLiteral

      private boolean deferredSyntaxAllowedAsLiteral
    • trimDirectiveWhitespacesValue

      private String trimDirectiveWhitespacesValue
    • trimDirectiveWhitespaces

      private boolean trimDirectiveWhitespaces
    • errorOnUndeclaredNamespace

      private boolean errorOnUndeclaredNamespace
    • isJspPrefixHijacked

      private boolean isJspPrefixHijacked
    • prefixes

      private HashSet<String> prefixes
    • hasJspRoot

      private boolean hasJspRoot
    • includePrelude

      private List<String> includePrelude
    • includeCoda

      private List<String> includeCoda
    • pluginDcls

      private List<String> pluginDcls
    • rootPath

      private String rootPath
  • Constructor Details

  • Method Details

    • 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.
    • addImports

      public void addImports(List<String> imports)
    • addImport

      public void addImport(String imp)
    • getImports

      public List<String> getImports()
    • getJspFile

      public String getJspFile()
    • addDependant

      public void addDependant(String d)
    • getDependants

      public List<String> getDependants()
    • getBeanRepository

      public 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()
    • getIncludePrelude

      public List<String> getIncludePrelude()
    • setIncludePrelude

      public void setIncludePrelude(List<String> prelude)
    • getIncludeCoda

      public List<String> getIncludeCoda()
    • setIncludeCoda

      public void setIncludeCoda(List<String> coda)
    • 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)
    • addPrefixMapping

      public void addPrefixMapping(String prefix, String uri)
    • pushPrefixMapping

      public void pushPrefixMapping(String prefix, String uri)
    • popPrefixMapping

      public void popPrefixMapping(String prefix)
    • getURI

      public String getURI(String prefix)
    • setLanguage

      public void setLanguage(String value, 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, 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, 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, Node n, ErrorDispatcher err) throws JasperException
      Throws:
      JasperException
    • getSession

      public String getSession()
    • isSession

      public boolean isSession()
    • setAutoFlush

      public void setAutoFlush(String value, Node n, ErrorDispatcher err) throws JasperException
      Throws:
      JasperException
    • getAutoFlush

      public String getAutoFlush()
    • isAutoFlush

      public boolean isAutoFlush()
    • setIsThreadSafe

      public void setIsThreadSafe(String value, 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, Node n, ErrorDispatcher err) throws JasperException
      Throws:
      JasperException
    • getIsErrorPage

      public String 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

      public String 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

      public String 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

      public String getTrimDirectiveWhitespaces()
    • isTrimDirectiveWhitespaces

      public boolean isTrimDirectiveWhitespaces()
    • setErrorOnUndeclaredNamespace

      public void setErrorOnUndeclaredNamespace(boolean s)
    • errorOnUndeclaredNamespace

      public boolean errorOnUndeclaredNamespace()
    • putNonCustomTagPrefix

      public void putNonCustomTagPrefix(String prefix, Mark where)
    • getNonCustomTagPrefix

      public Mark getNonCustomTagPrefix(String prefix)
    • setRootPath

      void setRootPath(String rootPath)
      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