Class ResolvedArrayType
java.lang.Object
com.github.javaparser.resolution.types.ResolvedArrayType
- All Implemented Interfaces:
ResolvedType
Array Type.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescribe()booleanerasure()inthashCode()booleanisArray()booleanisAssignableBy(ResolvedType other) This method checks if ThisType t = new OtherType() would compile.replaceTypeVariables(ResolvedTypeParameterDeclaration tpToReplace, ResolvedType replaced, Map<ResolvedTypeParameterDeclaration, ResolvedType> inferredTypes) Replace all variables referring to the given TypeParameter with the given value.toString()Methods inherited from interface ResolvedType
arrayLevel, asConstraintType, asPrimitive, asReferenceType, asTypeParameter, asTypeVariable, asUnionType, asWildcard, isConstraint, isInferenceVariable, isNull, isNumericType, isPrimitive, isReference, isReferenceType, isTypeVariable, isUnionType, isVoid, isWildcard, mention, replaceTypeVariables, solveGenericTypes
-
Field Details
-
baseType
-
-
Constructor Details
-
ResolvedArrayType
-
-
Method Details
-
equals
-
hashCode
-
toString
-
asArrayType
- Specified by:
asArrayTypein interfaceResolvedType
-
isArray
public boolean isArray()- Specified by:
isArrayin interfaceResolvedType- Returns:
- true, if this type represent an array - otherwise false.
-
describe
- Specified by:
describein interfaceResolvedType
-
getComponentType
-
isAssignableBy
Description copied from interface:ResolvedTypeThis method checks if ThisType t = new OtherType() would compile.- Specified by:
isAssignableByin interfaceResolvedType
-
replaceTypeVariables
public ResolvedType replaceTypeVariables(ResolvedTypeParameterDeclaration tpToReplace, ResolvedType replaced, Map<ResolvedTypeParameterDeclaration, ResolvedType> inferredTypes) Description copied from interface:ResolvedTypeReplace all variables referring to the given TypeParameter with the given value. By replacing these values I could also infer some type equivalence. Those would be collected in the given map.- Specified by:
replaceTypeVariablesin interfaceResolvedType
-
erasure
- Specified by:
erasurein interfaceResolvedType
-
toDescriptor
- Specified by:
toDescriptorin interfaceResolvedType
-