| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private boolean | |
| private String | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if this Text node can beCheck whether this Text node can be stored in a char[] in the translet. |
| protected boolean | contextDependent()
Overrides com. Returns true if this expression/instruction depends on the context. |
| public void | display(int indent)
Overrides com. Displays the contents of this syntax tree node (to stdout). |
| protected String | |
| public void | |
| public boolean | |
| public boolean | |
| private static boolean | |
| public 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. |
| public void | parseContents(Parser parser)
Overrides com. Parse the contents of this syntax tree nodes (child nodes, XPath expressions, patterns and functions). |
| protected void | |
| public void | translate(ClassGenerator classGen, MethodGenerator methodGen)
Overrides com. Translate this node into JVM bytecodes. |
| _escaping | back to summary |
|---|---|
| private boolean _escaping | |
| _ignore | back to summary |
|---|---|
| private boolean _ignore | |
| _text | back to summary |
|---|---|
| private String _text | |
| _textElement | back to summary |
|---|---|
| private boolean _textElement | |
| Text | back to summary |
|---|---|
| public Text() Create a blank Text syntax tree node. | |
| Text | back to summary |
|---|---|
| public Text(String text) Create text syntax tree node.
| |
| canLoadAsArrayOffsetLength | back to summary |
|---|---|
| public boolean canLoadAsArrayOffsetLength() Check whether this Text node can be stored in a char[] in the translet. Calling this is precondition to calling loadAsArrayOffsetLength.
| |
| contextDependent | back to summary |
|---|---|
| protected boolean contextDependent() Overrides com. Doc from com. Returns true if this expression/instruction depends on the context. By default, every expression/instruction depends on the context unless it overrides this method. Currently used to determine if result trees are compiled using procedures or little DOMs (result tree fragments). | |
| display | back to summary |
|---|---|
| public void display(int indent) Overrides com. Doc from com. Displays the contents of this syntax tree node (to stdout). This method is intended for debugging _only_, and should be overridden by all syntax tree node implementations. | |
| getText | back to summary |
|---|---|
| protected String getText() Returns the text wrapped inside this node
| |
| ignore | back to summary |
|---|---|
| public void ignore() | |
| isIgnore | back to summary |
|---|---|
| public boolean isIgnore() | |
| isTextElement | back to summary |
|---|---|
| public boolean isTextElement() | |
| isWhitespace | back to summary |
|---|---|
| private static boolean isWhitespace(char c) | |
| loadAsArrayOffsetLength | back to summary |
|---|---|
| public 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. The pre-condition to calling this method is that canLoadAsArrayOffsetLength() returns true.
| |
| parseContents | back to summary |
|---|---|
| public void parseContents(Parser parser) Overrides com. Doc from com. Parse the contents of this syntax tree nodes (child nodes, XPath expressions, patterns and functions). The default behaviour is to parser the syntax tree node's children (since there are no common expressions, patterns, etc. that can be handled in this base class. | |
| setText | back to summary |
|---|---|
| protected void setText(String text) Set the text for this node. Appends the given text to any already existing text (using string concatenation, so use only when needed).
| |
| translate | back to summary |
|---|---|
| public void translate(ClassGenerator classGen, MethodGenerator methodGen) Overrides com. Doc from com. Translate this node into JVM bytecodes. | |