Class ParsedFunctionCall
java.lang.Object
uk.ac.starlink.ttools.plot2.ParsedFunctionCall
Utility class that represents a call to a function with numeric
arguments and its textual representation.
The object modelled is of the form
funcName(arg1,arg2,...).- Since:
- 19 Mar 2025
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ParsedFunctionCallfromString(String txt) Constructs a ParsedFunctionCall instance from a string.double[]Returns the array of arguments.Returns the function name.toString()Serializes this object in the formname(arg1,arg2,...).
-
Constructor Details
-
ParsedFunctionCall
Constructor.- Parameters:
funcName- function nameargs- list of arguments, may be null
-
-
Method Details
-
getFunctionName
-
getArguments
public double[] getArguments()Returns the array of arguments.- Returns:
- args array, may be null
-
toString
-
fromString
Constructs a ParsedFunctionCall instance from a string. This does this opposite job totoString().- Parameters:
txt- string representation- Returns:
- ParsedFunctionCall object, or null if it doesn't look like one
-