Module java.compiler

Class SimpleTypeVisitor9<R,P>

类型参数:
R - 此访问者方法的返回类型。对于不需要返回结果的访问者,请使用 Void
P - 此访问者方法的附加参数的类型。对于不需要附加参数的访问者,请使用 Void
所有已实现的接口:
TypeVisitor<R,P>
直接已知的子类:
SimpleTypeVisitor14

@SupportedSourceVersion(RELEASE_14) public class SimpleTypeVisitor9<R,P> extends SimpleTypeVisitor8<R,P>
一个简单的类型访问者,适用于源版本 RELEASE_9RELEASE_14 的默认行为。访问与 RELEASE_9 及更早语言结构对应的方法会调用 defaultAction,将它们的参数传递给 defaultAction 的相应参数。
API 注释:
此类中的方法可以根据其一般约定进行重写。
自 JDK 版本:
9
参见:
  • Constructor Details

    • SimpleTypeVisitor9

      protected SimpleTypeVisitor9()
      具体子类的构造函数;使用 null 作为默认值。
    • SimpleTypeVisitor9

      protected SimpleTypeVisitor9(R defaultValue)
      具体子类的构造函数;使用参数作为默认值。
      参数:
      defaultValue - 要分配给 SimpleTypeVisitor6.DEFAULT_VALUE 的值