|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xalan.xsltc.compiler.SyntaxTreeNode org.apache.xalan.xsltc.compiler.Instruction org.apache.xalan.xsltc.compiler.Text
final class Text
Field Summary | |
---|---|
private boolean |
_escaping
|
private boolean |
_ignore
|
private java.lang.String |
_text
|
private boolean |
_textElement
|
Fields inherited from class org.apache.xalan.xsltc.compiler.SyntaxTreeNode |
---|
_attributes, _parent, _qname, Dummy, IndentIncrement, UNKNOWN_STYLESHEET_NODE_ID |
Constructor Summary | |
---|---|
Text()
Create a blank Text syntax tree node. |
|
Text(java.lang.String text)
Create text syntax tree node. |
Method Summary | |
---|---|
boolean |
canLoadAsArrayOffsetLength()
Check whether this Text node can be stored in a char[] in the translet. |
protected boolean |
contextDependent()
Returns true if this expression/instruction depends on the context. |
void |
display(int indent)
Displays the contents of this syntax tree node (to stdout). |
protected java.lang.String |
getText()
Returns the text wrapped inside this node |
void |
ignore()
|
boolean |
isIgnore()
|
boolean |
isTextElement()
|
private static boolean |
isWhitespace(char c)
|
void |
loadAsArrayOffsetLength(ClassGenerator classGen,
MethodGenerator methodGen)
Generates code that loads the array that will contain the character data represented by this Text node, followed by the offset of the data from the start of the array, and then the length of the data. |
void |
parseContents(Parser parser)
Parse the contents of this syntax tree nodes (child nodes, XPath expressions, patterns and functions). |
protected void |
setText(java.lang.String text)
Set the text for this node. |
void |
translate(ClassGenerator classGen,
MethodGenerator methodGen)
Translate this node into JVM bytecodes. |
Methods inherited from class org.apache.xalan.xsltc.compiler.Instruction |
---|
typeCheck |
Methods inherited from class org.apache.xalan.xsltc.compiler.SyntaxTreeNode |
---|
addAttribute, addElement, addPrefixMapping, compileResultTree, dependentContents, displayContents, elementAt, elementCount, elements, getAttribute, getAttribute, getAttributes, getContents, getImportPrecedence, getLineNumber, getNodeIDForStylesheetNSLookup, getParent, getParser, getPrefixMapping, getQName, getStylesheet, getSymbolTable, getTemplate, getXSLTC, hasAttribute, hasContents, indent, isDummy, lastChild, lookupNamespace, lookupPrefix, parseChildren, removeElement, reportError, reportWarning, setAttributes, setFirstElement, setLineNumber, setParent, setParser, setPrefixMapping, setQName, setQName, translateContents, typeCheckContents, updateScope |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String _text
private boolean _escaping
private boolean _ignore
private boolean _textElement
Constructor Detail |
---|
public Text()
public Text(java.lang.String text)
text
- is the text to put in the node.Method Detail |
---|
protected java.lang.String getText()
protected void setText(java.lang.String text)
text
- is the text to wrap inside this node.public void display(int indent)
SyntaxTreeNode
display
in class SyntaxTreeNode
indent
- Indentation level for syntax tree levels.public void parseContents(Parser parser)
SyntaxTreeNode
parseContents
in class SyntaxTreeNode
parser
- reference to the XSLT parserpublic void ignore()
public boolean isIgnore()
public boolean isTextElement()
protected boolean contextDependent()
SyntaxTreeNode
contextDependent
in class SyntaxTreeNode
private static boolean isWhitespace(char c)
public void translate(ClassGenerator classGen, MethodGenerator methodGen)
Instruction
translate
in class Instruction
classGen
- BCEL Java class generatormethodGen
- BCEL Java method generatorpublic boolean canLoadAsArrayOffsetLength()
loadAsArrayOffsetLength(ClassGenerator,MethodGenerator)
public void loadAsArrayOffsetLength(ClassGenerator classGen, MethodGenerator methodGen)
#canLoadArrayOffsetLength()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |