< prev index next >

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

Print this page

        

*** 103,113 **** protected TypeKindVisitor6(R defaultValue) { super(defaultValue); } /** ! * Visits a primitive type, dispatching to the visit method for * the specific {@linkplain TypeKind kind} of primitive type: * {@code BOOLEAN}, {@code BYTE}, etc. * * @param t {@inheritDoc} * @param p {@inheritDoc} --- 103,115 ---- protected TypeKindVisitor6(R defaultValue) { super(defaultValue); } /** ! * {@inheritDoc} ! * ! * @implSpec This implementation dispatches to the visit method for * the specific {@linkplain TypeKind kind} of primitive type: * {@code BOOLEAN}, {@code BYTE}, etc. * * @param t {@inheritDoc} * @param p {@inheritDoc}
*** 145,251 **** throw new AssertionError("Bad kind " + k + " for PrimitiveType" + t); } } /** ! * Visits a {@code BOOLEAN} primitive type by calling ! * {@code defaultAction}. * * @param t the type to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ public R visitPrimitiveAsBoolean(PrimitiveType t, P p) { return defaultAction(t, p); } /** ! * Visits a {@code BYTE} primitive type by calling ! * {@code defaultAction}. * * @param t the type to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ public R visitPrimitiveAsByte(PrimitiveType t, P p) { return defaultAction(t, p); } /** ! * Visits a {@code SHORT} primitive type by calling ! * {@code defaultAction}. * * @param t the type to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ public R visitPrimitiveAsShort(PrimitiveType t, P p) { return defaultAction(t, p); } /** ! * Visits an {@code INT} primitive type by calling ! * {@code defaultAction}. * * @param t the type to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ public R visitPrimitiveAsInt(PrimitiveType t, P p) { return defaultAction(t, p); } /** ! * Visits a {@code LONG} primitive type by calling ! * {@code defaultAction}. * * @param t the type to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ public R visitPrimitiveAsLong(PrimitiveType t, P p) { return defaultAction(t, p); } /** ! * Visits a {@code CHAR} primitive type by calling ! * {@code defaultAction}. * * @param t the type to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ public R visitPrimitiveAsChar(PrimitiveType t, P p) { return defaultAction(t, p); } /** ! * Visits a {@code FLOAT} primitive type by calling ! * {@code defaultAction}. * * @param t the type to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ public R visitPrimitiveAsFloat(PrimitiveType t, P p) { return defaultAction(t, p); } /** ! * Visits a {@code DOUBLE} primitive type by calling ! * {@code defaultAction}. * * @param t the type to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ public R visitPrimitiveAsDouble(PrimitiveType t, P p) { return defaultAction(t, p); } /** ! * Visits a {@link NoType} instance, dispatching 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} --- 147,263 ---- throw new AssertionError("Bad kind " + k + " for PrimitiveType" + t); } } /** ! * Visits a {@code BOOLEAN} primitive type. ! * ! * @implSpec This implementation calls {@code defaultAction}. * * @param t the type to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ public R visitPrimitiveAsBoolean(PrimitiveType t, P p) { return defaultAction(t, p); } /** ! * Visits a {@code BYTE} primitive type. ! * ! * @implSpec This implementation calls {@code defaultAction}. * * @param t the type to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ public R visitPrimitiveAsByte(PrimitiveType t, P p) { return defaultAction(t, p); } /** ! * Visits a {@code SHORT} primitive type. ! * ! * @implSpec This implementation calls {@code defaultAction}. * * @param t the type to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ public R visitPrimitiveAsShort(PrimitiveType t, P p) { return defaultAction(t, p); } /** ! * Visits an {@code INT} primitive type. ! * ! * @implSpec This implementation calls {@code defaultAction}. * * @param t the type to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ public R visitPrimitiveAsInt(PrimitiveType t, P p) { return defaultAction(t, p); } /** ! * Visits a {@code LONG} primitive type. ! * ! * @implSpec This implementation calls {@code defaultAction}. * * @param t the type to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ public R visitPrimitiveAsLong(PrimitiveType t, P p) { return defaultAction(t, p); } /** ! * Visits a {@code CHAR} primitive type. ! * ! * @implSpec This implementation calls {@code defaultAction}. * * @param t the type to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ public R visitPrimitiveAsChar(PrimitiveType t, P p) { return defaultAction(t, p); } /** ! * Visits a {@code FLOAT} primitive type. ! * ! * @implSpec This implementation calls {@code defaultAction}. * * @param t the type to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ public R visitPrimitiveAsFloat(PrimitiveType t, P p) { return defaultAction(t, p); } /** ! * Visits a {@code DOUBLE} primitive type. ! * ! * @implSpec This implementation calls {@code defaultAction}. * * @param t the type to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ public R visitPrimitiveAsDouble(PrimitiveType t, P p) { return defaultAction(t, p); } /** ! * {@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}
*** 268,303 **** throw new AssertionError("Bad kind " + k + " for NoType" + t); } } /** ! * Visits a {@link TypeKind#VOID VOID} pseudo-type by calling ! * {@code defaultAction}. * * @param t the type to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ public R visitNoTypeAsVoid(NoType t, P p) { return defaultAction(t, p); } /** ! * Visits a {@link TypeKind#PACKAGE PACKAGE} pseudo-type by calling ! * {@code defaultAction}. * * @param t the type to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ public R visitNoTypeAsPackage(NoType t, P p) { return defaultAction(t, p); } /** ! * Visits a {@link TypeKind#NONE NONE} pseudo-type by calling ! * {@code defaultAction}. * * @param t the type to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ --- 280,318 ---- throw new AssertionError("Bad kind " + k + " for NoType" + t); } } /** ! * Visits a {@link TypeKind#VOID VOID} pseudo-type. ! * ! * @implSpec This implementation calls {@code defaultAction}. * * @param t the type to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ public R visitNoTypeAsVoid(NoType t, P p) { return defaultAction(t, p); } /** ! * Visits a {@link TypeKind#PACKAGE PACKAGE} pseudo-type. ! * ! * @implSpec This implementation calls {@code defaultAction}. * * @param t the type to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ public R visitNoTypeAsPackage(NoType t, P p) { return defaultAction(t, p); } /** ! * Visits a {@link TypeKind#NONE NONE} pseudo-type. ! * ! * @implSpec This implementation calls {@code defaultAction}. * * @param t the type to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */
< prev index next >