/** * Visit the type and a given parameter. * * @param type visited type. * @return visiting result. */ public final T visit(final Type type) { assert type != null; if (type instanceof Class) { return onClass((Class) type); } if (type instanceof ParameterizedType) { return onParameterizedType((ParameterizedType) type); } if (type instanceof GenericArrayType) { return onGenericArray((GenericArrayType) type); } if (type instanceof WildcardType) { return onWildcard((WildcardType) type); } if (type instanceof TypeVariable) { return onVariable((TypeVariable) type); } // covered all the cases assert false; throw createError(type); }
/** * Visit the type and a given parameter. * * @param type visited type. * @return visiting result. */ public final T visit(final Type type) { assert type != null; if (type instanceof Class) { return onClass((Class) type); } if (type instanceof ParameterizedType) { return onParameterizedType((ParameterizedType) type); } if (type instanceof GenericArrayType) { return onGenericArray((GenericArrayType) type); } if (type instanceof WildcardType) { return onWildcard((WildcardType) type); } if (type instanceof TypeVariable) { return onVariable((TypeVariable) type); } // covered all the cases assert false; throw createError(type); }
/** * Visit the type and a given parameter. * * @param type visited type. * @return visiting result. */ public final T visit(final Type type) { assert type != null; if (type instanceof Class) { return onClass((Class) type); } if (type instanceof ParameterizedType) { return onParameterizedType((ParameterizedType) type); } if (type instanceof GenericArrayType) { return onGenericArray((GenericArrayType) type); } if (type instanceof WildcardType) { return onWildcard((WildcardType) type); } if (type instanceof TypeVariable) { return onVariable((TypeVariable) type); } // covered all the cases assert false; throw createError(type); }
/** * Visit the type and a given parameter. * * @param type visited type. * @return visiting result. */ public final T visit(final Type type) { assert type != null; if (type instanceof Class) { return onClass((Class) type); } if (type instanceof ParameterizedType) { return onParameterizedType((ParameterizedType) type); } if (type instanceof GenericArrayType) { return onGenericArray((GenericArrayType) type); } if (type instanceof WildcardType) { return onWildcard((WildcardType) type); } if (type instanceof TypeVariable) { return onVariable((TypeVariable) type); } // covered all the cases assert false; throw createError(type); }
/** * Visit the type and a given parameter. * * @param type visited type. * @return visiting result. */ public final T visit(final Type type) { assert type != null; if (type instanceof Class) { return onClass((Class) type); } if (type instanceof ParameterizedType) { return onParameterizedType((ParameterizedType) type); } if (type instanceof GenericArrayType) { return onGenericArray((GenericArrayType) type); } if (type instanceof WildcardType) { return onWildcard((WildcardType) type); } if (type instanceof TypeVariable) { return onVariable((TypeVariable) type); } // covered all the cases assert false; throw createError(type); }
/** * Visit the type and a given parameter. * * @param type visited type. * @return visiting result. */ public final T visit(final Type type) { assert type != null; if (type instanceof Class) { return onClass((Class) type); } if (type instanceof ParameterizedType) { return onParameterizedType((ParameterizedType) type); } if (type instanceof GenericArrayType) { return onGenericArray((GenericArrayType) type); } if (type instanceof WildcardType) { return onWildcard((WildcardType) type); } if (type instanceof TypeVariable) { return onVariable((TypeVariable) type); } // covered all the cases assert false; throw createError(type); }
/** * Visit the type and a given parameter. * * @param type visited type. * @return visiting result. */ public final T visit(final Type type) { assert type != null; if (type instanceof Class) { return onClass((Class) type); } if (type instanceof ParameterizedType) { return onParameterizedType((ParameterizedType) type); } if (type instanceof GenericArrayType) { return onGenericArray((GenericArrayType) type); } if (type instanceof WildcardType) { return onWildcard((WildcardType) type); } if (type instanceof TypeVariable) { return onVariable((TypeVariable) type); } // covered all the cases assert false; throw createError(type); }