Package io.sundr.builder
Class Visitors
java.lang.Object
io.sundr.builder.Visitors
-
Method Summary
Modifier and TypeMethodDescriptiongetTypeArguments(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 Details
-
newVisitor
-
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.
-