org.apache.jasper.compiler

Class Node.ScriptingElement

public abstract static class Node.ScriptingElement extends Node

Represents an expression, declaration, or scriptlet
Constructor Summary
ScriptingElement(String qName, String localName, String text, Mark start, Node parent)
ScriptingElement(String qName, String localName, Attributes nonTaglibXmlnsAttrs, Attributes taglibAttrs, Mark start, Node parent)
Method Summary
MarkgetStart()
For the same reason as above, the source line information in the contained TemplateText node should be used.
StringgetText()
When this node was created from a JSP page in JSP syntax, its text was stored as a String in the "text" field, whereas when this node was created from a JSP document, its text was stored as one or more TemplateText nodes in its body.

Constructor Detail

ScriptingElement

public ScriptingElement(String qName, String localName, String text, Mark start, Node parent)

ScriptingElement

public ScriptingElement(String qName, String localName, Attributes nonTaglibXmlnsAttrs, Attributes taglibAttrs, Mark start, Node parent)

Method Detail

getStart

public Mark getStart()
For the same reason as above, the source line information in the contained TemplateText node should be used.

getText

public String getText()
When this node was created from a JSP page in JSP syntax, its text was stored as a String in the "text" field, whereas when this node was created from a JSP document, its text was stored as one or more TemplateText nodes in its body. This method handles either case.

Returns: The text string

Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.