Class ApplicationTerm
java.lang.Object
de.uni_freiburg.informatik.ultimate.logic.Term
de.uni_freiburg.informatik.ultimate.logic.ApplicationTerm
public class ApplicationTerm extends Term
Represents a function application term. This consists of a function symbol and zero or more sub-terms (the parameters
of the function). A constant is represented as function application with zero parameters.
An application term is created by
Script.term(String, Term...) or for indexed function symbols or for symbols
with generic return sort by Script.term(String, String[], Sort, Term...).- Author:
- hoenicke
-
Field Summary
-
Method Summary
Modifier and Type Method Description FunctionSymbolgetFunction()Get the function symbol.Term[]getParameters()Get the parameters of the function application.SortgetSort()Returns the SMTLIB sort of this term.voidtoStringHelper(java.util.ArrayDeque<java.lang.Object> mTodo)Convert a term to a string in a stack based fashion.Methods inherited from class de.uni_freiburg.informatik.ultimate.logic.Term
getFreeVars, getTheory, hashCode, toString, toStringDirect
-
Method Details
-
getFunction
Get the function symbol.- Returns:
- the function symbol.
- See Also:
FunctionSymbol.getName()
-
getParameters
Get the parameters of the function application.- Returns:
- the parameters. For constants this array is empty. Never write to this array!
-
getSort
Returns the SMTLIB sort of this term. -
toStringHelper
public void toStringHelper(java.util.ArrayDeque<java.lang.Object> mTodo)Convert a term to a string in a stack based fashion. This is used for internal purposes. External users can just use toString() or toStringDirect().- Specified by:
toStringHelperin classTerm- Parameters:
mTodo- The stack where to put the strings and sub terms.- See Also:
PrintTerm
-