Module jdk.compiler

Interface Tree

    • Nested Class Summary

      Nested Classes 
      Modifier and TypeInterfaceDescription
      static class Tree.Kind
      Enumerates all kinds of trees.
    • Method Detail

      • getKind

        Tree.Kind getKind()
        Returns the kind of this tree.
        Returns:
        the kind of this tree.
      • accept

        <R,​D> R accept​(TreeVisitor<R,​D> visitor,
                             D data)
        Accept method used to implement the visitor pattern. The visitor pattern is used to implement operations on trees.
        Type Parameters:
        R - result type of this operation.
        D - type of additional data.
        Parameters:
        visitor - the visitor to be called
        data - a value to be passed to the visitor
        Returns:
        the result returned from calling the visitor

微信小程序

微信扫一扫体验

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部