org.matheclipse.core.convert
Class ExprVariables
- java.lang.Object
-
- org.matheclipse.core.convert.ExprVariables
-
public class ExprVariables extends java.lang.ObjectDetermine the variable symbols from a Symja expression.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classExprVariables.VariablesVisitor
-
Constructor Summary
Constructors Constructor and Description ExprVariables()Create an empty instanceExprVariables(IExpr expression)Determine the variable symbols from a Symja expression.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanadd(ISymbol symbol)Add the symbol to the set of variables.voidaddVarList(IExpr expression)Add the variables of the given expressionbooleancontains(IExpr o)booleancontainsAll(java.util.Collection<? extends IExpr> c)java.util.List<IExpr>getArrayList()IASTgetVarList()java.lang.String[]getVarListAsString()booleanisEmpty()booleanisSize(int size)Check if the expression contains the given number of variables.IExpr[]toArray(IExpr[] a)
-
-
-
Constructor Detail
-
ExprVariables
public ExprVariables()
Create an empty instance
-
ExprVariables
public ExprVariables(IExpr expression)
Determine the variable symbols from a Symja expression.
-
-
Method Detail
-
add
public boolean add(ISymbol symbol)
Add the symbol to the set of variables.- Parameters:
symbol-- Returns:
- true if the underlying set did not already contain the symbol
-
addVarList
public void addVarList(IExpr expression)
Add the variables of the given expression- Parameters:
expression-
-
contains
public boolean contains(IExpr o)
- Parameters:
o-- Returns:
- See Also:
Set.contains(java.lang.Object)
-
containsAll
public boolean containsAll(java.util.Collection<? extends IExpr> c)
- Parameters:
c-- Returns:
- See Also:
Set.containsAll(java.util.Collection)
-
getVarList
public IAST getVarList()
- Returns:
- the varList
-
getArrayList
public java.util.List<IExpr> getArrayList()
-
getVarListAsString
public java.lang.String[] getVarListAsString()
-
isEmpty
public boolean isEmpty()
- Returns:
- See Also:
Set.isEmpty()
-
isSize
public boolean isSize(int size)
Check if the expression contains the given number of variables.- Parameters:
expr-- Returns:
trueif the expr contains the given number of variables.
-
-
DMelt 3.0 © DataMelt by jWork.ORG