Class AnnotatedTerm
java.lang.Object
de.uni_freiburg.informatik.ultimate.logic.Term
de.uni_freiburg.informatik.ultimate.logic.AnnotatedTerm
public class AnnotatedTerm extends Term
Representation of annotated terms in SMTLIB 2. This class stores terms of
the form
(! ... :key_1 value_1 ... :key_n value_n)An annotated term is created by
Script.annotate(Term, Annotation...).- Author:
- hoenicke
-
Field Summary
-
Method Summary
Modifier and Type Method Description Annotation[]getAnnotations()Get all annotations stored in this term.SortgetSort()Returns the SMTLIB sort of this term.TermgetSubterm()Get the term that is annotated by the annotations stored in this term.static inthashAnnotations(Annotation[] annots, Term subTerm)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
-
getSort
Description copied from class:TermReturns the SMTLIB sort of this term. -
getSubterm
Get the term that is annotated by the annotations stored in this term.- Returns:
- The subterm of this term.
-
getAnnotations
Get all annotations stored in this term. The resulting array should not be modified!- Returns:
- The annotations stored in this term.
-
hashAnnotations
-
toStringHelper
public void toStringHelper(java.util.ArrayDeque<java.lang.Object> mTodo)Description copied from class:TermConvert 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
-