Class OutText

  • All Implemented Interfaces:
    Command

    public final class OutText
    extends java.lang.Object
    implements Command
    This Command renders a text fragment.
    • Constructor Summary

      Constructors 
      Constructor Description
      OutText​(java.lang.String text)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void accept​(CommandVisitor visitor)
      Accept a visitor.
      java.lang.String getText()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • OutText

        public OutText​(java.lang.String text)
    • Method Detail

      • accept

        public void accept​(CommandVisitor visitor)
        Description copied from interface: Command
        Accept a visitor.
        Specified by:
        accept in interface Command
        Parameters:
        visitor - the visitor that will process this command
      • getText

        public java.lang.String getText()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object