Class TermVariable
java.lang.Object
de.uni_freiburg.informatik.ultimate.logic.Term
de.uni_freiburg.informatik.ultimate.logic.TermVariable
public class TermVariable extends Term
Represents a term variable that is used in a
lets,
quantified formulas, and
define-fun.
Term variables are created by Script.variable(String, Sort).- Author:
- Juergen Christ
-
Field Summary
-
Method Summary
Modifier and Type Method Description SortgetDeclaredSort()Return the declared sort of the variable.java.lang.StringgetName()Return the name of the variable.SortgetSort()Return the (expanded) sort of the variable.java.lang.StringtoString()The SMTLIB representation of the 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, toStringDirect
-
Method Details
-
getName
public java.lang.String getName()Return the name of the variable.- Returns:
- the name of the variable.
-
getDeclaredSort
Return the declared sort of the variable.- Returns:
- the sort of the variable that was used to declare the variable. This is not expanded if the sort is a defined sort.
-
getSort
Return the (expanded) sort of the variable. -
toString
public java.lang.String toString()The SMTLIB representation of the 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
-