Package org.mapstruct.ap.internal.model
Class MethodReferencePresenceCheck
- java.lang.Object
-
- org.mapstruct.ap.internal.writer.FreeMarkerWritable
-
- org.mapstruct.ap.internal.model.common.ModelElement
-
- org.mapstruct.ap.internal.model.MethodReferencePresenceCheck
-
- All Implemented Interfaces:
PresenceCheck
,Writable
public class MethodReferencePresenceCheck extends ModelElement implements PresenceCheck
- Author:
- Filip Hrisafov
-
-
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 protected MethodReference
methodReference
protected boolean
negate
-
Constructor Summary
Constructors Constructor Description MethodReferencePresenceCheck(MethodReference methodReference)
MethodReferencePresenceCheck(MethodReference methodReference, boolean negate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Set<Type>
getImportTypes()
Returns a set containing thoseType
s referenced by this model element for which an import statement needs to be declared.MethodReference
getMethodReference()
int
hashCode()
boolean
isNegate()
PresenceCheck
negate()
-
Methods inherited from class org.mapstruct.ap.internal.writer.FreeMarkerWritable
getTemplateName, getTemplateNameForClass, write
-
-
-
-
Field Detail
-
methodReference
protected final MethodReference methodReference
-
negate
protected final boolean negate
-
-
Constructor Detail
-
MethodReferencePresenceCheck
public MethodReferencePresenceCheck(MethodReference methodReference)
-
MethodReferencePresenceCheck
public MethodReferencePresenceCheck(MethodReference methodReference, boolean negate)
-
-
Method Detail
-
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 interfacePresenceCheck
- Specified by:
getImportTypes
in classModelElement
- Returns:
- A set with type referenced by this model element. Must not be
null
.
-
getMethodReference
public MethodReference getMethodReference()
-
isNegate
public boolean isNegate()
-
negate
public PresenceCheck negate()
- Specified by:
negate
in interfacePresenceCheck
-
-