public interface Assignment
Modifier and Type | Interface and Description |
---|---|
static class |
Assignment.AssignmentType |
Modifier and Type | Method and Description |
---|---|
Set<Type> |
getImportTypes()
returns all types required as import by the assignment statement.
|
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
|
Set<Type> getImportTypes()
List<Type> getThrownTypes()
void setAssignment(Assignment assignment)
assignment
- the assignment to setString getSourceReference()
Type getSourceType()
String getSourceLocalVarName()
void setSourceLocalVarName(String sourceLocalVarName)
sourceLocalVarName
- source local variable nameAssignment.AssignmentType getType()
Assignment.AssignmentType
boolean isUpdateMethod()
Copyright © 2012-2016 Gunnar Morling; All rights reserved. Released under the Apache Software License 2.0.