Interface ExprMirror.MethodRefMirror

    • Method Detail

      • isConstructorRef

        boolean isConstructorRef()
        True if this references a ctor.
      • getTypeToSearch

        JTypeMirror getTypeToSearch()
        Returns the type to search as defined by the first section of JLS§15.13.1 , except it may also return an array type (the jls makes an exception for it, while we don't).
      • getLhsIfType

        @Nullable JTypeMirror getLhsIfType()
        Returns the type of the left hand-side, if it is not an expression. Note that the following qualifier super forms are considered "expressions", that have a context-dependent type (depends on the type of the this expr):
         super :: [TypeArguments] Identifier
         TypeName.super :: [TypeArguments] Identifier
         
      • getExplicitTypeArguments

        @NonNull List<JTypeMirror> getExplicitTypeArguments()
        Returns the explicit type arguments (the ones to the right of the "::").
      • setCompileTimeDecl

        void setCompileTimeDecl​(JMethodSig methodType)
        This is the method that is referenced. E.g. in stringStream.map(String::isEmpty), this is java.lang.String.isEmpty() -> boolean
      • getCachedExactMethod

        @Nullable JMethodSig getCachedExactMethod()
        UNRESOLVED_METHOD if not yet computed, null if computed but inexact, otherwise the real method.
      • setCachedExactMethod

        void setCachedExactMethod​(@Nullable JMethodSig sig)