public class SourceRHS extends ModelElement implements Assignment
Assignment.AssignmentTypeWritable.Context| Constructor and Description |
|---|
SourceRHS(String sourceReference,
Type sourceType) |
| Modifier and Type | Method and Description |
|---|---|
Set<Type> |
getImportTypes()
Returns a set containing those
Types 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
|
String |
toString() |
writegetTemplateName, getTemplateNameForClasspublic String getSourceReference()
AssignmentgetSourceReference in interface Assignmentpublic Type getSourceType()
AssignmentgetSourceType in interface Assignmentpublic String getSourceLocalVarName()
AssignmentgetSourceLocalVarName in interface Assignmentpublic void setSourceLocalVarName(String sourceLocalVarName)
AssignmentsetSourceLocalVarName in interface AssignmentsourceLocalVarName - source local variable namepublic Set<Type> getImportTypes()
ModelElementTypes referenced by this model element for which an import statement needs
to be declared.getImportTypes in interface AssignmentgetImportTypes in class ModelElementnull.public List<Type> getThrownTypes()
AssignmentgetThrownTypes in interface Assignmentpublic void setAssignment(Assignment assignment)
AssignmentsetAssignment in interface Assignmentassignment - the assignment to setpublic Assignment.AssignmentType getType()
AssignmentgetType in interface AssignmentAssignment.AssignmentTypepublic boolean isUpdateMethod()
isUpdateMethod in interface AssignmentCopyright © 2012-2016 Gunnar Morling; All rights reserved. Released under the Apache Software License 2.0.