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 StringgetName()Returns the name of this functionCollection<OutputFunction>getOperands()Returns the operands of this function (its children in the function tree)StringtoLatex()Returns aLaTeXrepresentation of the function treeStringtoString()Returns a text representation of the function tree
-
Constructor Details
-
OutputString
public OutputString(String string)
-
-
Method Details
-
getName
public String getName()Description copied from interface:OutputFunctionReturns the name of this function- Specified by:
getNamein interfaceOutputFunction- Returns:
- the name of this function
-
getOperands
Description copied from interface:OutputFunctionReturns the operands of this function (its children in the function tree)- Specified by:
getOperandsin interfaceOutputFunction- Returns:
- a collection of operands
-
toString
public String toString()Description copied from interface:OutputFunctionReturns a text representation of the function tree- Specified by:
toStringin interfaceOutputFunction- Overrides:
toStringin classObject- Returns:
- a text representation of the function tree
-
toLatex
public String toLatex()Description copied from interface:OutputFunctionReturns aLaTeXrepresentation of the function tree- Specified by:
toLatexin interfaceOutputFunction- Returns:
- a
LaTeXrepresentation of the function tree
-