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
Methods in com.github.javaparser.ast.type that return ResolvedType Modifier and Type Method Description ResolvedType
ClassOrInterfaceType. resolve()
abstract ResolvedType
Type. resolve()
ResolvedType
UnknownType. resolve()
ResolvedType
VarType. resolve()
-
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)
ResolvedType
MethodUsage. getParamType(int i)
Return the type of the formal argument at the given position.ResolvedType
MethodUsage. returnType()
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()
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)
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. 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?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.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 private static java.util.List<ResolvedType>
ResolvedReferenceType. deriveParams(ResolvedReferenceTypeDeclaration typeDeclaration)
private java.util.List<ResolvedType>
ResolvedReferenceType. erasureOfParamaters(ResolvedTypeParametersMap typeParametersMap)
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)
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)
-