Class ReflectionClassDeclaration
java.lang.Object
com.github.javaparser.symbolsolver.logic.AbstractTypeDeclaration
com.github.javaparser.symbolsolver.logic.AbstractClassDeclaration
com.github.javaparser.symbolsolver.reflectionmodel.ReflectionClassDeclaration
- All Implemented Interfaces:
AssociableToAST<Node>,HasAccessSpecifier,ResolvedClassDeclaration,ResolvedDeclaration,ResolvedReferenceTypeDeclaration,ResolvedTypeDeclaration,ResolvedTypeParametrizable,MethodUsageResolutionCapability,MethodResolutionCapability
public class ReflectionClassDeclaration
extends AbstractClassDeclaration
implements 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)booleanisClass()booleanisField()booleanbooleanbooleanisType()booleanprotected ResolvedReferenceTypeobject()An implementation of the Object class.solveMethod(String name, List<ResolvedType> argumentsTypes, boolean staticOnly)Deprecated.solveMethodAsUsage(String name, List<ResolvedType> argumentsTypes, 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.AbstractClassDeclaration
asClass, getAllInterfaces, getAllSuperClasses, hasNameMethods 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, isEnumConstant, isMethod, isPattern, isVariableMethods 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, asEnum, asInterface, asType, asTypeParameter, getId, getInternalType, hasInternalType, isAnnotation, isAnonymousClass, isEnumMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeParametrizable
isGeneric
-
Constructor Details
-
ReflectionClassDeclaration
-
-
Method Details
-
getDeclaredMethods
- Specified by:
getDeclaredMethodsin interfaceResolvedReferenceTypeDeclaration
-
getAncestors
- Specified by:
getAncestorsin interfaceResolvedReferenceTypeDeclaration
-
equals
-
hashCode
public int hashCode() -
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> argumentsTypes, boolean staticOnly)Deprecated.- Specified by:
solveMethodin interfaceMethodResolutionCapability
-
toString
-
getUsage
-
solveMethodAsUsage
public Optional<MethodUsage> solveMethodAsUsage(String name, List<ResolvedType> argumentsTypes, 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. -
hasDirectlyAnnotation
- Specified by:
hasDirectlyAnnotationin interfaceResolvedReferenceTypeDeclaration
-
hasField
- Specified by:
hasFieldin interfaceResolvedReferenceTypeDeclaration
-
isAssignableBy
- Specified by:
isAssignableByin interfaceResolvedReferenceTypeDeclaration
-
getName
- Specified by:
getNamein interfaceResolvedDeclaration
-
isField
public boolean isField()- Specified by:
isFieldin interfaceResolvedDeclaration
-
isParameter
public boolean isParameter()- Specified by:
isParameterin interfaceResolvedDeclaration
-
isType
public boolean isType()- Specified by:
isTypein interfaceResolvedDeclaration- Specified by:
isTypein interfaceResolvedTypeDeclaration
-
isClass
public boolean isClass()- Specified by:
isClassin interfaceResolvedClassDeclaration- Specified by:
isClassin interfaceResolvedTypeDeclaration
-
getSuperClass
- Specified by:
getSuperClassin interfaceResolvedClassDeclaration
-
getInterfaces
- Specified by:
getInterfacesin interfaceResolvedClassDeclaration
-
isInterface
public boolean isInterface()- Specified by:
isInterfacein interfaceResolvedTypeDeclaration
-
getTypeParameters
- Specified by:
getTypeParametersin interfaceResolvedTypeParametrizable
-
accessSpecifier
- Specified by:
accessSpecifierin interfaceHasAccessSpecifier
-
getConstructors
- Specified by:
getConstructorsin interfaceResolvedClassDeclaration- Specified by:
getConstructorsin interfaceResolvedReferenceTypeDeclaration
-
containerType
- Specified by:
containerTypein interfaceResolvedTypeDeclaration
-
internalTypes
- Specified by:
internalTypesin interfaceResolvedTypeDeclaration
-
toAst
- Specified by:
toAstin interfaceAssociableToAST<Node>
-
object
Description copied from class:AbstractClassDeclarationAn implementation of the Object class.- Specified by:
objectin classAbstractClassDeclaration
-