org.matheclipse.core.eval.util
Class Options
- java.lang.Object
-
- org.matheclipse.core.eval.util.Options
-
public class Options extends java.lang.ObjectManaging Options associated with a function symbol.
-
-
Constructor Summary
Constructors Constructor and Description Options(ISymbol symbol, IAST currentOptionsList, int startIndex)Options(ISymbol symbol, IExpr optionExpr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description IExprgetOption(java.lang.String optionString)Get the option from the internal option list.booleanisOption(java.lang.String optionString)Get the option from the internal option list and check if it'strueorfalse.IASTreplaceAll(IAST options)
-
-
-
Constructor Detail
-
Options
public Options(ISymbol symbol, IAST currentOptionsList, int startIndex)
- Parameters:
symbol- the options symbol for determining "default option values"currentOptionsList- the AST where the option could be defined starting at positionstartIndexstartIndex- the index from which tolook for options defined incurrentOptionsList
-
-
Method Detail
-
isOption
public boolean isOption(java.lang.String optionString)
Get the option from the internal option list and check if it'strueorfalse.- Parameters:
optionString- the option string- Returns:
trueif the option is set toTrueorfalseotherwise.
-
getOption
public IExpr getOption(java.lang.String optionString)
Get the option from the internal option list.- Parameters:
optionString- the option string- Returns:
- the found option value or
nullif the option is not available
-
-
DMelt 3.0 © DataMelt by jWork.ORG