List of usage examples for javax.lang.model.element TypeParameterElement getBounds
List<? extends TypeMirror> getBounds();
From source file:auto.parse.processor.AutoParseProcessor.java
private static String typeParameterString(TypeParameterElement type) { String s = type.getSimpleName().toString(); List<? extends TypeMirror> bounds = type.getBounds(); if (bounds.isEmpty()) { return s; } else {/* ww w . j av a2s . c o m*/ s += " extends "; String sep = ""; for (TypeMirror bound : bounds) { s += sep + bound; sep = " & "; } return s; } }