public class ReflectionInterfaceDeclaration extends AbstractTypeDeclaration implements com.github.javaparser.resolution.declarations.ResolvedInterfaceDeclaration, MethodResolutionCapability, MethodUsageResolutionCapability
Constructor and Description |
---|
ReflectionInterfaceDeclaration(Class<?> clazz,
TypeSolver typeSolver) |
Modifier and Type | Method and Description |
---|---|
com.github.javaparser.ast.Modifier.Keyword |
accessSpecifier() |
com.github.javaparser.resolution.declarations.ResolvedInterfaceDeclaration |
asInterface() |
boolean |
canBeAssignedTo(com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration other) |
Optional<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> |
containerType() |
boolean |
equals(Object o) |
List<com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration> |
getAllFields() |
List<com.github.javaparser.resolution.types.ResolvedReferenceType> |
getAncestors(boolean acceptIncompleteList) |
String |
getClassName() |
List<com.github.javaparser.resolution.declarations.ResolvedConstructorDeclaration> |
getConstructors() |
Set<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> |
getDeclaredMethods() |
com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration |
getField(String name) |
List<com.github.javaparser.resolution.types.ResolvedReferenceType> |
getInterfacesExtended() |
String |
getName() |
String |
getPackageName() |
String |
getQualifiedName() |
List<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration> |
getTypeParameters() |
com.github.javaparser.resolution.types.ResolvedType |
getUsage(com.github.javaparser.ast.Node node) |
boolean |
hasDirectlyAnnotation(String canonicalName) |
boolean |
hasField(String name) |
int |
hashCode() |
Set<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> |
internalTypes() |
boolean |
isAssignableBy(com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration other) |
boolean |
isAssignableBy(com.github.javaparser.resolution.types.ResolvedType type) |
boolean |
isInterface() |
boolean |
isTypeParameter() |
SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> |
solveMethod(String name,
List<com.github.javaparser.resolution.types.ResolvedType> parameterTypes,
boolean staticOnly)
Deprecated.
|
Optional<com.github.javaparser.resolution.MethodUsage> |
solveMethodAsUsage(String name,
List<com.github.javaparser.resolution.types.ResolvedType> parameterTypes,
Context invokationContext,
List<com.github.javaparser.resolution.types.ResolvedType> typeParameterValues) |
SymbolReference<? extends com.github.javaparser.resolution.declarations.ResolvedValueDeclaration> |
solveSymbol(String name,
TypeSolver typeSolver)
Deprecated.
|
Optional<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration> |
toAst() |
String |
toString() |
getAllMethods, isFunctionalInterface
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAllInterfacesExtended
asReferenceType, findTypeParameter, getAllAncestors, getAllMethods, getAllNonStaticFields, getAllStaticFields, getAncestors, getDeclaredFields, getVisibleField, getVisibleFields, hasAnnotation, hasVisibleField, isFunctionalInterface
asClass, asEnum, asType, asTypeParameter, getId, getInternalType, hasInternalType, isAnonymousClass, isClass, isEnum, isType
public ReflectionInterfaceDeclaration(Class<?> clazz, TypeSolver typeSolver)
public boolean isAssignableBy(com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration other)
isAssignableBy
in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
public String getPackageName()
getPackageName
in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
public String getClassName()
getClassName
in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
public String getQualifiedName()
getQualifiedName
in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
@Deprecated public SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> solveMethod(String name, List<com.github.javaparser.resolution.types.ResolvedType> parameterTypes, boolean staticOnly)
solveMethod
in interface MethodResolutionCapability
public com.github.javaparser.resolution.types.ResolvedType getUsage(com.github.javaparser.ast.Node node)
public Optional<com.github.javaparser.resolution.MethodUsage> solveMethodAsUsage(String name, List<com.github.javaparser.resolution.types.ResolvedType> parameterTypes, Context invokationContext, List<com.github.javaparser.resolution.types.ResolvedType> typeParameterValues)
solveMethodAsUsage
in interface MethodUsageResolutionCapability
public boolean canBeAssignedTo(com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration other)
canBeAssignedTo
in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
public boolean isAssignableBy(com.github.javaparser.resolution.types.ResolvedType type)
isAssignableBy
in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
public boolean isTypeParameter()
isTypeParameter
in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
public com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration getField(String name)
getField
in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
public List<com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration> getAllFields()
getAllFields
in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
@Deprecated public SymbolReference<? extends com.github.javaparser.resolution.declarations.ResolvedValueDeclaration> solveSymbol(String name, TypeSolver typeSolver)
public List<com.github.javaparser.resolution.types.ResolvedReferenceType> getAncestors(boolean acceptIncompleteList)
getAncestors
in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
public Set<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> getDeclaredMethods()
getDeclaredMethods
in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
public boolean hasField(String name)
hasField
in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
public String getName()
getName
in interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
public boolean isInterface()
isInterface
in interface com.github.javaparser.resolution.declarations.ResolvedInterfaceDeclaration
isInterface
in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
public List<com.github.javaparser.resolution.types.ResolvedReferenceType> getInterfacesExtended()
getInterfacesExtended
in interface com.github.javaparser.resolution.declarations.ResolvedInterfaceDeclaration
public Optional<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> containerType()
containerType
in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
public Set<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> internalTypes()
internalTypes
in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
public com.github.javaparser.resolution.declarations.ResolvedInterfaceDeclaration asInterface()
asInterface
in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
public boolean hasDirectlyAnnotation(String canonicalName)
hasDirectlyAnnotation
in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
public List<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration> getTypeParameters()
getTypeParameters
in interface com.github.javaparser.resolution.declarations.ResolvedTypeParametrizable
public com.github.javaparser.ast.Modifier.Keyword accessSpecifier()
accessSpecifier
in interface com.github.javaparser.resolution.declarations.HasAccessSpecifier
public List<com.github.javaparser.resolution.declarations.ResolvedConstructorDeclaration> getConstructors()
getConstructors
in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
public Optional<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration> toAst()
toAst
in interface com.github.javaparser.resolution.declarations.AssociableToAST<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration>
Copyright © 2007–2019. All rights reserved.