Package io.sundr.builder
Class Visitors
- java.lang.Object
-
- io.sundr.builder.Visitors
-
public final class Visitors extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static <T> List<Class>getTypeArguments(Class<T> baseClass, Class<? extends T> childClass)Get the actual type arguments a child class has used to extend a generic base class.static <T> Visitor<T>newVisitor(Class<T> type, Visitor<T> visitor)
-
-
-
Method Detail
-
getTypeArguments
protected static <T> List<Class> getTypeArguments(Class<T> baseClass, Class<? extends T> childClass)
Get the actual type arguments a child class has used to extend a generic base class.- Type Parameters:
T- the type of the baseClass- Parameters:
baseClass- the base classchildClass- the child class- Returns:
- a list of the raw classes for the actual type arguments.
-
-