public class ReflectionInterfaceDeclaration extends AbstractTypeDeclaration implements InterfaceDeclaration
| Constructor and Description |
|---|
ReflectionInterfaceDeclaration(Class<?> clazz,
TypeSolver typeSolver) |
getAllMethodsclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAllInterfacesExtendedasClass, asEnum, asType, asTypeParameter, containerType, findTypeParameter, getAllAncestors, getAllMethods, getAllNonStaticFields, getAllStaticFields, getDeclaredFields, getId, hasAnnotation, internalTypes, isClass, isEnum, isTypeasField, asMethod, asParameter, hasName, isField, isMethod, isParameterpublic ReflectionInterfaceDeclaration(Class<?> clazz, TypeSolver typeSolver)
public boolean isAssignableBy(TypeDeclaration other)
isAssignableBy in interface TypeDeclarationpublic String getQualifiedName()
getQualifiedName in interface TypeDeclarationpublic Context getContext()
@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(TypeDeclaration other)
canBeAssignedTo in interface TypeDeclarationpublic boolean isAssignableBy(Type type)
isAssignableBy in interface TypeDeclarationpublic boolean isTypeParameter()
isTypeParameter in interface TypeDeclarationpublic FieldDeclaration getField(String name)
getField in interface TypeDeclarationpublic List<FieldDeclaration> getAllFields()
getAllFields in interface TypeDeclaration@Deprecated public SymbolReference<? extends ValueDeclaration> solveSymbol(String name, TypeSolver typeSolver)
public List<ReferenceType> getAncestors()
getAncestors in interface TypeDeclarationpublic Set<MethodDeclaration> getDeclaredMethods()
getDeclaredMethods in interface TypeDeclarationpublic boolean hasField(String name)
hasField in interface TypeDeclarationpublic 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 TypeDeclarationpublic List<TypeParameterDeclaration> getTypeParameters()
getTypeParameters in interface TypeParametrizableprotected TypeSolver typeSolver()
typeSolver in class AbstractTypeDeclarationpublic AccessLevel accessLevel()
accessLevel in interface HasAccessLevelCopyright © 2016. All rights reserved.