public class ReflectionInterfaceDeclaration extends AbstractTypeDeclaration implements InterfaceDeclaration
Constructor and Description |
---|
ReflectionInterfaceDeclaration(Class<?> clazz,
TypeSolver typeSolver) |
getAllMethods
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAllInterfacesExtended
asClass, asEnum, asType, asTypeParameter, containerType, findTypeParameter, getAllAncestors, getAllMethods, getAllNonStaticFields, getAllStaticFields, getDeclaredFields, getId, hasAnnotation, internalTypes, isClass, isEnum, isType
asField, asMethod, asParameter, hasName, isField, isMethod, isParameter
public ReflectionInterfaceDeclaration(Class<?> clazz, TypeSolver typeSolver)
public boolean isAssignableBy(TypeDeclaration other)
isAssignableBy
in interface TypeDeclaration
public String getQualifiedName()
getQualifiedName
in interface TypeDeclaration
public 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 TypeDeclaration
public boolean isAssignableBy(Type type)
isAssignableBy
in interface TypeDeclaration
public boolean isTypeParameter()
isTypeParameter
in interface TypeDeclaration
public FieldDeclaration getField(String name)
getField
in interface TypeDeclaration
public List<FieldDeclaration> getAllFields()
getAllFields
in interface TypeDeclaration
@Deprecated public SymbolReference<? extends ValueDeclaration> solveSymbol(String name, TypeSolver typeSolver)
public List<ReferenceType> getAncestors()
getAncestors
in interface TypeDeclaration
public Set<MethodDeclaration> getDeclaredMethods()
getDeclaredMethods
in interface TypeDeclaration
public boolean hasField(String name)
hasField
in interface TypeDeclaration
public String getName()
getName
in interface Declaration
public boolean isInterface()
isInterface
in interface InterfaceDeclaration
isInterface
in interface TypeDeclaration
public List<ReferenceType> getInterfacesExtended()
getInterfacesExtended
in interface InterfaceDeclaration
public InterfaceDeclaration asInterface()
asInterface
in interface TypeDeclaration
public boolean hasDirectlyAnnotation(String canonicalName)
hasDirectlyAnnotation
in interface TypeDeclaration
public List<TypeParameterDeclaration> getTypeParameters()
getTypeParameters
in interface TypeParametrizable
protected TypeSolver typeSolver()
typeSolver
in class AbstractTypeDeclaration
public AccessLevel accessLevel()
accessLevel
in interface HasAccessLevel
Copyright © 2016. All rights reserved.