org.ow2.asmdex.util
Class TextLeaf

java.lang.Object
  extended by org.ow2.asmdex.util.TextLeaf
All Implemented Interfaces:
TextComponent

public class TextLeaf
extends java.lang.Object
implements TextComponent

Leaf of a tree that contains a text and can print it.

Author:
Julien Névo

Field Summary
protected  java.lang.StringBuffer text
          The text.
 
Constructor Summary
TextLeaf(java.lang.StringBuffer text)
          Builds a leaf from a given text.
 
Method Summary
 void print(java.io.PrintWriter pw)
          Prints the given text tree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

text

protected java.lang.StringBuffer text
The text.

Constructor Detail

TextLeaf

public TextLeaf(java.lang.StringBuffer text)
Builds a leaf from a given text.

Parameters:
text - the text.
Method Detail

print

public void print(java.io.PrintWriter pw)
Description copied from interface: TextComponent
Prints the given text tree.

Specified by:
print in interface TextComponent
Parameters:
pw - the writer to be used to print the tree.