Package org.mapstruct.ap.internal.model
Class Annotation
- java.lang.Object
-
- org.mapstruct.ap.internal.writer.FreeMarkerWritable
-
- org.mapstruct.ap.internal.model.common.ModelElement
-
- org.mapstruct.ap.internal.model.Annotation
-
- All Implemented Interfaces:
Writable
public class Annotation extends ModelElement
Represents a Java 5 annotation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.mapstruct.ap.internal.writer.Writable
Writable.Context
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<java.lang.String>propertiesList of annotation attributes.private Typetype
-
Constructor Summary
Constructors Constructor Description Annotation(Type type)Annotation(Type type, java.util.List<java.lang.String> properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<Type>getImportTypes()Returns a set containing thoseTypes referenced by this model element for which an import statement needs to be declared.java.util.List<java.lang.String>getProperties()TypegetType()-
Methods inherited from class org.mapstruct.ap.internal.writer.FreeMarkerWritable
getTemplateName, getTemplateNameForClass, write
-
-
-
-
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.
-
-
Method Detail
-
getType
public Type getType()
-
getImportTypes
public java.util.Set<Type> getImportTypes()
Description copied from class:ModelElementReturns a set containing thoseTypes referenced by this model element for which an import statement needs to be declared.- Specified by:
getImportTypesin classModelElement- Returns:
- A set with type referenced by this model element. Must not be
null.
-
getProperties
public java.util.List<java.lang.String> getProperties()
-
-