Package org.apache.jasper.compiler
Class Node.Root
- java.lang.Object
-
- org.apache.jasper.compiler.Node
-
- org.apache.jasper.compiler.Node.Root
-
- All Implemented Interfaces:
TagConstants
- Enclosing class:
- Node
public static class Node.Root extends Node
Represents the root of a Jsp page or Jsp document
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.jasper.compiler.Node
Node.AttributeDirective, Node.AttributeGenerator, Node.ChildInfo, Node.Comment, Node.CustomTag, Node.Declaration, Node.DoBodyAction, Node.ELExpression, Node.Expression, Node.FallBackAction, Node.ForwardAction, Node.GetProperty, Node.IncludeAction, Node.IncludeDirective, Node.InvokeAction, Node.JspAttribute, Node.JspBody, Node.JspElement, Node.JspOutput, Node.JspRoot, Node.JspText, Node.NamedAttribute, Node.Nodes, Node.PageDirective, Node.ParamAction, Node.ParamsAction, Node.PlugIn, Node.Root, Node.ScriptingElement, Node.Scriptlet, Node.SetProperty, Node.TagDirective, Node.TaglibDirective, Node.TemplateText, Node.UninterpretedTag, Node.UseBean, Node.VariableDirective, Node.Visitor
-
-
Field Summary
Fields Modifier and Type Field Description private booleanhasBomprivate booleanisDefaultPageEncodingprivate booleanisEncodingSpecifiedInPrologprivate booleanisXmlSyntaxprivate java.lang.StringjspConfigPageEncprivate java.lang.StringpageEncprivate Node.RootparentRoot-
Fields inherited from class org.apache.jasper.compiler.Node
attrs, beginJavaLine, body, endJavaLine, innerClassName, localName, namedAttributeNodes, nonTaglibXmlnsAttrs, parent, qName, startMark, taglibAttrs, text
-
Fields inherited from interface org.apache.jasper.compiler.TagConstants
ATTRIBUTE_ACTION, ATTRIBUTE_DIRECTIVE_ACTION, BODY_ACTION, DECLARATION_ACTION, DIRECTIVE_ACTION, DOBODY_ACTION, ELEMENT_ACTION, EXPRESSION_ACTION, FALLBACK_ACTION, FORWARD_ACTION, GET_PROPERTY_ACTION, INCLUDE_ACTION, INCLUDE_DIRECTIVE_ACTION, INVOKE_ACTION, JSP_ATTRIBUTE_ACTION, JSP_ATTRIBUTE_DIRECTIVE_ACTION, JSP_BODY_ACTION, JSP_DECLARATION_ACTION, JSP_DOBODY_ACTION, JSP_ELEMENT_ACTION, JSP_EXPRESSION_ACTION, JSP_FALLBACK_ACTION, JSP_FORWARD_ACTION, JSP_GET_PROPERTY_ACTION, JSP_INCLUDE_ACTION, JSP_INCLUDE_DIRECTIVE_ACTION, JSP_INVOKE_ACTION, JSP_OUTPUT_ACTION, JSP_PAGE_DIRECTIVE_ACTION, JSP_PARAM_ACTION, JSP_PARAMS_ACTION, JSP_PLUGIN_ACTION, JSP_ROOT_ACTION, JSP_SCRIPTLET_ACTION, JSP_SET_PROPERTY_ACTION, JSP_TAG_DIRECTIVE_ACTION, JSP_TAGLIB_DIRECTIVE_ACTION, JSP_TEXT_ACTION, JSP_TEXT_ACTION_END, JSP_URI, JSP_USE_BEAN_ACTION, JSP_VARIABLE_DIRECTIVE_ACTION, OUTPUT_ACTION, PAGE_DIRECTIVE_ACTION, PARAM_ACTION, PARAMS_ACTION, PLUGIN_ACTION, ROOT_ACTION, SCRIPTLET_ACTION, SET_PROPERTY_ACTION, TAG_DIRECTIVE_ACTION, TAGLIB_DIRECTIVE_ACTION, TEXT_ACTION, URN_JSPTAGDIR, URN_JSPTLD, USE_BEAN_ACTION, VARIABLE_DIRECTIVE_ACTION
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(Node.Visitor v)Selects and invokes a method in the visitor class based on the node type.java.lang.StringgetJspConfigPageEncoding()java.lang.StringgetPageEncoding()Node.RootgetParentRoot()booleanhasBom()booleanisDefaultPageEncoding()booleanisEncodingSpecifiedInProlog()booleanisXmlSyntax()voidsetHasBom(boolean hasBom)voidsetIsDefaultPageEncoding(boolean isDefault)voidsetIsEncodingSpecifiedInProlog(boolean isSpecified)voidsetJspConfigPageEncoding(java.lang.String enc)voidsetPageEncoding(java.lang.String enc)-
Methods inherited from class org.apache.jasper.compiler.Node
getAttributes, getAttributeValue, getBeginJavaLine, getBody, getEndJavaLine, getInnerClassName, getLocalName, getNamedAttributeNode, getNamedAttributeNodes, getNonTaglibXmlnsAttributes, getParent, getQName, getRoot, getStart, getTaglibAttributes, getText, getTextAttribute, isDummy, setAttributes, setBeginJavaLine, setBody, setEndJavaLine, setInnerClassName
-
-
-
-
Field Detail
-
parentRoot
private Node.Root parentRoot
-
isXmlSyntax
private boolean isXmlSyntax
-
hasBom
private boolean hasBom
-
pageEnc
private java.lang.String pageEnc
-
jspConfigPageEnc
private java.lang.String jspConfigPageEnc
-
isDefaultPageEncoding
private boolean isDefaultPageEncoding
-
isEncodingSpecifiedInProlog
private boolean isEncodingSpecifiedInProlog
-
-
Method Detail
-
accept
public void accept(Node.Visitor v) throws JasperException
Description copied from class:NodeSelects and invokes a method in the visitor class based on the node type. This is abstract and should be overrode by the extending classes.- Specified by:
acceptin classNode- Parameters:
v- The visitor class- Throws:
JasperException
-
isXmlSyntax
public boolean isXmlSyntax()
-
setJspConfigPageEncoding
public void setJspConfigPageEncoding(java.lang.String enc)
-
getJspConfigPageEncoding
public java.lang.String getJspConfigPageEncoding()
-
setPageEncoding
public void setPageEncoding(java.lang.String enc)
-
getPageEncoding
public java.lang.String getPageEncoding()
-
setIsDefaultPageEncoding
public void setIsDefaultPageEncoding(boolean isDefault)
-
isDefaultPageEncoding
public boolean isDefaultPageEncoding()
-
setIsEncodingSpecifiedInProlog
public void setIsEncodingSpecifiedInProlog(boolean isSpecified)
-
isEncodingSpecifiedInProlog
public boolean isEncodingSpecifiedInProlog()
-
setHasBom
public void setHasBom(boolean hasBom)
-
hasBom
public boolean hasBom()
-
getParentRoot
public Node.Root getParentRoot()
- Returns:
- The enclosing root to this Root. Usually represents the page that includes this one.
-
-