public interface ResolvedDeclaration
Modifier and Type | Method and Description |
---|---|
default ResolvedEnumConstantDeclaration |
asEnumConstant()
Return this as a EnumConstantDeclaration or throw an UnsupportedOperationException
|
default ResolvedFieldDeclaration |
asField()
Return this as a FieldDeclaration or throw an UnsupportedOperationException
|
default ResolvedMethodDeclaration |
asMethod()
Return this as a MethodDeclaration or throw an UnsupportedOperationException
// FIXME: This is never overridden.
|
default ResolvedParameterDeclaration |
asParameter()
Return this as a ParameterDeclaration or throw an UnsupportedOperationException
|
default ResolvedPatternDeclaration |
asPattern()
Return this as a PatternDeclaration or throw an UnsupportedOperationException
|
default ResolvedTypeDeclaration |
asType()
Return this as a TypeDeclaration or throw an UnsupportedOperationException
|
String |
getName()
Should return the name or return null if the name is not available.
|
default boolean |
hasName()
Anonymous classes do not have a name, for example.
|
default boolean |
isEnumConstant()
Does this declaration represents an enum constant?
|
default boolean |
isField()
Does this declaration represents a class field?
|
default boolean |
isMethod()
Does this declaration represents a method?
// FIXME: This is never overridden.
|
default boolean |
isParameter()
Does this declaration represents a method parameter?
|
default boolean |
isPattern()
Does this declaration represents a pattern declaration?
|
default boolean |
isType()
Does this declaration represents a type?
|
default boolean |
isVariable()
Does this declaration represents a variable?
|
default boolean hasName()
String getName()
default boolean isField()
default boolean isVariable()
default boolean isEnumConstant()
default boolean isPattern()
default boolean isParameter()
default boolean isType()
default boolean isMethod()
default ResolvedFieldDeclaration asField()
default ResolvedParameterDeclaration asParameter()
default ResolvedTypeDeclaration asType()
default ResolvedMethodDeclaration asMethod()
default ResolvedEnumConstantDeclaration asEnumConstant()
default ResolvedPatternDeclaration asPattern()
Copyright © 2007–2020. All rights reserved.