@Beta public interface TypeDeclaration extends Type, MemberDeclaration
| Modifier and Type | Method and Description |
|---|---|
ConstructorDeclaration |
findDeclaredConstructor(TypeReference... parameterTypes) |
FieldDeclaration |
findDeclaredField(String name) |
MethodDeclaration |
findDeclaredMethod(String name,
TypeReference... parameterTypes) |
TypeDeclaration |
findDeclaredType(String name) |
Iterable<? extends AnnotationTypeDeclaration> |
getDeclaredAnnotationTypes() |
Iterable<? extends ClassDeclaration> |
getDeclaredClasses() |
Iterable<? extends ConstructorDeclaration> |
getDeclaredConstructors() |
Iterable<? extends EnumerationTypeDeclaration> |
getDeclaredEnumerationTypes() |
Iterable<? extends FieldDeclaration> |
getDeclaredFields() |
Iterable<? extends InterfaceDeclaration> |
getDeclaredInterfaces() |
Iterable<? extends MemberDeclaration> |
getDeclaredMembers() |
Iterable<? extends MethodDeclaration> |
getDeclaredMethods() |
Iterable<? extends TypeDeclaration> |
getDeclaredTypes() |
getQualifiedName, isAssignableFromgetDeclaringType, getDocComment, getModifiers, getVisibility, isDeprecatedfindAnnotation, getAnnotationsgetCompilationUnit, getSimpleNameIterable<? extends MemberDeclaration> getDeclaredMembers()
Iterable<? extends MethodDeclaration> getDeclaredMethods()
Iterable<? extends FieldDeclaration> getDeclaredFields()
Iterable<? extends ConstructorDeclaration> getDeclaredConstructors()
Iterable<? extends ClassDeclaration> getDeclaredClasses()
Iterable<? extends InterfaceDeclaration> getDeclaredInterfaces()
Iterable<? extends EnumerationTypeDeclaration> getDeclaredEnumerationTypes()
Iterable<? extends AnnotationTypeDeclaration> getDeclaredAnnotationTypes()
Iterable<? extends TypeDeclaration> getDeclaredTypes()
FieldDeclaration findDeclaredField(String name)
name - of the featurenull of no such field exists.TypeDeclaration findDeclaredType(String name)
name - of the nested typenull of no such type exists.MethodDeclaration findDeclaredMethod(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.Copyright © 2015. All Rights Reserved.