Interface ExprMirror.PolyExprMirror

    • Method Detail

      • getEnclosingType

        @NonNull JClassType getEnclosingType()
        Returns the class declaration wherein this invocation occurs. Returns null if it's unresolved.
      • getStandaloneType

        default @Nullable JTypeMirror getStandaloneType()
        Description copied from interface: ExprMirror
        If this expression is of a standalone form, returns the type of the expression. Otherwise returns null.

        Note that standalone types can directly be set on the type node.

        Specified by:
        getStandaloneType in interface ExprMirror
        Returns:
        The type of the expression if it is standalone
      • unresolvedType

        default @Nullable JTypeMirror unresolvedType()
        If inference failed to determine the type of this node, returns a fallback for it. This should not query the context of the expression, or nodes whose type is unstable because it may be being inferred.

        If no fallback should be used, returns null.