Interface ResolvedType

    • Method Detail

      • isArray

        default boolean isArray()
        Returns:
        true, if this type represent an array - otherwise false.
      • arrayLevel

        default int arrayLevel()
        Returns:
        The level of nesting that this type is present at. For example, int[][] would have an array level of 2, and int would have an array level of 0 (not an array).
      • isPrimitive

        default boolean isPrimitive()
        Is this a primitive type?
      • isNull

        default boolean isNull()
        Is this the null type?
      • isUnionType

        default boolean isUnionType()
        Is this a union type (as the ones used in multi catch clauses)?
      • isReference

        default boolean isReference()
        Is this a non primitive value?
      • isConstraint

        default boolean isConstraint()
        Is this a lambda constraint type?
      • isReferenceType

        default boolean isReferenceType()
        Can this be seen as a ReferenceTypeUsage? In other words: is this a reference to a class, an interface or an enum?
      • isVoid

        default boolean isVoid()
      • isTypeVariable

        default boolean isTypeVariable()
      • isWildcard

        default boolean isWildcard()
      • isInferenceVariable

        default boolean isInferenceVariable()
      • describe

        java.lang.String describe()
      • mention

        default boolean mention​(java.util.List<ResolvedTypeParameterDeclaration> typeParameters)
        Does this type mention at all, directly or indirectly, the given type parameters?
      • isAssignableBy

        boolean isAssignableBy​(ResolvedType other)
        This method checks if ThisType t = new OtherType() would compile.
      • isNumericType

        default boolean isNumericType()