Module java.compiler

Class TypeKindVisitor7<R,P>

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

@SupportedSourceVersion(RELEASE_7) public class TypeKindVisitor7<R,P> extends TypeKindVisitor6<R,P>
基于其种类的类型的访问者,具有适用于RELEASE_7源版本的默认行为。对于可能具有多种种类的Xyz类型,此类中的visitXyz方法将委托给与第一个参数种类对应的visitXyzAsKind方法。visitXyzAsKind方法调用defaultAction,将其参数传递给defaultAction的相应参数。
API 注意:
此类中的方法可以根据其一般约定进行重写。
自版本:
1.7
参见:
  • Constructor Details

    • TypeKindVisitor7

      @Deprecated(since="12") protected TypeKindVisitor7()
      Deprecated.
      Release 7 is obsolete; update to a visitor for a newer release level.
      具体子类调用的构造函数;使用null作为默认值。
    • TypeKindVisitor7

      @Deprecated(since="12") protected TypeKindVisitor7(R defaultValue)
      Deprecated.
      Release 7 is obsolete; update to a visitor for a newer release level.
      具体子类调用的构造函数;使用参数作为默认值。
      参数:
      defaultValue - 分配给SimpleTypeVisitor6.DEFAULT_VALUE的值
  • Method Details