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
Represents an annotation element.
- Author:
- Ben Zegveld
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.mapstruct.ap.internal.writer.Writable
Writable.Context -
Constructor Summary
ConstructorsConstructorDescriptionAnnotationElement(AnnotationElement.AnnotationElementType type, String elementName, List<? extends Object> values) AnnotationElement(AnnotationElement.AnnotationElementType type, List<? extends Object> values) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns a set containing thoseTypes referenced by this model element for which an import statement needs to be declared.inthashCode()booleanbooleanisByte()booleanbooleanisClass()booleanisDouble()booleanisEnum()booleanisFloat()booleanbooleanisLong()booleanisShort()booleanisString()Methods inherited from class org.mapstruct.ap.internal.writer.FreeMarkerWritable
getTemplateName, getTemplateNameForClass, write
-
Constructor Details
-
AnnotationElement
public AnnotationElement(AnnotationElement.AnnotationElementType type, List<? extends Object> values) -
AnnotationElement
public AnnotationElement(AnnotationElement.AnnotationElementType type, String elementName, List<? extends Object> values)
-
-
Method Details
-
getElementName
-
getValues
-
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.
-
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() -
hashCode
public int hashCode() -
equals
-