Class ReflectionInterfaceDeclaration
- java.lang.Object
-
- com.github.javaparser.symbolsolver.logic.AbstractTypeDeclaration
-
- com.github.javaparser.symbolsolver.reflectionmodel.ReflectionInterfaceDeclaration
-
- All Implemented Interfaces:
com.github.javaparser.resolution.declarations.AssociableToAST<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration>
,com.github.javaparser.resolution.declarations.HasAccessSpecifier
,com.github.javaparser.resolution.declarations.ResolvedDeclaration
,com.github.javaparser.resolution.declarations.ResolvedInterfaceDeclaration
,com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
,com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
,com.github.javaparser.resolution.declarations.ResolvedTypeParametrizable
,com.github.javaparser.symbolsolver.logic.TypeDeclarationWithResolutionCapabilities
public class ReflectionInterfaceDeclaration extends com.github.javaparser.symbolsolver.logic.AbstractTypeDeclaration implements com.github.javaparser.resolution.declarations.ResolvedInterfaceDeclaration, com.github.javaparser.symbolsolver.logic.TypeDeclarationWithResolutionCapabilities
- Author:
- Federico Tomassetti
-
-
Constructor Summary
Constructors Constructor Description ReflectionInterfaceDeclaration(Class<?> clazz, com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description com.github.javaparser.ast.AccessSpecifier
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()
com.github.javaparser.symbolsolver.model.resolution.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)
com.github.javaparser.symbolsolver.model.resolution.SymbolReference<? extends com.github.javaparser.resolution.declarations.ResolvedValueDeclaration>
solveSymbol(String name, com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
Deprecated.Optional<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration>
toAst()
String
toString()
-
Methods inherited from class com.github.javaparser.symbolsolver.logic.AbstractTypeDeclaration
getAllMethods, isFunctionalInterface
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
asEnumConstant, asField, asMethod, asParameter, hasName, isEnumConstant, isField, isMethod, isParameter, isVariable
-
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedInterfaceDeclaration
getAllInterfacesExtended
-
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
asReferenceType, findTypeParameter, getAllAncestors, getAllMethods, getAllNonStaticFields, getAllStaticFields, getAncestors, getDeclaredFields, getVisibleField, getVisibleFields, hasAnnotation, hasVisibleField, isFunctionalInterface
-
-
-
-
Constructor Detail
-
ReflectionInterfaceDeclaration
public ReflectionInterfaceDeclaration(Class<?> clazz, com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
-
-
Method Detail
-
isAssignableBy
public boolean isAssignableBy(com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration other)
- Specified by:
isAssignableBy
in interfacecom.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
-
getPackageName
public String getPackageName()
- Specified by:
getPackageName
in interfacecom.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
-
getClassName
public String getClassName()
- Specified by:
getClassName
in interfacecom.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
-
getQualifiedName
public String getQualifiedName()
- Specified by:
getQualifiedName
in interfacecom.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
-
solveMethod
@Deprecated public com.github.javaparser.symbolsolver.model.resolution.SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> solveMethod(String name, List<com.github.javaparser.resolution.types.ResolvedType> parameterTypes, boolean staticOnly)
Deprecated.- Specified by:
solveMethod
in interfacecom.github.javaparser.symbolsolver.logic.TypeDeclarationWithResolutionCapabilities
-
getUsage
public com.github.javaparser.resolution.types.ResolvedType getUsage(com.github.javaparser.ast.Node node)
-
solveMethodAsUsage
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)
-
canBeAssignedTo
public boolean canBeAssignedTo(com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration other)
- Specified by:
canBeAssignedTo
in interfacecom.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
-
isAssignableBy
public boolean isAssignableBy(com.github.javaparser.resolution.types.ResolvedType type)
- Specified by:
isAssignableBy
in interfacecom.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
-
isTypeParameter
public boolean isTypeParameter()
- Specified by:
isTypeParameter
in interfacecom.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
-
getField
public com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration getField(String name)
- Specified by:
getField
in interfacecom.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
-
getAllFields
public List<com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration> getAllFields()
- Specified by:
getAllFields
in interfacecom.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
-
solveSymbol
@Deprecated public com.github.javaparser.symbolsolver.model.resolution.SymbolReference<? extends com.github.javaparser.resolution.declarations.ResolvedValueDeclaration> solveSymbol(String name, com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
Deprecated.
-
getAncestors
public List<com.github.javaparser.resolution.types.ResolvedReferenceType> getAncestors(boolean acceptIncompleteList)
- Specified by:
getAncestors
in interfacecom.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
-
getDeclaredMethods
public Set<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> getDeclaredMethods()
- Specified by:
getDeclaredMethods
in interfacecom.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
-
hasField
public boolean hasField(String name)
- Specified by:
hasField
in interfacecom.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
-
getName
public String getName()
- Specified by:
getName
in interfacecom.github.javaparser.resolution.declarations.ResolvedDeclaration
-
isInterface
public boolean isInterface()
- Specified by:
isInterface
in interfacecom.github.javaparser.resolution.declarations.ResolvedInterfaceDeclaration
- Specified by:
isInterface
in interfacecom.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
-
getInterfacesExtended
public List<com.github.javaparser.resolution.types.ResolvedReferenceType> getInterfacesExtended()
- Specified by:
getInterfacesExtended
in interfacecom.github.javaparser.resolution.declarations.ResolvedInterfaceDeclaration
-
containerType
public Optional<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> containerType()
- Specified by:
containerType
in interfacecom.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
-
internalTypes
public Set<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> internalTypes()
- Specified by:
internalTypes
in interfacecom.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
-
asInterface
public com.github.javaparser.resolution.declarations.ResolvedInterfaceDeclaration asInterface()
- Specified by:
asInterface
in interfacecom.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
-
hasDirectlyAnnotation
public boolean hasDirectlyAnnotation(String canonicalName)
- Specified by:
hasDirectlyAnnotation
in interfacecom.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
-
getTypeParameters
public List<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration> getTypeParameters()
- Specified by:
getTypeParameters
in interfacecom.github.javaparser.resolution.declarations.ResolvedTypeParametrizable
-
accessSpecifier
public com.github.javaparser.ast.AccessSpecifier accessSpecifier()
- Specified by:
accessSpecifier
in interfacecom.github.javaparser.resolution.declarations.HasAccessSpecifier
-
getConstructors
public List<com.github.javaparser.resolution.declarations.ResolvedConstructorDeclaration> getConstructors()
- Specified by:
getConstructors
in interfacecom.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
-
toAst
public Optional<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration> toAst()
- Specified by:
toAst
in interfacecom.github.javaparser.resolution.declarations.AssociableToAST<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration>
-
-