Class ReflectionInterfaceDeclaration
java.lang.Object
com.github.javaparser.symbolsolver.logic.AbstractTypeDeclaration
com.github.javaparser.symbolsolver.reflectionmodel.ReflectionInterfaceDeclaration
- All Implemented Interfaces:
AssociableToAST<ClassOrInterfaceDeclaration>,HasAccessSpecifier,ResolvedDeclaration,ResolvedInterfaceDeclaration,ResolvedReferenceTypeDeclaration,ResolvedTypeDeclaration,ResolvedTypeParametrizable,MethodUsageResolutionCapability,MethodResolutionCapability
public class ReflectionInterfaceDeclaration
extends AbstractTypeDeclaration
implements ResolvedInterfaceDeclaration, MethodResolutionCapability, MethodUsageResolutionCapability
- Author:
- Federico Tomassetti
-
Field Summary
Fields inherited from interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
breadthFirstFunc, depthFirstFunc, JAVA_LANG_ENUM, JAVA_LANG_OBJECT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleangetAncestors(boolean acceptIncompleteList)getName()booleanhasDirectlyAnnotation(String canonicalName)booleaninthashCode()booleanbooleanisAssignableBy(ResolvedType type)booleanbooleansolveMethod(String name, List<ResolvedType> parameterTypes, boolean staticOnly)Deprecated.solveMethodAsUsage(String name, List<ResolvedType> parameterTypes, Context invokationContext, List<ResolvedType> typeParameterValues)SymbolReference<? extends ResolvedValueDeclaration>solveSymbol(String name, TypeSolver typeSolver)Deprecated.toAst()toString()Methods inherited from class com.github.javaparser.symbolsolver.logic.AbstractTypeDeclaration
getAllMethods, isFunctionalInterfaceMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
asEnumConstant, asField, asMethod, asParameter, asPattern, hasName, isEnumConstant, isField, isMethod, isParameter, isPattern, isVariableMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedInterfaceDeclaration
getAllInterfacesExtendedMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
asReferenceType, findTypeParameter, getAllAncestors, getAllAncestors, getAllMethods, getAllNonStaticFields, getAllStaticFields, getAncestors, getDeclaredFields, getVisibleField, getVisibleFields, hasAnnotation, hasVisibleField, isFunctionalInterface, isJavaLangEnum, isJavaLangObjectMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
asAnnotation, asClass, asEnum, asType, asTypeParameter, getId, getInternalType, hasInternalType, isAnnotation, isAnonymousClass, isClass, isEnum, isTypeMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeParametrizable
isGeneric
-
Constructor Details
-
ReflectionInterfaceDeclaration
-
-
Method Details
-
isAssignableBy
- Specified by:
isAssignableByin interfaceResolvedReferenceTypeDeclaration
-
getPackageName
- Specified by:
getPackageNamein interfaceResolvedTypeDeclaration
-
getClassName
- Specified by:
getClassNamein interfaceResolvedTypeDeclaration
-
getQualifiedName
- Specified by:
getQualifiedNamein interfaceResolvedTypeDeclaration
-
solveMethod
@Deprecated public SymbolReference<ResolvedMethodDeclaration> solveMethod(String name, List<ResolvedType> parameterTypes, boolean staticOnly)Deprecated.- Specified by:
solveMethodin interfaceMethodResolutionCapability
-
toString
-
getUsage
-
equals
-
hashCode
public int hashCode() -
solveMethodAsUsage
public Optional<MethodUsage> solveMethodAsUsage(String name, List<ResolvedType> parameterTypes, Context invokationContext, List<ResolvedType> typeParameterValues)- Specified by:
solveMethodAsUsagein interfaceMethodUsageResolutionCapability
-
canBeAssignedTo
- Specified by:
canBeAssignedToin interfaceResolvedReferenceTypeDeclaration
-
isAssignableBy
- Specified by:
isAssignableByin interfaceResolvedReferenceTypeDeclaration
-
isTypeParameter
public boolean isTypeParameter()- Specified by:
isTypeParameterin interfaceResolvedTypeDeclaration
-
getField
- Specified by:
getFieldin interfaceResolvedReferenceTypeDeclaration
-
getAllFields
- Specified by:
getAllFieldsin interfaceResolvedReferenceTypeDeclaration
-
solveSymbol
@Deprecated public SymbolReference<? extends ResolvedValueDeclaration> solveSymbol(String name, TypeSolver typeSolver)Deprecated. -
getAncestors
- Specified by:
getAncestorsin interfaceResolvedReferenceTypeDeclaration
-
getDeclaredMethods
- Specified by:
getDeclaredMethodsin interfaceResolvedReferenceTypeDeclaration
-
hasField
- Specified by:
hasFieldin interfaceResolvedReferenceTypeDeclaration
-
getName
- Specified by:
getNamein interfaceResolvedDeclaration
-
isInterface
public boolean isInterface()- Specified by:
isInterfacein interfaceResolvedInterfaceDeclaration- Specified by:
isInterfacein interfaceResolvedTypeDeclaration
-
getInterfacesExtended
- Specified by:
getInterfacesExtendedin interfaceResolvedInterfaceDeclaration
-
containerType
- Specified by:
containerTypein interfaceResolvedTypeDeclaration
-
internalTypes
- Specified by:
internalTypesin interfaceResolvedTypeDeclaration
-
asInterface
- Specified by:
asInterfacein interfaceResolvedTypeDeclaration
-
hasDirectlyAnnotation
- Specified by:
hasDirectlyAnnotationin interfaceResolvedReferenceTypeDeclaration
-
getTypeParameters
- Specified by:
getTypeParametersin interfaceResolvedTypeParametrizable
-
accessSpecifier
- Specified by:
accessSpecifierin interfaceHasAccessSpecifier
-
getConstructors
- Specified by:
getConstructorsin interfaceResolvedReferenceTypeDeclaration
-
toAst
- Specified by:
toAstin interfaceAssociableToAST<ClassOrInterfaceDeclaration>
-