@Beta public interface TypeDeclaration extends Type, MemberDeclaration
Modifier and Type | Method and Description |
---|---|
ConstructorDeclaration |
findDeclaredConstructor(TypeReference... parameterTypes) |
FieldDeclaration |
findDeclaredField(java.lang.String name) |
MethodDeclaration |
findDeclaredMethod(java.lang.String name,
TypeReference... parameterTypes) |
TypeDeclaration |
findDeclaredType(java.lang.String name) |
java.lang.Iterable<? extends AnnotationTypeDeclaration> |
getDeclaredAnnotationTypes() |
java.lang.Iterable<? extends ClassDeclaration> |
getDeclaredClasses() |
java.lang.Iterable<? extends ConstructorDeclaration> |
getDeclaredConstructors() |
java.lang.Iterable<? extends EnumerationTypeDeclaration> |
getDeclaredEnumerationTypes() |
java.lang.Iterable<? extends FieldDeclaration> |
getDeclaredFields() |
java.lang.Iterable<? extends InterfaceDeclaration> |
getDeclaredInterfaces() |
java.lang.Iterable<? extends MemberDeclaration> |
getDeclaredMembers() |
java.lang.Iterable<? extends MethodDeclaration> |
getDeclaredMethods() |
java.lang.Iterable<? extends TypeDeclaration> |
getDeclaredTypes() |
getQualifiedName, isAssignableFrom
getDeclaringType, getDocComment, getModifiers, getVisibility, isDeprecated
findAnnotation, getAnnotations
getCompilationUnit, getSimpleName
java.lang.Iterable<? extends MemberDeclaration> getDeclaredMembers()
java.lang.Iterable<? extends MethodDeclaration> getDeclaredMethods()
java.lang.Iterable<? extends FieldDeclaration> getDeclaredFields()
java.lang.Iterable<? extends ConstructorDeclaration> getDeclaredConstructors()
java.lang.Iterable<? extends ClassDeclaration> getDeclaredClasses()
java.lang.Iterable<? extends InterfaceDeclaration> getDeclaredInterfaces()
java.lang.Iterable<? extends EnumerationTypeDeclaration> getDeclaredEnumerationTypes()
java.lang.Iterable<? extends AnnotationTypeDeclaration> getDeclaredAnnotationTypes()
java.lang.Iterable<? extends TypeDeclaration> getDeclaredTypes()
FieldDeclaration findDeclaredField(java.lang.String name)
name
- of the featurenull
of no such field exists.TypeDeclaration findDeclaredType(java.lang.String name)
name
- of the nested typenull
of no such type exists.MethodDeclaration findDeclaredMethod(java.lang.String name, TypeReference... parameterTypes)
name
- of the methodparameterTypes
- - the types of the methodnull
if no such method exists.ConstructorDeclaration findDeclaredConstructor(TypeReference... parameterTypes)
parameterTypes
- - the parameter types of the constructornull
if no such constructors exists.