Interface ResolvedDeclaration
-
- All Known Subinterfaces:
ResolvedAnnotationDeclaration,ResolvedAnnotationMemberDeclaration,ResolvedClassDeclaration,ResolvedConstructorDeclaration,ResolvedEnumConstantDeclaration,ResolvedEnumDeclaration,ResolvedFieldDeclaration,ResolvedInterfaceDeclaration,ResolvedMethodDeclaration,ResolvedMethodLikeDeclaration,ResolvedParameterDeclaration,ResolvedReferenceTypeDeclaration,ResolvedTypeDeclaration,ResolvedTypeParameterDeclaration,ResolvedValueDeclaration
public interface ResolvedDeclarationA generic declaration.- Author:
- Federico Tomassetti
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ResolvedEnumConstantDeclarationasEnumConstant()default ResolvedFieldDeclarationasField()Return this as a FieldDeclaration or throw an UnsupportedOperationExceptiondefault ResolvedMethodDeclarationasMethod()Return this as a MethodDeclaration or throw an UnsupportedOperationExceptiondefault ResolvedParameterDeclarationasParameter()Return this as a ParameterDeclaration or throw an UnsupportedOperationExceptiondefault ResolvedTypeDeclarationasType()Return this as a TypeDeclaration or throw an UnsupportedOperationExceptionStringgetName()Should return the name or return null if the name is not available.default booleanhasName()Anonymous classes do not have a name, for example.default booleanisEnumConstant()default booleanisField()Does this declaration represents a class field?default booleanisMethod()Does this declaration represents a method?default booleanisParameter()Does this declaration represents a method parameter?default booleanisType()Does this declaration represents a type?default booleanisVariable()Does this declaration represents a variable?
-
-
-
Method Detail
-
hasName
default boolean hasName()
Anonymous classes do not have a name, for example.
-
getName
String getName()
Should return the name or return null if the name is not available.
-
isField
default boolean isField()
Does this declaration represents a class field?
-
isVariable
default boolean isVariable()
Does this declaration represents a variable?
-
isEnumConstant
default boolean isEnumConstant()
-
isParameter
default boolean isParameter()
Does this declaration represents a method parameter?
-
isType
default boolean isType()
Does this declaration represents a type?
-
isMethod
default boolean isMethod()
Does this declaration represents a method?
-
asField
default ResolvedFieldDeclaration asField()
Return this as a FieldDeclaration or throw an UnsupportedOperationException
-
asParameter
default ResolvedParameterDeclaration asParameter()
Return this as a ParameterDeclaration or throw an UnsupportedOperationException
-
asType
default ResolvedTypeDeclaration asType()
Return this as a TypeDeclaration or throw an UnsupportedOperationException
-
asMethod
default ResolvedMethodDeclaration asMethod()
Return this as a MethodDeclaration or throw an UnsupportedOperationException
-
asEnumConstant
default ResolvedEnumConstantDeclaration asEnumConstant()
-
-