Class AnnotationImpl

  • All Implemented Interfaces:
    Annotation

    public class AnnotationImpl
    extends java.lang.Object
    implements Annotation
    • Constructor Summary

      Constructors 
      Constructor Description
      AnnotationImpl()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addElement​(AnnotationElement<?> element)
      Add an annotation element (e.g., frequency annotation, elapsed time) The element should provide its own name (to be stored here)
      boolean containsElement​(java.lang.String elementName)  
      AnnotationElement<?> getElement​(java.lang.String elementName)  
      java.util.Set<java.lang.String> getElementNames()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AnnotationImpl

        public AnnotationImpl()
    • Method Detail

      • addElement

        public void addElement​(AnnotationElement<?> element)
        Description copied from interface: Annotation
        Add an annotation element (e.g., frequency annotation, elapsed time) The element should provide its own name (to be stored here)
        Specified by:
        addElement in interface Annotation
      • getElementNames

        public java.util.Set<java.lang.String> getElementNames()
        Specified by:
        getElementNames in interface Annotation
        Returns:
        the names of the annotation elements stored in this annotation wrapper
      • containsElement

        public boolean containsElement​(java.lang.String elementName)
        Specified by:
        containsElement in interface Annotation
        Returns:
        true if it contains an annotation element with that name