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 ResolvedType
Expression. calculateResolvedType()
returns the type associated with the node.Methods in com.github.javaparser.ast.expr with parameters of type ResolvedType Modifier and Type Method Description private boolean
MethodCallExpr. hasParameterwithSameTypeThanResultType(ResolvedType resolvedReturnType)
-
Uses of ResolvedType in com.github.javaparser.ast.type
-
Uses of ResolvedType in com.github.javaparser.resolution
Fields in com.github.javaparser.resolution declared as ResolvedType Modifier and Type Field Description private ResolvedType
MethodUsage. returnType
Fields in com.github.javaparser.resolution with type parameters of type ResolvedType Modifier and Type Field Description private java.util.List<ResolvedType>
MethodUsage. exceptionTypes
private java.util.List<ResolvedType>
MethodUsage. paramTypes
Methods in com.github.javaparser.resolution that return ResolvedType Modifier and Type Method Description ResolvedType
SymbolResolver. calculateType(Expression expression)
For an expression it would find the corresponding resolved type.ResolvedType
Solver. classToResolvedType(java.lang.Class<?> clazz)
Convert aClass
into the correspondingResolvedType
.ResolvedType
MethodUsage. getParamType(int i)
Return the type of the formal argument at the given position.ResolvedType
MethodUsage. returnType()
ResolvedType
Solver. solveTypeUsage(java.lang.String name, Context context)
Methods in com.github.javaparser.resolution that return types with arguments of type ResolvedType Modifier and Type Method Description java.util.List<ResolvedType>
MethodUsage. exceptionTypes()
java.util.List<ResolvedType>
MethodUsage. getParamTypes()
default java.util.Optional<ResolvedType>
Context. solveGenericType(java.lang.String name)
Default to no generics available in this context, delegating solving to the parent context.default java.util.Optional<ResolvedType>
Context. solveGenericTypeInParentContext(java.lang.String name)
Methods in com.github.javaparser.resolution with parameters of type ResolvedType Modifier and Type Method Description MethodUsage
MethodUsage. replaceExceptionType(int i, ResolvedType replaced)
MethodUsage
MethodUsage. replaceParamType(int i, ResolvedType replaced)
MethodUsage
MethodUsage. replaceReturnType(ResolvedType returnType)
MethodUsage
MethodUsage. 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(java.util.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(java.lang.String name, java.util.List<ResolvedType> argumentsTypes, boolean staticOnly)
We find the method declaration which is the best match for the given name and list of typeParametersValues.MethodUsage
Solver. solveMethod(java.lang.String methodName, java.util.List<ResolvedType> argumentsTypes, Node node)
MethodUsage
Solver. solveMethod(java.lang.String methodName, java.util.List<ResolvedType> argumentsTypes, Context context)
java.util.Optional<MethodUsage>
Context. solveMethodAsUsage(java.lang.String name, java.util.List<ResolvedType> argumentsTypes)
Similar to solveMethod but we return a MethodUsage.default SymbolReference<ResolvedMethodDeclaration>
Context. solveMethodInParentContext(java.lang.String name, java.util.List<ResolvedType> argumentsTypes, boolean staticOnly)
default SymbolReference<ResolvedTypeDeclaration>
Context. solveType(java.lang.String name, java.util.List<ResolvedType> typeArguments)
Method used to solve a name with an expected list of type arguments.default SymbolReference<ResolvedTypeDeclaration>
Context. solveTypeInParentContext(java.lang.String name, java.util.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, java.util.List<ResolvedType> paramTypes, ResolvedType returnType)
MethodUsage(ResolvedMethodDeclaration declaration, java.util.List<ResolvedType> paramTypes, ResolvedType returnType, java.util.List<ResolvedType> exceptionTypes)
MethodUsage(ResolvedMethodDeclaration declaration, java.util.List<ResolvedType> paramTypes, ResolvedType returnType, java.util.List<ResolvedType> exceptionTypes, ResolvedTypeParametersMap typeParametersMap)
Constructor parameters in com.github.javaparser.resolution with type arguments of type ResolvedType Constructor Description MethodUsage(ResolvedMethodDeclaration declaration, java.util.List<ResolvedType> paramTypes, ResolvedType returnType)
MethodUsage(ResolvedMethodDeclaration declaration, java.util.List<ResolvedType> paramTypes, ResolvedType returnType, java.util.List<ResolvedType> exceptionTypes)
MethodUsage(ResolvedMethodDeclaration declaration, java.util.List<ResolvedType> paramTypes, ResolvedType returnType, java.util.List<ResolvedType> exceptionTypes, ResolvedTypeParametersMap typeParametersMap)
-
Uses of ResolvedType in com.github.javaparser.resolution.declarations
Fields in com.github.javaparser.resolution.declarations declared as ResolvedType Modifier and Type Field Description private ResolvedType
ResolvedTypeParameterDeclaration.Bound. type
Methods in com.github.javaparser.resolution.declarations that return ResolvedType Modifier and Type Method Description default ResolvedType
ResolvedTypeParameterDeclaration. getLowerBound()
Get the type used as lower bound.ResolvedType
ResolvedMethodDeclaration. getReturnType()
The type of the value returned by the current method.ResolvedType
ResolvedMethodLikeDeclaration. getSpecifiedException(int index)
Type of the corresponding entry in the throws clause.ResolvedType
ResolvedTypeParameterDeclaration.Bound. getType()
Get the type used in the Bound.ResolvedType
ResolvedValueDeclaration. getType()
Type of the declaration.default ResolvedType
ResolvedTypeParameterDeclaration. 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 java.util.List<ResolvedType>
ResolvedMethodLikeDeclaration. formalParameterTypes()
default java.util.List<ResolvedType>
ResolvedMethodLikeDeclaration. getSpecifiedExceptions()
Methods in com.github.javaparser.resolution.declarations with parameters of type ResolvedType Modifier and Type Method Description static ResolvedTypeParameterDeclaration.Bound
ResolvedTypeParameterDeclaration.Bound. extendsBound(ResolvedType type)
Create an extends bound with the given type:boolean
ResolvedReferenceTypeDeclaration. isAssignableBy(ResolvedType type)
Can we assign instances of the given type to variables having the type defined by this declaration?default boolean
ResolvedMethodDeclaration. isReturnTypeSubstituable(ResolvedType otherResolvedType)
static ResolvedTypeParameterDeclaration.Bound
ResolvedTypeParameterDeclaration.Bound. superBound(ResolvedType type)
Create a super bound with the given type:Constructors in com.github.javaparser.resolution.declarations with parameters of type ResolvedType Constructor Description Bound(boolean extendsBound, ResolvedType 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 class
InferenceVariableType
An element using during type inference.Fields in com.github.javaparser.resolution.logic with type parameters of type ResolvedType Modifier and Type Field Description private java.util.Set<ResolvedType>
InferenceVariableType. equivalentTypes
private java.util.Set<ResolvedType>
InferenceVariableType. superTypes
Methods in com.github.javaparser.resolution.logic that return ResolvedType Modifier and Type Method Description ResolvedType
InferenceContext. addPair(ResolvedType target, ResolvedType actual)
ResolvedType
InferenceContext. addSingle(ResolvedType actual)
ResolvedType
InferenceVariableType. equivalentType()
private static ResolvedType
ConstructorResolutionLogic. findCommonType(java.util.List<ResolvedType> variadicValues)
private static ResolvedType
MethodResolutionLogic. findCommonType(java.util.List<ResolvedType> variadicValues)
private static ResolvedType
MethodResolutionLogic. getMethodsExplicitAndVariadicParameterType(ResolvedMethodDeclaration method, int i)
private ResolvedType
InferenceContext. placeInferenceVariables(ResolvedType type)
static ResolvedType
MethodResolutionLogic. replaceTypeParam(ResolvedType type, ResolvedTypeParameterDeclaration tp, TypeSolver typeSolver)
ResolvedType
InferenceContext. resolve(ResolvedType type)
Methods in com.github.javaparser.resolution.logic that return types with arguments of type ResolvedType Modifier and Type Method Description private java.util.Set<ResolvedType>
InferenceVariableType. concreteEquivalentTypesAlsoIndirectly(java.util.Set<InferenceVariableType> considered, InferenceVariableType inferenceVariableType)
private static java.util.List<ResolvedType>
MethodResolutionLogic. groupTrailingArgumentsIntoArray(ResolvedMethodDeclaration methodDeclaration, java.util.List<ResolvedType> needleArgumentTypes, ResolvedType expectedVariadicParameterType)
private static java.util.List<ResolvedType>
ConstructorResolutionLogic. groupVariadicParamValues(java.util.List<ResolvedType> argumentsTypes, int startVariadic, ResolvedType variadicType)
private static java.util.List<ResolvedType>
MethodResolutionLogic. groupVariadicParamValues(java.util.List<ResolvedType> argumentsTypes, int startVariadic, ResolvedType variadicType)
Methods in com.github.javaparser.resolution.logic with parameters of type ResolvedType Modifier and Type Method Description ResolvedType
InferenceContext. addPair(ResolvedType target, ResolvedType actual)
ResolvedType
InferenceContext. addSingle(ResolvedType actual)
private static ResolvedArrayType
MethodResolutionLogic. convertToVariadicParameter(ResolvedType type)
static java.util.Optional<MethodUsage>
FunctionalInterfaceLogic. getFunctionalMethod(ResolvedType type)
Get the functional method defined by the type, if any.private static java.util.List<ResolvedType>
MethodResolutionLogic. groupTrailingArgumentsIntoArray(ResolvedMethodDeclaration methodDeclaration, java.util.List<ResolvedType> needleArgumentTypes, ResolvedType expectedVariadicParameterType)
private static java.util.List<ResolvedType>
ConstructorResolutionLogic. groupVariadicParamValues(java.util.List<ResolvedType> argumentsTypes, int startVariadic, ResolvedType variadicType)
private static java.util.List<ResolvedType>
MethodResolutionLogic. groupVariadicParamValues(java.util.List<ResolvedType> argumentsTypes, int startVariadic, ResolvedType variadicType)
private boolean
InferenceVariableType. hasInferenceVariables(ResolvedType type)
private static void
MethodResolutionLogic. inferTypes(ResolvedType source, ResolvedType target, java.util.Map<ResolvedTypeParameterDeclaration,ResolvedType> mappings)
private static boolean
MethodResolutionLogic. isArrayOfObject(ResolvedType type)
boolean
InferenceVariableType. isAssignableBy(ResolvedType other)
static boolean
MethodResolutionLogic. isAssignableMatchTypeParameters(ResolvedType expected, ResolvedType actual, java.util.Map<java.lang.String,ResolvedType> matchedParameters)
static boolean
FunctionalInterfaceLogic. isFunctionalInterfaceType(ResolvedType type)
private static boolean
MethodResolutionLogic. isJavaLangObject(ResolvedType paramType)
private static boolean
MethodResolutionLogic. matchTypeVariable(ResolvedTypeVariable typeVariable, ResolvedType type, java.util.Map<java.lang.String,ResolvedType> matchedParameters)
private ResolvedType
InferenceContext. placeInferenceVariables(ResolvedType type)
private void
InferenceContext. registerCorrespondance(ResolvedType formalType, ResolvedType actualType)
void
InferenceVariableType. registerEquivalentType(ResolvedType type)
static ResolvedType
MethodResolutionLogic. replaceTypeParam(ResolvedType type, ResolvedTypeParameterDeclaration tp, TypeSolver typeSolver)
ResolvedType
InferenceContext. resolve(ResolvedType type)
Method parameters in com.github.javaparser.resolution.logic with type arguments of type ResolvedType Modifier and Type Method Description private static ResolvedType
ConstructorResolutionLogic. findCommonType(java.util.List<ResolvedType> variadicValues)
private static ResolvedType
MethodResolutionLogic. findCommonType(java.util.List<ResolvedType> variadicValues)
private static java.util.List<ResolvedType>
MethodResolutionLogic. groupTrailingArgumentsIntoArray(ResolvedMethodDeclaration methodDeclaration, java.util.List<ResolvedType> needleArgumentTypes, ResolvedType expectedVariadicParameterType)
private static java.util.List<ResolvedType>
ConstructorResolutionLogic. groupVariadicParamValues(java.util.List<ResolvedType> argumentsTypes, int startVariadic, ResolvedType variadicType)
private static java.util.List<ResolvedType>
MethodResolutionLogic. groupVariadicParamValues(java.util.List<ResolvedType> argumentsTypes, int startVariadic, ResolvedType variadicType)
private static void
MethodResolutionLogic. inferTypes(ResolvedType source, ResolvedType target, java.util.Map<ResolvedTypeParameterDeclaration,ResolvedType> mappings)
static boolean
ConstructorResolutionLogic. isApplicable(ResolvedConstructorDeclaration constructor, java.util.List<ResolvedType> argumentsTypes, TypeSolver typeSolver)
private static boolean
ConstructorResolutionLogic. isApplicable(ResolvedConstructorDeclaration constructor, java.util.List<ResolvedType> argumentsTypes, TypeSolver typeSolver, boolean withWildcardTolerance)
static boolean
MethodResolutionLogic. isApplicable(ResolvedMethodDeclaration method, java.lang.String name, java.util.List<ResolvedType> argumentsTypes, TypeSolver typeSolver)
private static boolean
MethodResolutionLogic. isApplicable(ResolvedMethodDeclaration methodDeclaration, java.lang.String needleName, java.util.List<ResolvedType> needleArgumentTypes, TypeSolver typeSolver, boolean withWildcardTolerance)
Note the specific naming here -- parameters are part of the method declaration, while arguments are the values passed when calling a method.static boolean
MethodResolutionLogic. isApplicable(MethodUsage methodUsage, java.lang.String needleName, java.util.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 boolean
MethodResolutionLogic. isAssignableMatchTypeParameters(ResolvedReferenceType expected, ResolvedReferenceType actual, java.util.Map<java.lang.String,ResolvedType> matchedParameters)
static boolean
MethodResolutionLogic. isAssignableMatchTypeParameters(ResolvedType expected, ResolvedType actual, java.util.Map<java.lang.String,ResolvedType> matchedParameters)
private static boolean
MethodResolutionLogic. isAssignableMatchTypeParametersMatchingQName(ResolvedReferenceType expected, ResolvedReferenceType actual, java.util.Map<java.lang.String,ResolvedType> matchedParameters)
protected static boolean
MethodResolutionLogic. isExactMatch(ResolvedMethodLikeDeclaration method, java.util.List<ResolvedType> argumentsTypes)
private static boolean
MethodResolutionLogic. isMoreSpecific(ResolvedMethodDeclaration methodA, ResolvedMethodDeclaration methodB, java.util.List<ResolvedType> argumentTypes)
private static boolean
MethodResolutionLogic. matchTypeVariable(ResolvedTypeVariable typeVariable, ResolvedType type, java.util.Map<java.lang.String,ResolvedType> matchedParameters)
SymbolReference<ResolvedMethodDeclaration>
MethodResolutionCapability. solveMethod(java.lang.String name, java.util.List<ResolvedType> argumentsTypes, boolean staticOnly)
static SymbolReference<ResolvedMethodDeclaration>
MethodResolutionLogic. solveMethodInType(ResolvedTypeDeclaration typeDeclaration, java.lang.String name, java.util.List<ResolvedType> argumentsTypes)
static SymbolReference<ResolvedMethodDeclaration>
MethodResolutionLogic. solveMethodInType(ResolvedTypeDeclaration typeDeclaration, java.lang.String name, java.util.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 class
LambdaArgumentTypePlaceholder
Placeholder used to represent a lambda argument type while it is being calculated.Fields in com.github.javaparser.resolution.model declared as ResolvedType Modifier and Type Field Description private ResolvedType
Value. type
Methods in com.github.javaparser.resolution.model that return ResolvedType Modifier and Type Method Description ResolvedType
Value. getType()
Methods in com.github.javaparser.resolution.model with parameters of type ResolvedType Modifier and Type Method Description boolean
LambdaArgumentTypePlaceholder. isAssignableBy(ResolvedType other)
Constructors in com.github.javaparser.resolution.model with parameters of type ResolvedType Constructor Description Value(ResolvedType type, java.lang.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 class
LazyType
class
NullType
This is a virtual type used to represent null values.class
ReferenceTypeImpl
Fields in com.github.javaparser.resolution.model.typesystem declared as ResolvedType Modifier and Type Field Description private ResolvedType
LazyType. concrete
Fields in com.github.javaparser.resolution.model.typesystem with type parameters of type ResolvedType Modifier and Type Field Description private java.util.function.Function<java.lang.Void,ResolvedType>
LazyType. provider
Methods in com.github.javaparser.resolution.model.typesystem that return ResolvedType Modifier and Type Method Description ResolvedType
LazyType. getType()
ResolvedType
LazyType. replaceTypeVariables(ResolvedTypeParameterDeclaration tp, ResolvedType replaced)
ResolvedType
LazyType. replaceTypeVariables(ResolvedTypeParameterDeclaration tp, ResolvedType replaced, java.util.Map<ResolvedTypeParameterDeclaration,ResolvedType> inferredTypes)
ResolvedType
ReferenceTypeImpl. toRawType()
ResolvedType
ReferenceTypeImpl. 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 boolean
LazyType. isAssignableBy(ResolvedType other)
boolean
NullType. isAssignableBy(ResolvedType other)
boolean
ReferenceTypeImpl. isAssignableBy(ResolvedType other)
This method checks if ThisType t = new OtherType() would compile.ResolvedType
LazyType. replaceTypeVariables(ResolvedTypeParameterDeclaration tp, ResolvedType replaced)
ResolvedType
LazyType. replaceTypeVariables(ResolvedTypeParameterDeclaration tp, ResolvedType replaced, java.util.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 ResolvedReferenceType
ReferenceTypeImpl. create(ResolvedReferenceTypeDeclaration typeDeclaration, java.util.List<ResolvedType> typeParametersCorrected)
ResolvedType
LazyType. replaceTypeVariables(ResolvedTypeParameterDeclaration tp, ResolvedType replaced, java.util.Map<ResolvedTypeParameterDeclaration,ResolvedType> inferredTypes)
Constructor parameters in com.github.javaparser.resolution.model.typesystem with type arguments of type ResolvedType Constructor Description LazyType(java.util.function.Function<java.lang.Void,ResolvedType> provider)
ReferenceTypeImpl(ResolvedReferenceTypeDeclaration typeDeclaration, java.util.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 ResolvedType
ConditionalExprHandler. 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 class
ResolvedArrayType
Array Type.class
ResolvedIntersectionType
An intersection type is defined in java as list of types separates by ampersands.class
ResolvedLambdaConstraintType
class
ResolvedPrimitiveType
class
ResolvedReferenceType
A ReferenceType like a class, an interface or an enum.class
ResolvedTypeVariable
From 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).class
ResolvedUnionType
A union type is defined in java as list of types separates by pipes.class
ResolvedVoidType
The special type void.class
ResolvedWildcard
A wildcard can be: - unbounded (?) - have a lower bound (? super Number) - have an upper bound (? extends Number) It is not possible to have both a lower and an upper bound at the same time.Fields in com.github.javaparser.resolution.types declared as ResolvedType Modifier and Type Field Description private ResolvedType
ResolvedArrayType. baseType
private ResolvedType
ResolvedLambdaConstraintType. bound
private ResolvedType
ResolvedWildcard. boundedType
static ResolvedType
ResolvedVoidType. INSTANCE
Fields in com.github.javaparser.resolution.types with type parameters of type ResolvedType Modifier and Type Field Description private java.util.List<ResolvedType>
ResolvedIntersectionType. elements
private java.util.List<ResolvedType>
ResolvedUnionType. elements
Methods in com.github.javaparser.resolution.types that return types with arguments of type ResolvedType Modifier and Type Method Description static java.util.Optional<ResolvedType>
ResolvedPrimitiveType. byBoxTypeQName(java.lang.String qName)
private static java.util.List<ResolvedType>
ResolvedReferenceType. deriveParams(ResolvedReferenceTypeDeclaration typeDeclaration)
private java.util.List<ResolvedType>
ResolvedReferenceType. erasureOfParamaters(ResolvedTypeParametersMap typeParametersMap)
java.util.List<ResolvedType>
ResolvedIntersectionType. getElements()
java.util.List<ResolvedType>
ResolvedUnionType. getElements()
java.util.Optional<ResolvedType>
ResolvedReferenceType. getFieldType(java.lang.String name)
The type of the field could be different from the one in the corresponding FieldDeclaration because type variables would be solved.java.util.Optional<ResolvedType>
ResolvedReferenceType. getGenericParameterByName(java.lang.String name)
Get the type associated with the type parameter with the given name.java.util.List<Pair<ResolvedTypeParameterDeclaration,ResolvedType>>
ResolvedReferenceType. getTypeParametersMap()
Get the values for all type parameters declared on this type.java.util.List<ResolvedType>
ResolvedReferenceType. typeParametersValues()
Get the values for all type parameters declared on this type.java.util.Optional<ResolvedType>
ResolvedReferenceType. typeParamValue(ResolvedTypeParameterDeclaration typeParameterDeclaration)
Methods in com.github.javaparser.resolution.types with parameters of type ResolvedType Modifier and Type Method Description static ResolvedLambdaConstraintType
ResolvedLambdaConstraintType. bound(ResolvedType bound)
private boolean
ResolvedReferenceType. compareConsideringVariableTypeParameters(ResolvedType referenceType, ResolvedTypeVariable typeVariable)
static ResolvedWildcard
ResolvedWildcard. extendsBound(ResolvedType type)
boolean
ResolvedArrayType. isAssignableBy(ResolvedType other)
boolean
ResolvedIntersectionType. isAssignableBy(ResolvedType other)
boolean
ResolvedLambdaConstraintType. isAssignableBy(ResolvedType other)
boolean
ResolvedPrimitiveType. isAssignableBy(ResolvedType other)
abstract boolean
ResolvedReferenceType. isAssignableBy(ResolvedType other)
This method checks if ThisType t = new OtherType() would compile.boolean
ResolvedType. isAssignableBy(ResolvedType other)
This method checks if ThisType t = new OtherType() would compile.boolean
ResolvedTypeVariable. isAssignableBy(ResolvedType other)
boolean
ResolvedUnionType. isAssignableBy(ResolvedType other)
boolean
ResolvedVoidType. isAssignableBy(ResolvedType other)
boolean
ResolvedWildcard. isAssignableBy(ResolvedType other)
static boolean
ResolvedPrimitiveType. isBoxType(ResolvedType type)
private boolean
ResolvedReferenceType. isJavaObject(ResolvedType rt)
ResolvedType
ResolvedArrayType. replaceTypeVariables(ResolvedTypeParameterDeclaration tpToReplace, ResolvedType replaced, java.util.Map<ResolvedTypeParameterDeclaration,ResolvedType> inferredTypes)
ResolvedType
ResolvedIntersectionType. replaceTypeVariables(ResolvedTypeParameterDeclaration tp, ResolvedType replaced, java.util.Map<ResolvedTypeParameterDeclaration,ResolvedType> inferredTypes)
ResolvedType
ResolvedReferenceType. replaceTypeVariables(ResolvedTypeParameterDeclaration tpToReplace, ResolvedType replaced, java.util.Map<ResolvedTypeParameterDeclaration,ResolvedType> inferredTypes)
default ResolvedType
ResolvedType. replaceTypeVariables(ResolvedTypeParameterDeclaration tp, ResolvedType replaced)
This is like (replaceTypeVariables(ResolvedTypeParameterDeclaration, ResolvedType, Map)
but ignores the inferred values.default ResolvedType
ResolvedType. replaceTypeVariables(ResolvedTypeParameterDeclaration tp, ResolvedType replaced, java.util.Map<ResolvedTypeParameterDeclaration,ResolvedType> inferredTypes)
Replace all variables referring to the given TypeParameter with the given value.ResolvedType
ResolvedTypeVariable. replaceTypeVariables(ResolvedTypeParameterDeclaration tpToBeReplaced, ResolvedType replaced, java.util.Map<ResolvedTypeParameterDeclaration,ResolvedType> inferredTypes)
ResolvedType
ResolvedWildcard. replaceTypeVariables(ResolvedTypeParameterDeclaration tpToReplace, ResolvedType replaced, java.util.Map<ResolvedTypeParameterDeclaration,ResolvedType> inferredTypes)
static ResolvedWildcard
ResolvedWildcard. superBound(ResolvedType type)
ResolvedType
ResolvedTypeTransformer. transform(ResolvedType type)
static ResolvedType
ResolvedPrimitiveType. unp(ResolvedType type)
Constructors in com.github.javaparser.resolution.types with parameters of type ResolvedType Constructor Description ResolvedArrayType(ResolvedType baseType)
ResolvedLambdaConstraintType(ResolvedType bound)
ResolvedWildcard(ResolvedWildcard.BoundType type, ResolvedType boundedType)
Constructor parameters in com.github.javaparser.resolution.types with type arguments of type ResolvedType Constructor Description ResolvedIntersectionType(java.util.Collection<ResolvedType> elements)
ResolvedReferenceType(ResolvedReferenceTypeDeclaration typeDeclaration, java.util.List<ResolvedType> typeArguments)
ResolvedUnionType(java.util.List<ResolvedType> elements)
-
Uses of ResolvedType in com.github.javaparser.resolution.types.parametrization
Fields in com.github.javaparser.resolution.types.parametrization with type parameters of type ResolvedType Modifier and Type Field Description private java.util.Map<java.lang.String,ResolvedType>
ResolvedTypeParametersMap.Builder. nameToValue
private java.util.Map<java.lang.String,ResolvedType>
ResolvedTypeParametersMap. nameToValue
Methods in com.github.javaparser.resolution.types.parametrization that return ResolvedType Modifier and Type Method Description ResolvedType
ResolvedTypeParametersMap. getValue(ResolvedTypeParameterDeclaration typeParameter)
ResolvedType
ResolvedTypeParametersMap. replaceAll(ResolvedType type)
default ResolvedType
ResolvedTypeParameterValueProvider. 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 java.util.Optional<ResolvedType>
ResolvedTypeParameterValueProvider. getGenericParameterByName(java.lang.String name)
java.util.List<ResolvedType>
ResolvedTypeParametersMap. getTypes()
java.util.Optional<ResolvedType>
ResolvedTypeParametersMap. getValueBySignature(java.lang.String signature)
java.util.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 ResolvedType
ResolvedTypeParametersMap. replaceAll(ResolvedType type)
ResolvedTypeParametersMap.Builder
ResolvedTypeParametersMap.Builder. setValue(ResolvedTypeParameterDeclaration typeParameter, ResolvedType value)
default ResolvedType
ResolvedTypeParameterValueProvider. useThisTypeParametersOnTheGivenType(ResolvedType type)
Replace the type typeParametersValues present in the given type with the ones for which this type has a value.Constructor parameters in com.github.javaparser.resolution.types.parametrization with type arguments of type ResolvedType Constructor Description Builder(java.util.Map<java.lang.String,ResolvedType> nameToValue, java.util.Map<java.lang.String,ResolvedTypeParameterDeclaration> nameToDeclaration)
ResolvedTypeParametersMap(java.util.Map<java.lang.String,ResolvedType> nameToValue, java.util.Map<java.lang.String,ResolvedTypeParameterDeclaration> nameToDeclaration)
-