Class Annotation

  • All Implemented Interfaces:
    Writable

    public class Annotation
    extends ModelElement
    Represents a Java 5 annotation.
    • Field Detail

      • type

        private final Type type
      • properties

        private java.util.List<java.lang.String> properties
        List of annotation attributes. Quite simplistic, but it's sufficient for now.
    • Constructor Detail

      • Annotation

        public Annotation​(Type type)
      • Annotation

        public Annotation​(Type type,
                          java.util.List<java.lang.String> properties)
    • Method Detail

      • getType

        public Type getType()
      • getImportTypes

        public java.util.Set<Type> getImportTypes()
        Description copied from class: ModelElement
        Returns a set containing those Types referenced by this model element for which an import statement needs to be declared.
        Specified by:
        getImportTypes in class ModelElement
        Returns:
        A set with type referenced by this model element. Must not be null.
      • getProperties

        public java.util.List<java.lang.String> getProperties()