public class ConstructorWrapper
extends java.lang.Object
Constructor class for easy access to all required methods.| Constructor and Description |
|---|
ConstructorWrapper(ConstructorStream parent,
java.lang.reflect.Constructor<?> constructor) |
| Modifier and Type | Method and Description |
|---|---|
ModifierWrapper |
modifier() |
<T> T |
newInstance(java.lang.Object... args)
Create a new instance of the owner class with the given arguments.
|
java.lang.Class<?> |
owner() |
int |
parameterCount() |
java.lang.Class<?>[] |
parameterTypes() |
ConstructorStream |
parent() |
java.lang.reflect.Constructor<?> |
raw() |
RStream |
streamInstance(java.lang.Class<?> clazz,
java.lang.Object... args)
Create a new instance of the owner class with the given arguments and wrap it in a new
RStream. |
RStream |
streamInstance(java.lang.Object... args)
Create a new instance of the owner class with the given arguments and wrap it in a new
RStream. |
public ConstructorWrapper(ConstructorStream parent, java.lang.reflect.Constructor<?> constructor)
public ConstructorStream parent()
public java.lang.reflect.Constructor<?> raw()
public java.lang.Class<?>[] parameterTypes()
public int parameterCount()
public java.lang.Class<?> owner()
public ModifierWrapper modifier()
ModifierWrapper of the constructorpublic <T> T newInstance(java.lang.Object... args)
T - The type of the owner classargs - The arguments to pass to the constructorpublic RStream streamInstance(java.lang.Object... args)
RStream.args - The arguments to pass to the constructorpublic RStream streamInstance(java.lang.Class<?> clazz, java.lang.Object... args)
RStream.clazz - The class used for the streamargs - The arguments to pass to the constructor