public abstract class AssignmentContext
extends java.lang.Object
The main use of AssignmentContext
is to be able to get the declared type of the
left-hand side of the assignment for proper type-refinement.
Modifier and Type | Class and Description |
---|---|
static class |
AssignmentContext.AssignmentLhsContext
An assignment context for an assignment 'lhs = rhs'.
|
static class |
AssignmentContext.LambdaReturnContext
An assignment context for lambda return statements.
|
static class |
AssignmentContext.MethodParameterContext
An assignment context for a method parameter.
|
static class |
AssignmentContext.MethodReturnContext
An assignment context for method return statements.
|
Constructor and Description |
---|
AssignmentContext() |
Modifier and Type | Method and Description |
---|---|
abstract Tree |
getContextTree() |
abstract javax.lang.model.element.Element |
getElementForType()
Returns an
Element that has the type of this assignment context. |
public abstract javax.lang.model.element.Element getElementForType()
Element
that has the type of this assignment context.public abstract Tree getContextTree()