Class Annotation

java.lang.Object
de.uni_freiburg.informatik.ultimate.logic.Annotation

public class Annotation
extends java.lang.Object
Representation of an annotation in a formula. Note that the keys ":named", and ":pattern" have special meaning as described in the SMTLIB version 2 standard.
Author:
Jochen Hoenicke
  • Constructor Summary

    Constructors 
    Constructor Description
    Annotation​(java.lang.String key, java.lang.Object value)  
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object obj)  
    java.lang.String getKey()
    Returns the key of the annotation.
    java.lang.Object getValue()
    Returns the value of the annotation.
    int hashCode()  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Annotation

      public Annotation​(java.lang.String key, java.lang.Object value)
  • Method Details

    • getKey

      public java.lang.String getKey()
      Returns the key of the annotation. This includes the colon, with which each annotation starts.
      Returns:
      the key of the annotation.
    • getValue

      public java.lang.Object getValue()
      Returns the value of the annotation. This is null for the empty annotation. The object depends on the type of the annotation. It can be a term (constants, patterns) a simple string, or an array of terms/strings/arrays.
      Returns:
      the value of the annotation.
    • equals

      public boolean equals​(java.lang.Object obj)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object