public interface Assignment
Modifier and Type | Interface and Description |
---|---|
static class |
Assignment.AssignmentType |
Modifier and Type | Method and Description |
---|---|
String |
createUniqueVarName(String desiredName)
Creates an unique safe (local) variable name.
|
Set<Type> |
getImportTypes()
returns all types required as import by the assignment statement.
|
String |
getSourceLocalVarName()
|
String |
getSourceLoopVarName()
See
getSourceLoopVarName() (java.lang.String) } |
String |
getSourceParameterName()
Returns the source parameter name, to which this assignment applies.
|
String |
getSourcePresenceCheckerReference()
the source presence checker reference
|
String |
getSourceReference()
the source reference being a source-getter, a constant, nested method call, etc.
|
Type |
getSourceType()
the source type used in the matching process
|
List<Type> |
getThrownTypes()
returns all types exception types thrown by this assignment.
|
Assignment.AssignmentType |
getType()
Returns whether the type of assignment
|
boolean |
isCallingUpdateMethod() |
boolean |
isSourceReferenceParameter() |
void |
setAssignment(Assignment assignment)
An assignment in itself can wrap another assignment.
|
void |
setSourceLocalVarName(String sourceLocalVarName)
Replaces the sourceReference at the call site in the assignment in the template with this sourceLocalVarName.
|
void |
setSourceLoopVarName(String sourceLoopVarName)
Replaces the sourceLocalVar or sourceReference at the call site in the assignment in the template with this
sourceLoopVarName.
|
Set<Type> getImportTypes()
List<Type> getThrownTypes()
void setAssignment(Assignment assignment)
assignment
- the assignment to setString getSourceReference()
boolean isSourceReferenceParameter()
String getSourcePresenceCheckerReference()
Type getSourceType()
String createUniqueVarName(String desiredName)
desiredName
- the desired nameString getSourceLocalVarName()
String getSourceParameterName()
void setSourceLocalVarName(String sourceLocalVarName)
sourceLocalVarName
- source local variable nameString getSourceLoopVarName()
getSourceLoopVarName()
(java.lang.String) }void setSourceLoopVarName(String sourceLoopVarName)
sourceLoopVarName
- loop variableAssignment.AssignmentType getType()
Assignment.AssignmentType
boolean isCallingUpdateMethod()
Copyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.