Class Annotation


  • public class Annotation
    extends java.lang.Object
    This class represents an annotation that appears in a function or variable declarations
    • Constructor Detail

      • Annotation

        public Annotation​(StructuredQName name)
        Create an annotation
        Parameters:
        name - the annotation name (a QName)
    • Method Detail

      • getAnnotationQName

        public StructuredQName getAnnotationQName()
        Get the name of the annotation (a QName)
        Returns:
        the annotation name
      • addAnnotationParameter

        public void addAnnotationParameter​(AtomicValue value)
        Add a value to the list of annotation parameters
        Parameters:
        value - the value to be added. This will always be a string or number, but Saxon enforces this only at the level of the query parser
      • getAnnotationParameters

        public java.util.List<AtomicValue> getAnnotationParameters()
        Get the list of annotation parameters
        Returns:
        the list of parameters
      • equals

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

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