Class JavaExpressionPresenceCheck
- java.lang.Object
-
- org.mapstruct.ap.internal.writer.FreeMarkerWritable
-
- org.mapstruct.ap.internal.model.common.ModelElement
-
- org.mapstruct.ap.internal.model.presence.JavaExpressionPresenceCheck
-
- All Implemented Interfaces:
PresenceCheck
,Writable
public class JavaExpressionPresenceCheck extends ModelElement implements PresenceCheck
- Author:
- Filip Hrisafov
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.mapstruct.ap.internal.writer.Writable
Writable.Context
-
-
Constructor Summary
Constructors Constructor Description JavaExpressionPresenceCheck(String javaExpression)
-
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.String
getJavaExpression()
int
hashCode()
PresenceCheck
negate()
-
Methods inherited from class org.mapstruct.ap.internal.writer.FreeMarkerWritable
getTemplateName, getTemplateNameForClass, write
-
-
-
-
Constructor Detail
-
JavaExpressionPresenceCheck
public JavaExpressionPresenceCheck(String javaExpression)
-
-
Method Detail
-
getJavaExpression
public String getJavaExpression()
-
negate
public PresenceCheck negate()
- Specified by:
negate
in interfacePresenceCheck
-
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
.
-
-