Class Annotation

  • All Implemented Interfaces:

    public class Annotation
    extends ModelElement
    Represents a Java 5 annotation.
    Gunnar Morling
    • Constructor Detail

      • Annotation

        public Annotation​(Type type)
      • Annotation

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

      • getType

        public Type getType()
      • getImportTypes

        public 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
        A set with type referenced by this model element. Must not be null.
      • getProperties

        public List<String> getProperties()