Module java.compiler

Class SimpleElementVisitor9<R,P>

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

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

    • SimpleElementVisitor9

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

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