Class AnnotationElement
- java.lang.Object
-
- org.mapstruct.ap.internal.writer.FreeMarkerWritable
-
- org.mapstruct.ap.internal.model.common.ModelElement
-
- org.mapstruct.ap.internal.model.annotation.AnnotationElement
-
- All Implemented Interfaces:
Writable
public class AnnotationElement extends ModelElement
- Author:
- Ben Zegveld
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AnnotationElement.AnnotationElementType
-
Nested classes/interfaces inherited from interface org.mapstruct.ap.internal.writer.Writable
Writable.Context
-
-
Constructor Summary
Constructors Constructor Description AnnotationElement(AnnotationElement.AnnotationElementType type, String elementName, List<? extends Object> values)
AnnotationElement(AnnotationElement.AnnotationElementType type, List<? extends Object> values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getElementName()
Set<Type>
getImportTypes()
Returns a set containing thoseType
s referenced by this model element for which an import statement needs to be declared.List<? extends Object>
getValues()
int
hashCode()
boolean
isBoolean()
boolean
isByte()
boolean
isCharacter()
boolean
isClass()
boolean
isDouble()
boolean
isEnum()
boolean
isFloat()
boolean
isInteger()
boolean
isLong()
boolean
isShort()
boolean
isString()
-
Methods inherited from class org.mapstruct.ap.internal.writer.FreeMarkerWritable
getTemplateName, getTemplateNameForClass, write
-
-
-
-
Constructor Detail
-
AnnotationElement
public AnnotationElement(AnnotationElement.AnnotationElementType type, List<? extends Object> values)
-
AnnotationElement
public AnnotationElement(AnnotationElement.AnnotationElementType type, String elementName, List<? extends Object> values)
-
-
Method Detail
-
getElementName
public String getElementName()
-
getImportTypes
public Set<Type> getImportTypes()
Description copied from class:ModelElement
Returns a set containing thoseType
s referenced by this model element for which an import statement needs to be declared.- Specified by:
getImportTypes
in classModelElement
- Returns:
- A set with type referenced by this model element. Must not be
null
.
-
isBoolean
public boolean isBoolean()
-
isByte
public boolean isByte()
-
isCharacter
public boolean isCharacter()
-
isClass
public boolean isClass()
-
isDouble
public boolean isDouble()
-
isEnum
public boolean isEnum()
-
isFloat
public boolean isFloat()
-
isInteger
public boolean isInteger()
-
isLong
public boolean isLong()
-
isShort
public boolean isShort()
-
isString
public boolean isString()
-
-