< prev index next >

src/java.compiler/share/classes/javax/lang/model/util/TypeKindVisitor6.java

Print this page

        

*** 255,265 **** /** * {@inheritDoc} * * @implSpec This implementation dispatches to the visit method for * the specific {@linkplain TypeKind kind} of pseudo-type: ! * {@code VOID}, {@code PACKAGE}, or {@code NONE}. * * @param t {@inheritDoc} * @param p {@inheritDoc} * @return the result of the kind-specific visit method */ --- 255,265 ---- /** * {@inheritDoc} * * @implSpec This implementation dispatches to the visit method for * the specific {@linkplain TypeKind kind} of pseudo-type: ! * {@code VOID}, {@code PACKAGE}, {@code MODULE}, or {@code NONE}. * * @param t {@inheritDoc} * @param p {@inheritDoc} * @return the result of the kind-specific visit method */
*** 271,280 **** --- 271,283 ---- return visitNoTypeAsVoid(t, p); case PACKAGE: return visitNoTypeAsPackage(t, p); + case MODULE: + return visitNoTypeAsModule(t, p); + case NONE: return visitNoTypeAsNone(t, p); default: throw new AssertionError("Bad kind " + k + " for NoType" + t);
*** 306,315 **** --- 309,333 ---- public R visitNoTypeAsPackage(NoType t, P p) { return defaultAction(t, p); } /** + * Visits a {@link TypeKind#MODULE MODULE} pseudo-type. + * + * @implSpec This implementation calls {@code visitUnknown}. + * + * @param t the type to visit + * @param p a visitor-specified parameter + * @return the result of {@code visitUnknown} + * + * @since 10 + */ + public R visitNoTypeAsModule(NoType t, P p) { + return visitUnknown(t, p); + } + + /** * Visits a {@link TypeKind#NONE NONE} pseudo-type. * * @implSpec This implementation calls {@code defaultAction}. * * @param t the type to visit
< prev index next >