Uses of Interface
com.github.javaparser.resolution.types.ResolvedType
-
-
Uses of ResolvedType in com.github.javaparser.ast.expr
Methods in com.github.javaparser.ast.expr that return ResolvedType Modifier and Type Method Description ResolvedTypeExpression. calculateResolvedType()returns the type associated with the node. -
Uses of ResolvedType in com.github.javaparser.ast.type
-
Uses of ResolvedType in com.github.javaparser.resolution
Methods in com.github.javaparser.resolution that return ResolvedType Modifier and Type Method Description ResolvedTypeSymbolResolver. calculateType(Expression expression)For an expression it would find the corresponding resolved type.ResolvedTypeSolver. classToResolvedType(Class<?> clazz)Convert aClassinto the correspondingResolvedType.ResolvedTypeMethodUsage. getParamType(int i)Return the type of the formal argument at the given position.ResolvedTypeMethodUsage. returnType()ResolvedTypeSolver. solveTypeUsage(String name, Context context)Methods in com.github.javaparser.resolution that return types with arguments of type ResolvedType Modifier and Type Method Description List<ResolvedType>MethodUsage. exceptionTypes()List<ResolvedType>MethodUsage. getParamTypes()default Optional<ResolvedType>Context. solveGenericType(String name)Default to no generics available in this context, delegating solving to the parent context.default Optional<ResolvedType>Context. solveGenericTypeInParentContext(String name)Methods in com.github.javaparser.resolution with parameters of type ResolvedType Modifier and Type Method Description MethodUsageMethodUsage. replaceExceptionType(int i, ResolvedType replaced)MethodUsageMethodUsage. replaceParamType(int i, ResolvedType replaced)MethodUsageMethodUsage. replaceReturnType(ResolvedType returnType)MethodUsageMethodUsage. replaceTypeParameter(ResolvedTypeParameterDeclaration typeParameter, ResolvedType type)Method parameters in com.github.javaparser.resolution with type arguments of type ResolvedType Modifier and Type Method Description default SymbolReference<ResolvedConstructorDeclaration>Context. solveConstructor(List<ResolvedType> argumentsTypes)We find the method declaration which is the best match for the given name and list of typeParametersValues.default SymbolReference<ResolvedMethodDeclaration>Context. solveMethod(String name, List<ResolvedType> argumentsTypes, boolean staticOnly)We find the method declaration which is the best match for the given name and list of typeParametersValues.MethodUsageSolver. solveMethod(String methodName, List<ResolvedType> argumentsTypes, Node node)MethodUsageSolver. solveMethod(String methodName, List<ResolvedType> argumentsTypes, Context context)Optional<MethodUsage>Context. solveMethodAsUsage(String name, List<ResolvedType> argumentsTypes)Similar to solveMethod but we return a MethodUsage.default SymbolReference<ResolvedMethodDeclaration>Context. solveMethodInParentContext(String name, List<ResolvedType> argumentsTypes, boolean staticOnly)default SymbolReference<ResolvedTypeDeclaration>Context. solveType(String name, List<ResolvedType> typeArguments)Method used to solve a name with an expected list of type arguments.default SymbolReference<ResolvedTypeDeclaration>Context. solveTypeInParentContext(String name, List<ResolvedType> typeArguments)Solve a name with type arguments in the parent context.Constructors in com.github.javaparser.resolution with parameters of type ResolvedType Constructor Description MethodUsage(ResolvedMethodDeclaration declaration, List<ResolvedType> paramTypes, ResolvedType returnType)MethodUsage(ResolvedMethodDeclaration declaration, List<ResolvedType> paramTypes, ResolvedType returnType, List<ResolvedType> exceptionTypes)Constructor parameters in com.github.javaparser.resolution with type arguments of type ResolvedType Constructor Description MethodUsage(ResolvedMethodDeclaration declaration, List<ResolvedType> paramTypes, ResolvedType returnType)MethodUsage(ResolvedMethodDeclaration declaration, List<ResolvedType> paramTypes, ResolvedType returnType, List<ResolvedType> exceptionTypes) -
Uses of ResolvedType in com.github.javaparser.resolution.declarations
Methods in com.github.javaparser.resolution.declarations that return ResolvedType Modifier and Type Method Description default ResolvedTypeResolvedTypeParameterDeclaration. getLowerBound()Get the type used as lower bound.ResolvedTypeResolvedMethodDeclaration. getReturnType()The type of the value returned by the current method.ResolvedTypeResolvedMethodLikeDeclaration. getSpecifiedException(int index)Type of the corresponding entry in the throws clause.ResolvedTypeResolvedTypeParameterDeclaration.Bound. getType()Get the type used in the Bound.ResolvedTypeResolvedValueDeclaration. getType()Type of the declaration.default ResolvedTypeResolvedTypeParameterDeclaration. getUpperBound()Get the type used as upper bound.Methods in com.github.javaparser.resolution.declarations that return types with arguments of type ResolvedType Modifier and Type Method Description default List<ResolvedType>ResolvedMethodLikeDeclaration. formalParameterTypes()default List<ResolvedType>ResolvedMethodLikeDeclaration. getSpecifiedExceptions()Methods in com.github.javaparser.resolution.declarations with parameters of type ResolvedType Modifier and Type Method Description static ResolvedTypeParameterDeclaration.BoundResolvedTypeParameterDeclaration.Bound. extendsBound(ResolvedType type)Create an extends bound with the given type:booleanResolvedReferenceTypeDeclaration. isAssignableBy(ResolvedType type)Can we assign instances of the given type to variables having the type defined by this declaration?default booleanResolvedMethodDeclaration. isReturnTypeSubstituable(ResolvedType otherResolvedType)static ResolvedTypeParameterDeclaration.BoundResolvedTypeParameterDeclaration.Bound. superBound(ResolvedType type)Create a super bound with the given type: -
Uses of ResolvedType in com.github.javaparser.resolution.logic
Classes in com.github.javaparser.resolution.logic that implement ResolvedType Modifier and Type Class Description classInferenceVariableTypeAn element using during type inference.Methods in com.github.javaparser.resolution.logic that return ResolvedType Modifier and Type Method Description ResolvedTypeInferenceContext. addPair(ResolvedType target, ResolvedType actual)ResolvedTypeInferenceContext. addSingle(ResolvedType actual)ResolvedTypeInferenceVariableType. equivalentType()static ResolvedTypeMethodResolutionLogic. replaceTypeParam(ResolvedType type, ResolvedTypeParameterDeclaration tp, TypeSolver typeSolver)ResolvedTypeInferenceContext. resolve(ResolvedType type)Methods in com.github.javaparser.resolution.logic with parameters of type ResolvedType Modifier and Type Method Description ResolvedTypeInferenceContext. addPair(ResolvedType target, ResolvedType actual)ResolvedTypeInferenceContext. addSingle(ResolvedType actual)static Optional<MethodUsage>FunctionalInterfaceLogic. getFunctionalMethod(ResolvedType type)Get the functional method defined by the type, if any.static voidMethodResolutionLogic. inferTypes(ResolvedType source, ResolvedType target, Map<ResolvedTypeParameterDeclaration,ResolvedType> mappings)booleanInferenceVariableType. isAssignableBy(ResolvedType other)static booleanMethodResolutionLogic. isAssignableMatchTypeParameters(ResolvedType expected, ResolvedType actual, Map<String,ResolvedType> matchedParameters)static booleanFunctionalInterfaceLogic. isFunctionalInterfaceType(ResolvedType type)voidInferenceVariableType. registerEquivalentType(ResolvedType type)static ResolvedTypeMethodResolutionLogic. replaceTypeParam(ResolvedType type, ResolvedTypeParameterDeclaration tp, TypeSolver typeSolver)ResolvedTypeInferenceContext. resolve(ResolvedType type)Method parameters in com.github.javaparser.resolution.logic with type arguments of type ResolvedType Modifier and Type Method Description static voidMethodResolutionLogic. inferTypes(ResolvedType source, ResolvedType target, Map<ResolvedTypeParameterDeclaration,ResolvedType> mappings)static booleanConstructorResolutionLogic. isApplicable(ResolvedConstructorDeclaration constructor, List<ResolvedType> argumentsTypes, TypeSolver typeSolver)static booleanMethodResolutionLogic. isApplicable(ResolvedMethodDeclaration method, String name, List<ResolvedType> argumentsTypes, TypeSolver typeSolver)static booleanMethodResolutionLogic. isApplicable(MethodUsage methodUsage, String needleName, List<ResolvedType> needleParameterTypes, TypeSolver typeSolver)Note the specific naming here -- parameters are part of the method declaration, while arguments are the values passed when calling a method.static booleanMethodResolutionLogic. isAssignableMatchTypeParameters(ResolvedReferenceType expected, ResolvedReferenceType actual, Map<String,ResolvedType> matchedParameters)static booleanMethodResolutionLogic. isAssignableMatchTypeParameters(ResolvedType expected, ResolvedType actual, Map<String,ResolvedType> matchedParameters)protected static booleanMethodResolutionLogic. isExactMatch(ResolvedMethodLikeDeclaration method, List<ResolvedType> argumentsTypes)SymbolReference<ResolvedMethodDeclaration>MethodResolutionCapability. solveMethod(String name, List<ResolvedType> argumentsTypes, boolean staticOnly)static SymbolReference<ResolvedMethodDeclaration>MethodResolutionLogic. solveMethodInType(ResolvedTypeDeclaration typeDeclaration, String name, List<ResolvedType> argumentsTypes)static SymbolReference<ResolvedMethodDeclaration>MethodResolutionLogic. solveMethodInType(ResolvedTypeDeclaration typeDeclaration, String name, List<ResolvedType> argumentsTypes, boolean staticOnly)Constructors in com.github.javaparser.resolution.logic with parameters of type ResolvedType Constructor Description ConflictingGenericTypesException(ResolvedType formalType, ResolvedType actualType) -
Uses of ResolvedType in com.github.javaparser.resolution.model
Classes in com.github.javaparser.resolution.model that implement ResolvedType Modifier and Type Class Description classLambdaArgumentTypePlaceholderPlaceholder used to represent a lambda argument type while it is being calculated.Methods in com.github.javaparser.resolution.model that return ResolvedType Modifier and Type Method Description ResolvedTypeValue. getType()Methods in com.github.javaparser.resolution.model with parameters of type ResolvedType Modifier and Type Method Description booleanLambdaArgumentTypePlaceholder. isAssignableBy(ResolvedType other)Constructors in com.github.javaparser.resolution.model with parameters of type ResolvedType Constructor Description Value(ResolvedType type, String name) -
Uses of ResolvedType in com.github.javaparser.resolution.model.typesystem
Classes in com.github.javaparser.resolution.model.typesystem that implement ResolvedType Modifier and Type Class Description classLazyTypeclassNullTypeThis is a virtual type used to represent null values.classReferenceTypeImplMethods in com.github.javaparser.resolution.model.typesystem that return ResolvedType Modifier and Type Method Description ResolvedTypeLazyType. getType()ResolvedTypeLazyType. replaceTypeVariables(ResolvedTypeParameterDeclaration tp, ResolvedType replaced)ResolvedTypeLazyType. replaceTypeVariables(ResolvedTypeParameterDeclaration tp, ResolvedType replaced, Map<ResolvedTypeParameterDeclaration,ResolvedType> inferredTypes)ResolvedTypeReferenceTypeImpl. toRawType()ResolvedTypeReferenceTypeImpl. transformTypeParameters(ResolvedTypeTransformer transformer)Execute a transformation on all the type parameters of this element.Methods in com.github.javaparser.resolution.model.typesystem with parameters of type ResolvedType Modifier and Type Method Description booleanLazyType. isAssignableBy(ResolvedType other)booleanNullType. isAssignableBy(ResolvedType other)booleanReferenceTypeImpl. isAssignableBy(ResolvedType other)This method checks if ThisType t = new OtherType() would compile.ResolvedTypeLazyType. replaceTypeVariables(ResolvedTypeParameterDeclaration tp, ResolvedType replaced)ResolvedTypeLazyType. replaceTypeVariables(ResolvedTypeParameterDeclaration tp, ResolvedType replaced, Map<ResolvedTypeParameterDeclaration,ResolvedType> inferredTypes)Method parameters in com.github.javaparser.resolution.model.typesystem with type arguments of type ResolvedType Modifier and Type Method Description protected ResolvedReferenceTypeReferenceTypeImpl. create(ResolvedReferenceTypeDeclaration typeDeclaration, List<ResolvedType> typeParametersCorrected)ResolvedTypeLazyType. replaceTypeVariables(ResolvedTypeParameterDeclaration tp, ResolvedType replaced, Map<ResolvedTypeParameterDeclaration,ResolvedType> inferredTypes)Constructor parameters in com.github.javaparser.resolution.model.typesystem with type arguments of type ResolvedType Constructor Description LazyType(Function<Void,ResolvedType> provider)ReferenceTypeImpl(ResolvedReferenceTypeDeclaration typeDeclaration, List<ResolvedType> typeArguments) -
Uses of ResolvedType in com.github.javaparser.resolution.promotion
Methods in com.github.javaparser.resolution.promotion that return ResolvedType Modifier and Type Method Description ResolvedTypeConditionalExprHandler. resolveType() -
Uses of ResolvedType in com.github.javaparser.resolution.types
Classes in com.github.javaparser.resolution.types that implement ResolvedType Modifier and Type Class Description classResolvedArrayTypeArray Type.classResolvedIntersectionTypeAn intersection type is defined in java as list of types separates by ampersands.classResolvedLambdaConstraintTypeclassResolvedPrimitiveTypeclassResolvedReferenceTypeA ReferenceType like a class, an interface or an enum.classResolvedTypeVariableFrom JLS 4.4: A type variable is introduced by the declaration of a type parameter of a generic class, interface, method, or constructor (§8.1.2, §9.1.2, §8.4.4, §8.8.4).classResolvedUnionTypeA union type is defined in java as list of types separates by pipes.classResolvedVoidTypeThe special type void.classResolvedWildcardA wildcard can be: - unbounded (?)Fields in com.github.javaparser.resolution.types declared as ResolvedType Modifier and Type Field Description static ResolvedTypeResolvedVoidType. INSTANCEMethods in com.github.javaparser.resolution.types that return types with arguments of type ResolvedType Modifier and Type Method Description static Optional<ResolvedType>ResolvedPrimitiveType. byBoxTypeQName(String qName)List<ResolvedType>ResolvedIntersectionType. getElements()List<ResolvedType>ResolvedUnionType. getElements()Optional<ResolvedType>ResolvedReferenceType. getFieldType(String name)The type of the field could be different from the one in the corresponding FieldDeclaration because type variables would be solved.Optional<ResolvedType>ResolvedReferenceType. getGenericParameterByName(String name)Get the type associated with the type parameter with the given name.List<Pair<ResolvedTypeParameterDeclaration,ResolvedType>>ResolvedReferenceType. getTypeParametersMap()Get the values for all type parameters declared on this type.List<ResolvedType>ResolvedReferenceType. typeParametersValues()Get the values for all type parameters declared on this type.Optional<ResolvedType>ResolvedReferenceType. typeParamValue(ResolvedTypeParameterDeclaration typeParameterDeclaration)Constructors in com.github.javaparser.resolution.types with parameters of type ResolvedType Constructor Description ResolvedArrayType(ResolvedType baseType)Constructor parameters in com.github.javaparser.resolution.types with type arguments of type ResolvedType Constructor Description ResolvedIntersectionType(Collection<ResolvedType> elements)ResolvedReferenceType(ResolvedReferenceTypeDeclaration typeDeclaration, List<ResolvedType> typeArguments)ResolvedUnionType(List<ResolvedType> elements) -
Uses of ResolvedType in com.github.javaparser.resolution.types.parametrization
Methods in com.github.javaparser.resolution.types.parametrization that return ResolvedType Modifier and Type Method Description ResolvedTypeResolvedTypeParametersMap. getValue(ResolvedTypeParameterDeclaration typeParameter)ResolvedTypeResolvedTypeParametersMap. replaceAll(ResolvedType type)default ResolvedTypeResolvedTypeParameterValueProvider. useThisTypeParametersOnTheGivenType(ResolvedType type)Replace the type typeParametersValues present in the given type with the ones for which this type has a value.Methods in com.github.javaparser.resolution.types.parametrization that return types with arguments of type ResolvedType Modifier and Type Method Description Optional<ResolvedType>ResolvedTypeParameterValueProvider. getGenericParameterByName(String name)List<ResolvedType>ResolvedTypeParametersMap. getTypes()Optional<ResolvedType>ResolvedTypeParametersMap. getValueBySignature(String signature)Optional<ResolvedType>ResolvedTypeParameterValueProvider. typeParamValue(ResolvedTypeParameterDeclaration typeParameterDeclaration)Calculate the value for the given type parameter.Methods in com.github.javaparser.resolution.types.parametrization with parameters of type ResolvedType Modifier and Type Method Description ResolvedTypeResolvedTypeParametersMap. replaceAll(ResolvedType type)ResolvedTypeParametersMap.BuilderResolvedTypeParametersMap.Builder. setValue(ResolvedTypeParameterDeclaration typeParameter, ResolvedType value)default ResolvedTypeResolvedTypeParameterValueProvider. useThisTypeParametersOnTheGivenType(ResolvedType type)Replace the type typeParametersValues present in the given type with the ones for which this type has a value.
-