public interface Declaration
| Modifier and Type | Method and Description |
|---|---|
default FieldDeclaration |
asField() |
default MethodDeclaration |
asMethod() |
default ParameterDeclaration |
asParameter() |
default TypeDeclaration |
asType() |
String |
getName()
Should return the name or throw a RuntimeException if the name is not available.
|
default boolean |
hasName()
Anonymous classes do not have a name, for example.
|
default boolean |
isField() |
default boolean |
isMethod() |
default boolean |
isParameter() |
default boolean |
isType() |
default boolean hasName()
String getName()
default boolean isField()
default boolean isParameter()
default boolean isType()
default boolean isMethod()
default FieldDeclaration asField()
default ParameterDeclaration asParameter()
default TypeDeclaration asType()
default MethodDeclaration asMethod()
Copyright © 2016. All rights reserved.