Interface ExprOps<E,V>
public interface ExprOps<E,V>
-
Method Summary
Modifier and TypeMethodDescriptionGet the expression as a variable - null if it is not a variableCreate a copy of an expression that serves as a prototype with the given sub expressionsstatic <E,V> Set <E> Gets the leaf expressions of the given expression - i.e.getSubExprs(E expr) Return an expression's immediate sub expressionsbooleanisFunction(E expr) Return true iff the argument is a function expressiondefault booleanstatic <E,V> E static <E,V> E replaceTopDown(ExprOps<E, V> exprOps, E expr, Function<? super E, ? extends E> fn) Pre order is probably not that usefulReturn a string representation of an expressionvarsMentioned(E expr) Returns all variables mentioned in an expression.static <E,V> Set <V> varsMentioned(ExprOps<E, V> exprOps, E expr) Computes the used variables.Create an expression that represents the given variable
-
Method Details
-
getSubExprs
-
copy
-
isFunction
Return true iff the argument is a function expression -
asVar
-
varToExpr
-
toString
-
isVar
-
varsMentioned
-
varsMentioned
Computes the used variables. PrefervarsMentioned(Object)for applications. -
getLeafs
-
replace
-
replaceTopDown
-