com.caucho.jsp
Class ParseState

java.lang.Object
  extended by com.caucho.jsp.ParseState

public class ParseState
extends java.lang.Object

Represents the current state of the parser.


Constructor Summary
ParseState()
          Create a new parse state instance.
 
Method Summary
 void addDepend(Path path)
          Add a dependency.
 void addImport(java.lang.String importString)
          Adds an import string.
 java.lang.String findPrefix(java.lang.String uri)
           
 int getBuffer()
          Returns the buffer size in bytes.
 JspBuilder getBuilder()
          Gets the builder
 java.lang.String getCharEncoding()
          Gets the JSP's character encoding
 java.lang.String getContentType()
          Gets the JSP's content type
 java.util.ArrayList<PersistentDependency> getDependList()
          Returns the dependencies
 java.lang.Boolean getELIgnoredDefault()
          Set if JSP EL is ignored.
 java.lang.String getErrorPage()
          Gets the JSP's error page
 java.lang.Class getExtends()
          Returns the JSP's extends
 java.util.ArrayList<java.lang.String> getImportList()
          Returns the import list.
 java.lang.String getInfo()
          Returns the JSP's info string.
 JspPropertyGroup getJspPropertyGroup()
          Gets the JSP property group.
 java.lang.String getJspVersion()
          Set the version
 LineMap getLineMap()
          Returns the line map.
 Namespace getNamespaces()
           
 java.lang.String getPageEncoding()
          Gets the JSP's character encoding
 QName getQName(java.lang.String name)
          Returns the QName for the given name.
 JspResourceManager getResourceManager()
          Gets the resource manager.
 java.lang.String getUriPwd()
          Gets the URI pwd
 Xml getXml()
           
 java.lang.String getXmlPageEncoding()
          Gets the JSP's character encoding
 boolean isAutoFlush()
          Returns true if the autoFlush is enabled.
 boolean isDeferredSyntaxAllowedAsLiteral()
          Returns true if JSP whitespace is trimmed.
 boolean isELIgnored()
          Returns true if JSP EL is ignored.
 boolean isELIgnoredPageSpecified()
           
 boolean isErrorPage()
          Returns true if the errorPage is enabled.
 boolean isForbidXml()
          Returns true if parsing forbids XML
 boolean isLocalScriptingInvalid()
           
 boolean isOptionalSession()
          Returns true if the optional session is enabled.
 boolean isPrintNullAsBlank()
          Returns true if the print-null-as-blank is enabled.
 boolean isPrototype()
           
 boolean isRecycleTags()
          Returns true if recycle-tags is enabled.
 boolean isScriptingInvalid()
          Returns true if JSP scripting is invalid.
 boolean isSession()
          Returns true if the session is enabled.
 boolean isTag()
          Returns true if parsing is a tag
 boolean isThreadSafe()
          Returns true if the threadSafe is enabled.
 boolean isTrimWhitespace()
          Returns true if JSP whitespace is trimmed.
 boolean isVelocityEnabled()
          Returns true if Velocity statements are enabled.
 boolean isXml()
          Returns true if parsing is XML
 void markAutoFlushSet()
          Mark the thread safe attribute as set.
 void markBufferSet()
          Mark the buffer attribute as set.
 void markErrorPage()
          Mark the error page attribute as set.
 void markSessionSet()
          Mark the thread safe attribute as set.
 void markThreadSafeSet()
          Mark the thread safe attribute as set.
 void popNamespace(java.lang.String prefix)
          Pops a namespace.
 void pushNamespace(java.lang.String prefix, java.lang.String uri)
          Pushes a namespace.
 Path resolvePath(java.lang.String uri)
          Resolves a path.
 boolean setAutoFlush(boolean autoFlush)
          Set if the autoFlush is enabled.
 void setBom(int bom)
           
 boolean setBuffer(int buffer)
          Set the buffer size.
 void setBuilder(JspBuilder jspBuilder)
          Sets the builder
 void setCharEncoding(java.lang.String charEncoding)
          Sets the JSP's character encoding
 void setContentType(java.lang.String contentType)
          Sets the JSP's content type
 void setDeferredSyntaxAllowedAsLiteral(boolean trim)
          Set true if JSP whitespace is trimmed.
 void setELIgnored(boolean isELIgnored)
          Set if JSP EL is ignored.
 void setELIgnoredDefault(boolean isELIgnored)
          Set if JSP EL is ignored.
 void setELIgnoredPageSpecified(boolean ELIgnoredPageSpecified)
           
 boolean setErrorPage(boolean errorPage)
          Set if the errorPage is enabled.
 void setErrorPage(java.lang.String errorPage)
          Sets the JSP's error page
 void setExtends(java.lang.Class extendsValue)
          Sets the JSP's extends
 void setForbidXml(boolean isForbidXml)
          Set if parsing forbids xml
 void setInfo(java.lang.String info)
          Sets the JSP's info string
 void setJspPropertyGroup(JspPropertyGroup group)
          Sets the JSP property group.
 void setJspVersion(java.lang.String version)
          Set the version
 void setLocalScriptingInvalid(boolean isLocalScriptingInvalid)
           
 void setPageEncoding(java.lang.String pageEncoding)
          Sets the JSP's page encoding
 void setPrototype(boolean isPrototype)
           
 void setRecycleTags(boolean recycleTags)
          Set if recycle-tags is enabled.
 void setResourceManager(JspResourceManager resourceManager)
          Sets the resource manager.
 void setScriptingInvalid(boolean isScriptingInvalid)
          Set if JSP scripting is ignored.
 boolean setSession(boolean session)
          Set if the session is enabled.
 void setTag(boolean isTag)
          Set if parsing a tag
 boolean setThreadSafe(boolean threadSafe)
          Set if the threadSafe is enabled.
 void setTrimWhitespace(boolean trim)
          Set true if JSP whitespace is trimmed.
 void setUriPwd(java.lang.String uriPwd)
          Sets the URI pwd
 void setVelocityEnabled(boolean isVelocity)
          Set if velocity statements are enabled.
 void setXml(boolean isXml)
          Set if parsing is xml
 void setXml(Xml xml)
          Sets the XML parser
 void setXmlPageEncoding(java.lang.String pageEncoding)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParseState

public ParseState()
Create a new parse state instance.

Method Detail

setJspPropertyGroup

public void setJspPropertyGroup(JspPropertyGroup group)
Sets the JSP property group.


getJspPropertyGroup

public JspPropertyGroup getJspPropertyGroup()
Gets the JSP property group.


isELIgnored

public boolean isELIgnored()
Returns true if JSP EL is ignored.


setELIgnored

public void setELIgnored(boolean isELIgnored)
Set if JSP EL is ignored.


setELIgnoredDefault

public void setELIgnoredDefault(boolean isELIgnored)
Set if JSP EL is ignored.


getELIgnoredDefault

public java.lang.Boolean getELIgnoredDefault()
Set if JSP EL is ignored.


isELIgnoredPageSpecified

public boolean isELIgnoredPageSpecified()

setELIgnoredPageSpecified

public void setELIgnoredPageSpecified(boolean ELIgnoredPageSpecified)

isScriptingInvalid

public boolean isScriptingInvalid()
Returns true if JSP scripting is invalid.


setScriptingInvalid

public void setScriptingInvalid(boolean isScriptingInvalid)
Set if JSP scripting is ignored.


isLocalScriptingInvalid

public boolean isLocalScriptingInvalid()

setLocalScriptingInvalid

public void setLocalScriptingInvalid(boolean isLocalScriptingInvalid)

setVelocityEnabled

public void setVelocityEnabled(boolean isVelocity)
Set if velocity statements are enabled.


isVelocityEnabled

public boolean isVelocityEnabled()
Returns true if Velocity statements are enabled.


isSession

public boolean isSession()
Returns true if the session is enabled.


isOptionalSession

public boolean isOptionalSession()
Returns true if the optional session is enabled.


setSession

public boolean setSession(boolean session)
Set if the session is enabled.


markSessionSet

public void markSessionSet()
Mark the thread safe attribute as set.


isAutoFlush

public boolean isAutoFlush()
Returns true if the autoFlush is enabled.


setAutoFlush

public boolean setAutoFlush(boolean autoFlush)
Set if the autoFlush is enabled.


markAutoFlushSet

public void markAutoFlushSet()
Mark the thread safe attribute as set.


isThreadSafe

public boolean isThreadSafe()
Returns true if the threadSafe is enabled.


setThreadSafe

public boolean setThreadSafe(boolean threadSafe)
Set if the threadSafe is enabled.


markThreadSafeSet

public void markThreadSafeSet()
Mark the thread safe attribute as set.


setErrorPage

public boolean setErrorPage(boolean errorPage)
Set if the errorPage is enabled.


isErrorPage

public boolean isErrorPage()
Returns true if the errorPage is enabled.


markErrorPage

public void markErrorPage()
Mark the error page attribute as set.


getBuffer

public int getBuffer()
Returns the buffer size in bytes.


setBuffer

public boolean setBuffer(int buffer)
Set the buffer size.


markBufferSet

public void markBufferSet()
Mark the buffer attribute as set.


setErrorPage

public void setErrorPage(java.lang.String errorPage)
Sets the JSP's error page


getErrorPage

public java.lang.String getErrorPage()
Gets the JSP's error page


setContentType

public void setContentType(java.lang.String contentType)
Sets the JSP's content type


getContentType

public java.lang.String getContentType()
Gets the JSP's content type


setXml

public void setXml(Xml xml)
Sets the XML parser


getXml

public Xml getXml()

setCharEncoding

public void setCharEncoding(java.lang.String charEncoding)
                     throws JspParseException
Sets the JSP's character encoding

Throws:
JspParseException

getCharEncoding

public java.lang.String getCharEncoding()
Gets the JSP's character encoding


setXmlPageEncoding

public void setXmlPageEncoding(java.lang.String pageEncoding)
                        throws JspParseException
Throws:
JspParseException

setPageEncoding

public void setPageEncoding(java.lang.String pageEncoding)
                     throws JspParseException
Sets the JSP's page encoding

Throws:
JspParseException

setBom

public void setBom(int bom)

getPageEncoding

public java.lang.String getPageEncoding()
Gets the JSP's character encoding


getXmlPageEncoding

public java.lang.String getXmlPageEncoding()
Gets the JSP's character encoding


getInfo

public java.lang.String getInfo()
Returns the JSP's info string.


setInfo

public void setInfo(java.lang.String info)
Sets the JSP's info string


getExtends

public java.lang.Class getExtends()
Returns the JSP's extends


setExtends

public void setExtends(java.lang.Class extendsValue)
Sets the JSP's extends


isTag

public boolean isTag()
Returns true if parsing is a tag


setTag

public void setTag(boolean isTag)
Set if parsing a tag


isXml

public boolean isXml()
Returns true if parsing is XML


setXml

public void setXml(boolean isXml)
Set if parsing is xml


isForbidXml

public boolean isForbidXml()
Returns true if parsing forbids XML


setForbidXml

public void setForbidXml(boolean isForbidXml)
Set if parsing forbids xml


isPrintNullAsBlank

public boolean isPrintNullAsBlank()
Returns true if the print-null-as-blank is enabled.


isTrimWhitespace

public boolean isTrimWhitespace()
Returns true if JSP whitespace is trimmed.


setTrimWhitespace

public void setTrimWhitespace(boolean trim)
Set true if JSP whitespace is trimmed.


isDeferredSyntaxAllowedAsLiteral

public boolean isDeferredSyntaxAllowedAsLiteral()
Returns true if JSP whitespace is trimmed.


setDeferredSyntaxAllowedAsLiteral

public void setDeferredSyntaxAllowedAsLiteral(boolean trim)
Set true if JSP whitespace is trimmed.


setJspVersion

public void setJspVersion(java.lang.String version)
Set the version


getJspVersion

public java.lang.String getJspVersion()
Set the version


getResourceManager

public JspResourceManager getResourceManager()
Gets the resource manager.


setResourceManager

public void setResourceManager(JspResourceManager resourceManager)
Sets the resource manager.


getBuilder

public JspBuilder getBuilder()
Gets the builder


setBuilder

public void setBuilder(JspBuilder jspBuilder)
Sets the builder


addImport

public void addImport(java.lang.String importString)
               throws JspParseException
Adds an import string.

Throws:
JspParseException

getImportList

public java.util.ArrayList<java.lang.String> getImportList()
Returns the import list.


setUriPwd

public void setUriPwd(java.lang.String uriPwd)
Sets the URI pwd


getUriPwd

public java.lang.String getUriPwd()
Gets the URI pwd


getLineMap

public LineMap getLineMap()
Returns the line map.


addDepend

public void addDepend(Path path)
Add a dependency.


getDependList

public java.util.ArrayList<PersistentDependency> getDependList()
Returns the dependencies


resolvePath

public Path resolvePath(java.lang.String uri)
Resolves a path.

Parameters:
uri - the uri for the path
Returns:
the Path

setRecycleTags

public void setRecycleTags(boolean recycleTags)
Set if recycle-tags is enabled.


isRecycleTags

public boolean isRecycleTags()
Returns true if recycle-tags is enabled.


getQName

public QName getQName(java.lang.String name)
Returns the QName for the given name.


getNamespaces

public Namespace getNamespaces()

pushNamespace

public void pushNamespace(java.lang.String prefix,
                          java.lang.String uri)
Pushes a namespace.


popNamespace

public void popNamespace(java.lang.String prefix)
Pops a namespace.


findPrefix

public java.lang.String findPrefix(java.lang.String uri)

isPrototype

public boolean isPrototype()

setPrototype

public void setPrototype(boolean isPrototype)