org.ow2.asmdex.util
Class TextComposite

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

public class TextComposite
extends java.lang.Object
implements TextComponent

Contains various TextComponents, which can be Composite or TextLeaf.

Author:
Julien Névo

Constructor Summary
TextComposite()
           
 
Method Summary
 void addComponent(TextComponent component)
          Adds a TextComponent to the list.
 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
 

Constructor Detail

TextComposite

public TextComposite()
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.

addComponent

public void addComponent(TextComponent component)
Adds a TextComponent to the list.

Parameters:
component - the TextComponent to add.