public class ReflectionInterfaceDeclaration extends AbstractTypeDeclaration implements InterfaceDeclaration
| Constructor and Description |
|---|
ReflectionInterfaceDeclaration(Class<?> clazz,
TypeSolver typeSolver) |
getAllMethods, isFunctionalInterfaceclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAllInterfacesExtendedasReferenceType, findTypeParameter, getAllAncestors, getAllMethods, getAllNonStaticFields, getAllStaticFields, getDeclaredFields, getVisibleField, getVisibleFields, hasAnnotation, hasVisibleField, isFunctionalInterfaceasClass, asEnum, asType, asTypeParameter, containerType, getId, internalTypes, isClass, isEnum, isTypeasField, asMethod, asParameter, hasName, isField, isMethod, isParameterpublic ReflectionInterfaceDeclaration(Class<?> clazz, TypeSolver typeSolver)
public boolean isAssignableBy(ReferenceTypeDeclaration other)
isAssignableBy in interface ReferenceTypeDeclarationpublic String getQualifiedName()
getQualifiedName in interface TypeDeclaration@Deprecated public SymbolReference<MethodDeclaration> solveMethod(String name, List<Type> parameterTypes)
public Type getUsage(com.github.javaparser.ast.Node node)
public Optional<MethodUsage> solveMethodAsUsage(String name, List<Type> parameterTypes, TypeSolver typeSolver, Context invokationContext, List<Type> typeParameterValues)
public boolean canBeAssignedTo(ReferenceTypeDeclaration other)
canBeAssignedTo in interface ReferenceTypeDeclarationpublic boolean isAssignableBy(Type type)
isAssignableBy in interface ReferenceTypeDeclarationpublic boolean isTypeParameter()
isTypeParameter in interface TypeDeclarationpublic FieldDeclaration getField(String name)
getField in interface ReferenceTypeDeclarationpublic List<FieldDeclaration> getAllFields()
getAllFields in interface ReferenceTypeDeclaration@Deprecated public SymbolReference<? extends ValueDeclaration> solveSymbol(String name, TypeSolver typeSolver)
public List<ReferenceType> getAncestors()
getAncestors in interface ReferenceTypeDeclarationpublic Set<MethodDeclaration> getDeclaredMethods()
getDeclaredMethods in interface ReferenceTypeDeclarationpublic boolean hasField(String name)
hasField in interface ReferenceTypeDeclarationpublic String getName()
getName in interface Declarationpublic boolean isInterface()
isInterface in interface InterfaceDeclarationisInterface in interface TypeDeclarationpublic List<ReferenceType> getInterfacesExtended()
getInterfacesExtended in interface InterfaceDeclarationpublic InterfaceDeclaration asInterface()
asInterface in interface TypeDeclarationpublic boolean hasDirectlyAnnotation(String canonicalName)
hasDirectlyAnnotation in interface ReferenceTypeDeclarationpublic List<TypeParameterDeclaration> getTypeParameters()
getTypeParameters in interface TypeParametrizablepublic AccessLevel accessLevel()
accessLevel in interface HasAccessLevelCopyright © 2016. All rights reserved.