Module jdk.jshell
Package jdk.jshell

Interface SourceCodeAnalysis.Suggestion

  • Enclosing class:
    SourceCodeAnalysis

    public static interface SourceCodeAnalysis.Suggestion
    A candidate for continuation of the given user's input.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethodDescription
      Stringcontinuation()
      The candidate continuation of the given user's input.
      booleanmatchesType()
      Indicates whether input continuation matches the target type and is thus more likely to be the desired continuation.
    • Method Detail

      • continuation

        String continuation()
        The candidate continuation of the given user's input.
        Returns:
        the continuation string
      • matchesType

        boolean matchesType()
        Indicates whether input continuation matches the target type and is thus more likely to be the desired continuation. A matching continuation is preferred.
        Returns:
        true if this suggested continuation matches the target type; otherwise false

微信小程序

微信扫一扫体验

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部