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 functionCollection<OutputFunction>
getOperands()
Returns the operands of this function (its children in the function tree)String
toLatex()
Returns aLaTeX
representation of the function treeString
toString()
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:OutputFunction
Returns the name of this function- Specified by:
getName
in interfaceOutputFunction
- Returns:
- the name of this function
-
getOperands
Description copied from interface:OutputFunction
Returns the operands of this function (its children in the function tree)- Specified by:
getOperands
in interfaceOutputFunction
- 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 interfaceOutputFunction
- Overrides:
toString
in classObject
- Returns:
- a text representation of the function tree
-
toLatex
public String toLatex()Description copied from interface:OutputFunction
Returns aLaTeX
representation of the function tree- Specified by:
toLatex
in interfaceOutputFunction
- Returns:
- a
LaTeX
representation of the function tree
-