| java.lang.Object com.caucho.xsl.java.XslNode
All known Subclasses: com.caucho.xsl.java.XtpDirectiveCache, com.caucho.xsl.java.XtpDirectivePage, com.caucho.xsl.java.XslVariable, com.caucho.xsl.java.XslCallTemplate, com.caucho.xsl.java.XslUseAttributeSets, com.caucho.xsl.java.XslParam, com.caucho.xsl.java.XslNamespaceAlias, com.caucho.xsl.java.XslCopy, com.caucho.xsl.java.XslAttribute, com.caucho.xsl.java.XtpExpression, com.caucho.xsl.java.XslElementNode, com.caucho.xsl.java.XslOutput, com.caucho.xsl.java.XslWithParam, com.caucho.xsl.java.XslProcessingInstruction, com.caucho.xsl.java.XslImport, com.caucho.xsl.java.XslNumber, com.caucho.xsl.java.XslKey, com.caucho.xsl.java.XslTemplate, com.caucho.xsl.java.XslInclude, com.caucho.xsl.java.XslIf, com.caucho.xsl.java.XslWrapperNode, com.caucho.xsl.java.XslPreserveSpace, com.caucho.xsl.java.XslAttributeSet, com.caucho.xsl.java.XslOtherwise, com.caucho.xsl.java.XslForEach, com.caucho.xsl.java.XslResultDocument, com.caucho.xsl.java.XslCopyOf, com.caucho.xsl.java.XslSort, com.caucho.xsl.java.XslNamespaceNode, com.caucho.xsl.java.XslWhen, com.caucho.xsl.java.TextNode, com.caucho.xsl.java.XslText, com.caucho.xsl.java.XslStripSpace, com.caucho.xsl.java.XslApplyTemplates, com.caucho.xsl.java.XslMessage, com.caucho.xsl.java.XslChoose, com.caucho.xsl.java.XslAttributeNode, com.caucho.xsl.java.XtpScriptlet, com.caucho.xsl.java.XslElement, com.caucho.xsl.java.XtpDeclaration, com.caucho.xsl.java.XslDecimalFormat, com.caucho.xsl.java.XslValueOf, com.caucho.xsl.java.XslApplyImports, com.caucho.xsl.java.XslComment, com.caucho.xsl.java.XslStylesheet,
XslNode | abstract public class XslNode (Code) | | Represents any XSL node from the stylesheet.
|
Constructor Summary | |
protected | XslNode() |
Method Summary | |
public void | addAttribute(QName name, String value) Adds an attribute. | public void | addChild(XslNode node) Adds a child node. | protected int | addExpr(String pattern) | protected void | addNamespaceAttribute(QName name, String url) Adds an attribute. | public void | addText(String text) Adds text. | public void | addVariableCount() Add variable. | protected boolean | allowJavaSelect(AbstractPattern select) Returns true if we can compile in the java select. | public void | endAttributes() Called after all the attributes from the tag. | public void | endElement() Called when the tag closes. | protected XslParseException | error(String msg) Creates a parse exception with the proper line information. | protected XslParseException | error(Throwable e) Creates a parse exception with the proper line information. | public String | escapeJavaString(String s) | abstract public void | generate(JavaWriter out) | public void | generateChildren(JavaWriter out) Generates the code for the children. | public void | generateDeclaration(JavaWriter out) | public void | generateDeclarationChildren(JavaWriter out) Generates the declaration code for the children. | protected int | generateId() | void | generateString(JavaWriter out, String string) Produces code to generate an attribute value template. | void | generateString(JavaWriter out, String string, int mode) Produces code to generate an attribute value template. | public String | getBaseURI() Returns the base URI. | public ArrayList<XslNode> | getChildren() Returns the children. | public int | getEndLine() | protected String | getEnv() | public String | getFilename() | public NamespaceContext | getMatchNamespace() Returns the namespaces. | public String | getNamespace(String prefix) Returns the matching node in the namespace. | public NamespaceContext | getOutputNamespace() Returns the namespaces. | public XslNode | getParent() Returns the parent node. | public QName | getQName() Returns the qname of the node. | public int | getStartLine() | public String | getSystemId() | public String | getTagName() Returns the qname of the node. | public boolean | hasChildren() Returns true if there are any children. | protected Expr | parseExpr(String pattern) Parses an XPath expression in the current context. | public AbstractPattern | parseMatch(String pattern) | protected AbstractPattern | parseSelect(String pattern) | protected void | popCall(JavaWriter out) | protected void | popScope(JavaWriter out) | protected void | printAttributeValue(JavaWriter out, String name, String value) Prints an attribute value. | protected void | printAttributeValue(JavaWriter out, String value) Prints an attribute value. | protected void | printExprTest(JavaWriter out, int id, String node) Prints a test expr. | protected void | printFragmentString(JavaWriter out, String id) Prints the children as a fragment stored in a variable. | protected void | printFragmentValue(JavaWriter out, String id) Prints the children as a fragment stored in a variable. | protected void | printNamespace(JavaWriter out, NamespaceContext namespace) | protected void | printPopScope(JavaWriter out) | protected String | printSelectBegin(JavaWriter out, AbstractPattern select, boolean isForEach, String loopVar) Prints iterator code to start a select. | protected void | printStringExpr(JavaWriter out, String exprString) | protected void | pushCall(JavaWriter out) | public void | setEndLocation(String filename, int line) Sets the end location of the node. | public void | setGenerator(JavaGenerator gen) Sets the Java generator. | public void | setParent(XslNode parent) | public void | setQName(QName name) | public void | setStartLocation(String systemId, String filename, int line) Sets the start location of the node. | protected void | stringExpr(JavaWriter out, String exprString) | public String | toString() Returns a printable version of the node. |
_endLine | protected int _endLine(Code) | | |
_startLine | protected int _startLine(Code) | | |
XslNode | protected XslNode()(Code) | | |
addVariableCount | public void addVariableCount()(Code) | | Add variable.
|
allowJavaSelect | protected boolean allowJavaSelect(AbstractPattern select)(Code) | | Returns true if we can compile in the java select.
|
endAttributes | public void endAttributes() throws XslParseException(Code) | | Called after all the attributes from the tag.
|
endElement | public void endElement() throws Exception(Code) | | Called when the tag closes.
|
generate | abstract public void generate(JavaWriter out) throws Exception(Code) | | Generates the code for the tag
Parameters: out - the output writer for the generated java. |
generateChildren | public void generateChildren(JavaWriter out) throws Exception(Code) | | Generates the code for the children.
Parameters: out - the output writer for the generated java. |
generateDeclaration | public void generateDeclaration(JavaWriter out) throws Exception(Code) | | Generates the prelude code for the tag
Parameters: out - the output writer for the generated java. |
generateDeclarationChildren | public void generateDeclarationChildren(JavaWriter out) throws Exception(Code) | | Generates the declaration code for the children.
Parameters: out - the output writer for the generated java. |
generateId | protected int generateId()(Code) | | |
generateString | void generateString(JavaWriter out, String string) throws Exception(Code) | | Produces code to generate an attribute value template. The same
code is used to produce a string ('a{b}c' -> "a" + b + "c") or a series of
print statements (',').
Parameters: string - the source template Parameters: mode - separator: either '+' or ',' Parameters: elt - the containing element. Needed for namespaces. |
generateString | void generateString(JavaWriter out, String string, int mode) throws Exception(Code) | | Produces code to generate an attribute value template. The same
code is used to produce a string ('a{b}c' -> "a" + b + "c") or a series of
print statements (',').
Parameters: string - the source template Parameters: mode - separator: either '+' or ',' Parameters: elt - the containing element. Needed for namespaces. |
getBaseURI | public String getBaseURI()(Code) | | Returns the base URI.
|
getEndLine | public int getEndLine()(Code) | | Gets the ending line number
|
getFilename | public String getFilename()(Code) | | Gets the filename of the node
|
getNamespace | public String getNamespace(String prefix)(Code) | | Returns the matching node in the namespace.
|
getParent | public XslNode getParent()(Code) | | Returns the parent node.
|
getQName | public QName getQName()(Code) | | Returns the qname of the node.
|
getStartLine | public int getStartLine()(Code) | | Gets the starting line number
|
getSystemId | public String getSystemId()(Code) | | Gets the system id of the node
|
getTagName | public String getTagName()(Code) | | Returns the qname of the node.
|
hasChildren | public boolean hasChildren()(Code) | | Returns true if there are any children.
|
printFragmentString | protected void printFragmentString(JavaWriter out, String id) throws Exception(Code) | | Prints the children as a fragment stored in a variable.
|
printFragmentValue | protected void printFragmentValue(JavaWriter out, String id) throws Exception(Code) | | Prints the children as a fragment stored in a variable.
|
setEndLocation | public void setEndLocation(String filename, int line)(Code) | | Sets the end location of the node.
|
setParent | public void setParent(XslNode parent)(Code) | | Sets the parent node
|
setQName | public void setQName(QName name)(Code) | | Sets the node's qname
|
setStartLocation | public void setStartLocation(String systemId, String filename, int line)(Code) | | Sets the start location of the node.
|
toString | public String toString()(Code) | | Returns a printable version of the node.
|
|
|