Package output

Class OutputString

Object
OutputString
All Implemented Interfaces:
OutputFunction

public class OutputString
extends Object
implements OutputFunction
Provides an OutputFunction whose representations are a simple string
  • Constructor Summary

    Constructors 
    Constructor Description
    OutputString​(String string)  
  • Method Summary

    Modifier and Type Method Description
    String getName()
    Returns the name of this function
    Collection<OutputFunction> getOperands()
    Returns the operands of this function (its children in the function tree)
    String toLatex()
    Returns a LaTeX representation of the function tree
    String toString()
    Returns a text representation of the function tree

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface OutputFunction

    equals, hashCode
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Description copied from interface: OutputFunction
      Returns the name of this function
      Specified by:
      getName in interface OutputFunction
      Returns:
      the name of this function
    • getOperands

      public Collection<OutputFunction> getOperands()
      Description copied from interface: OutputFunction
      Returns the operands of this function (its children in the function tree)
      Specified by:
      getOperands in interface OutputFunction
      Returns:
      a collection of operands
    • toString

      public String toString()
      Description copied from interface: OutputFunction
      Returns a text representation of the function tree
      Specified by:
      toString in interface OutputFunction
      Overrides:
      toString in class Object
      Returns:
      a text representation of the function tree
    • toLatex

      public String toLatex()
      Description copied from interface: OutputFunction
      Returns a LaTeX representation of the function tree
      Specified by:
      toLatex in interface OutputFunction
      Returns:
      a LaTeX representation of the function tree