public class GenericClass<T> extends Object
| Constructor and Description |
|---|
GenericClass(Class<T> type,
Class<?> cls)
Create a generic of type T for the untyped class cls.
|
GenericClass(Class<T> type,
InterceptorContext ic,
byte[] classData)
Create a GenericClass of the given type by modifying classData
with the given interceptors.
|
| Modifier and Type | Method and Description |
|---|---|
T |
create(Object... args)
Create an instance of type T using the constructor that
matches the given arguments if possible.
|
public GenericClass(Class<T> type, InterceptorContext ic, byte[] classData)
public GenericClass(Class<T> type, Class<?> cls)
IllegalArgumentException - if cls is not a subclass of type.public T create(Object... args)
Copyright © 2011–2018 Eclipse Foundation. All rights reserved.