modifiers typeParameters type name
( parameters )
body
modifiers type name () default defaultValue
| Modifier and Type | Method and Description |
|---|---|
| public BlockTree | Returns: the method bodyReturns the method body, or |
| public Tree | Returns: the default valueReturns the default value, if this is an element within an annotation type declaration. |
| public ModifiersTree | Returns: the modifiersReturns the modifiers, including any annotations for the method being declared. |
| public Name | |
| public List | |
| public VariableTree | Returns: an explicit receiver parameter ("this" parameter)Return an explicit receiver parameter ("this" parameter),
or |
| public Tree | |
| public List | |
| public List | Returns: the type parametersReturns the type parameters of the method being declared. |
| getBody | back to summary |
|---|---|
| public BlockTree getBody() Returns the method body, or
| |
| getDefaultValue | back to summary |
|---|---|
| public Tree getDefaultValue() Returns the default value, if this is an element within
an annotation type declaration.
Returns
| |
| getModifiers | back to summary |
|---|---|
| public ModifiersTree getModifiers() Returns the modifiers, including any annotations for the method being declared.
| |
| getName | back to summary |
|---|---|
| public Name getName() Returns the name of the method being declared.
| |
| getParameters | back to summary |
|---|---|
| public List Returns the parameters of the method being declared.
| |
| getReceiverParameter | back to summary |
|---|---|
| public VariableTree getReceiverParameter() Return an explicit receiver parameter ("this" parameter),
or
| |
| getReturnType | back to summary |
|---|---|
| public Tree getReturnType() Returns the return type of the method being declared.
Returns
| |
| getThrows | back to summary |
|---|---|
| public List Returns the exceptions listed as being thrown by this method.
| |
| getTypeParameters | back to summary |
|---|---|
| public List Returns the type parameters of the method being declared.
| |