public interface ResolvedDeclaration extends AssociableToAST
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 ResolvedTypeDeclaration |
asType()
Return this as a TypeDeclaration or throw an UnsupportedOperationException
|
default ResolvedTypePatternDeclaration |
asTypePattern()
Return this as a PatternDeclaration 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?
|
default boolean |
isParameter()
Does this declaration represents a method parameter?
|
default boolean |
isType()
Does this declaration represents a type?
|
default boolean |
isTypePattern()
Does this declaration represents a pattern declaration?
|
default boolean |
isVariable()
Does this declaration represents a variable?
|
toAst, toAst
default boolean hasName()
String getName()
default boolean isField()
default boolean isVariable()
default boolean isEnumConstant()
default boolean isTypePattern()
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 ResolvedTypePatternDeclaration asTypePattern()
Copyright © 2007–2024. All rights reserved.