ca.ubc.cs.elide.nodes
Class TextNode
java.lang.Object
|
+--ca.ubc.cs.elide.nodes.ParseNode
|
+--ca.ubc.cs.elide.nodes.TextNode
- All Implemented Interfaces:
- java.lang.Cloneable, CodeNode, java.io.Serializable
- public class TextNode
- extends ParseNode
- implements CodeNode
A TextNode
represents a snippet of Java code
inside a block or method.
TextNode
is the most detail ELIDE shows, with no attempt
made to provide a structured representation of the code inside a particular snippet.
- See Also:
- Serialized Form
Method Summary |
java.lang.String |
getText()
Returns the source code contained by TextNode as a string. |
void |
setText(java.lang.String text)
Sets the source code contained by this TextNode . |
Methods inherited from class ca.ubc.cs.elide.nodes.ParseNode |
clone, findType, get, getComment, getDeclaringClass, getName, getPackage, getParent, getRoot, put, registerType, setComment, setName, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TextNode
public TextNode()
TextNode
public TextNode(java.lang.String text)
getText
public java.lang.String getText()
- Returns the source code contained by
TextNode
as a string.
setText
public void setText(java.lang.String text)
- Sets the source code contained by this
TextNode
.