public abstract class AssignmentWrapper extends ModelElement implements Assignment
Assignment.AssignmentType
Writable.Context
Constructor and Description |
---|
AssignmentWrapper(Assignment decoratedAssignment) |
Modifier and Type | Method and Description |
---|---|
Assignment |
getAssignment() |
Set<Type> |
getImportTypes()
Returns a set containing those
Type s referenced by this model element for which an import statement needs
to be declared. |
String |
getSourceLocalVarName()
a local variable name for supporting a null check and avoiding executing a nested method forged method twice
|
String |
getSourceReference()
the source reference being a source-getter, a constant, nested method call, etc.
|
Type |
getSourceType()
the source type.
|
List<Type> |
getThrownTypes()
returns all types exception types thrown by this assignment.
|
Assignment.AssignmentType |
getType()
Returns whether the type of assignment
|
boolean |
isUpdateMethod() |
void |
setAssignment(Assignment assignment)
An assignment in itself can wrap another assignment.
|
void |
setSourceLocalVarName(String sourceLocalVarName)
Use sourceLocalVarName iso sourceReference
|
write
getTemplateName, getTemplateNameForClass
public AssignmentWrapper(Assignment decoratedAssignment)
public Set<Type> getImportTypes()
ModelElement
Type
s referenced by this model element for which an import statement needs
to be declared.getImportTypes
in interface Assignment
getImportTypes
in class ModelElement
null
.public List<Type> getThrownTypes()
Assignment
getThrownTypes
in interface Assignment
public void setAssignment(Assignment assignment)
Assignment
setAssignment
in interface Assignment
assignment
- the assignment to setpublic Assignment getAssignment()
public String getSourceReference()
Assignment
getSourceReference
in interface Assignment
public Type getSourceType()
Assignment
getSourceType
in interface Assignment
public String getSourceLocalVarName()
Assignment
getSourceLocalVarName
in interface Assignment
public void setSourceLocalVarName(String sourceLocalVarName)
Assignment
setSourceLocalVarName
in interface Assignment
sourceLocalVarName
- source local variable namepublic Assignment.AssignmentType getType()
Assignment
getType
in interface Assignment
Assignment.AssignmentType
public boolean isUpdateMethod()
isUpdateMethod
in interface Assignment
Copyright © 2012-2016 Gunnar Morling; All rights reserved. Released under the Apache Software License 2.0.