Class LazyType

  • All Implemented Interfaces:
    com.github.javaparser.resolution.types.ResolvedType

    public class LazyType
    extends Object
    implements com.github.javaparser.resolution.types.ResolvedType
    • Constructor Summary

      Constructors 
      Constructor Description
      LazyType​(Function<Void,​com.github.javaparser.resolution.types.ResolvedType> provider)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int arrayLevel()  
      com.github.javaparser.resolution.types.ResolvedArrayType asArrayType()  
      com.github.javaparser.resolution.types.ResolvedPrimitiveType asPrimitive()  
      com.github.javaparser.resolution.types.ResolvedReferenceType asReferenceType()  
      com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration asTypeParameter()  
      com.github.javaparser.resolution.types.ResolvedTypeVariable asTypeVariable()  
      com.github.javaparser.resolution.types.ResolvedWildcard asWildcard()  
      String describe()  
      boolean isArray()  
      boolean isAssignableBy​(com.github.javaparser.resolution.types.ResolvedType other)  
      boolean isNull()  
      boolean isPrimitive()  
      boolean isReference()  
      boolean isReferenceType()  
      boolean isTypeVariable()  
      boolean isVoid()  
      boolean isWildcard()  
      com.github.javaparser.resolution.types.ResolvedType replaceTypeVariables​(com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration tp, com.github.javaparser.resolution.types.ResolvedType replaced)  
      com.github.javaparser.resolution.types.ResolvedType replaceTypeVariables​(com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration tp, com.github.javaparser.resolution.types.ResolvedType replaced, Map<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration,​com.github.javaparser.resolution.types.ResolvedType> inferredTypes)  
      • Methods inherited from interface com.github.javaparser.resolution.types.ResolvedType

        asConstraintType, asUnionType, isConstraint, isUnionType, mention
    • Constructor Detail

      • LazyType

        public LazyType​(Function<Void,​com.github.javaparser.resolution.types.ResolvedType> provider)
    • Method Detail

      • isArray

        public boolean isArray()
        Specified by:
        isArray in interface com.github.javaparser.resolution.types.ResolvedType
      • arrayLevel

        public int arrayLevel()
        Specified by:
        arrayLevel in interface com.github.javaparser.resolution.types.ResolvedType
      • isPrimitive

        public boolean isPrimitive()
        Specified by:
        isPrimitive in interface com.github.javaparser.resolution.types.ResolvedType
      • isNull

        public boolean isNull()
        Specified by:
        isNull in interface com.github.javaparser.resolution.types.ResolvedType
      • isReference

        public boolean isReference()
        Specified by:
        isReference in interface com.github.javaparser.resolution.types.ResolvedType
      • isReferenceType

        public boolean isReferenceType()
        Specified by:
        isReferenceType in interface com.github.javaparser.resolution.types.ResolvedType
      • isVoid

        public boolean isVoid()
        Specified by:
        isVoid in interface com.github.javaparser.resolution.types.ResolvedType
      • isTypeVariable

        public boolean isTypeVariable()
        Specified by:
        isTypeVariable in interface com.github.javaparser.resolution.types.ResolvedType
      • isWildcard

        public boolean isWildcard()
        Specified by:
        isWildcard in interface com.github.javaparser.resolution.types.ResolvedType
      • asArrayType

        public com.github.javaparser.resolution.types.ResolvedArrayType asArrayType()
        Specified by:
        asArrayType in interface com.github.javaparser.resolution.types.ResolvedType
      • asReferenceType

        public com.github.javaparser.resolution.types.ResolvedReferenceType asReferenceType()
        Specified by:
        asReferenceType in interface com.github.javaparser.resolution.types.ResolvedType
      • asTypeParameter

        public com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration asTypeParameter()
        Specified by:
        asTypeParameter in interface com.github.javaparser.resolution.types.ResolvedType
      • asTypeVariable

        public com.github.javaparser.resolution.types.ResolvedTypeVariable asTypeVariable()
        Specified by:
        asTypeVariable in interface com.github.javaparser.resolution.types.ResolvedType
      • asPrimitive

        public com.github.javaparser.resolution.types.ResolvedPrimitiveType asPrimitive()
        Specified by:
        asPrimitive in interface com.github.javaparser.resolution.types.ResolvedType
      • asWildcard

        public com.github.javaparser.resolution.types.ResolvedWildcard asWildcard()
        Specified by:
        asWildcard in interface com.github.javaparser.resolution.types.ResolvedType
      • describe

        public String describe()
        Specified by:
        describe in interface com.github.javaparser.resolution.types.ResolvedType
      • replaceTypeVariables

        public com.github.javaparser.resolution.types.ResolvedType replaceTypeVariables​(com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration tp,
                                                                                        com.github.javaparser.resolution.types.ResolvedType replaced,
                                                                                        Map<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration,​com.github.javaparser.resolution.types.ResolvedType> inferredTypes)
        Specified by:
        replaceTypeVariables in interface com.github.javaparser.resolution.types.ResolvedType
      • replaceTypeVariables

        public com.github.javaparser.resolution.types.ResolvedType replaceTypeVariables​(com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration tp,
                                                                                        com.github.javaparser.resolution.types.ResolvedType replaced)
        Specified by:
        replaceTypeVariables in interface com.github.javaparser.resolution.types.ResolvedType
      • isAssignableBy

        public boolean isAssignableBy​(com.github.javaparser.resolution.types.ResolvedType other)
        Specified by:
        isAssignableBy in interface com.github.javaparser.resolution.types.ResolvedType