modifiers type name initializer ; modifiers type qualified-name.this
Modifier and Type | Method and Description |
---|---|
public ExpressionTree | |
public ModifiersTree | Returns: the modifiersReturns the modifiers, including any annotations, on the declaration. |
public Name | Returns: the nameReturns the name of the variable being declared or empty name if both the variable is unnamed and the preview features are enabled (Unnamed Patterns and Variables). |
public ExpressionTree | Returns: the qualified identifier of a receiver declarationReturns the qualified identifier for the name being "declared". |
public Tree |
getInitializer | back to summary |
---|---|
public ExpressionTree getInitializer() Returns the initializer for the variable, or
|
getModifiers | back to summary |
---|---|
public ModifiersTree getModifiers() Returns the modifiers, including any annotations, on the declaration.
|
getName | back to summary |
---|---|
public Name getName() Returns the name of the variable being declared or empty name if both the variable is unnamed and the preview features are enabled (Unnamed Patterns and Variables).
|
getNameExpression | back to summary |
---|---|
public ExpressionTree getNameExpression() Returns the qualified identifier for the name being "declared".
This is only used in certain cases for the receiver of a
method declaration. Returns
|
getType | back to summary |
---|---|
public Tree getType() Returns the type of the variable being declared.
|