public class RStream
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<?> |
clazz() |
ConstructorStream |
constructors() |
FieldStream |
fields() |
java.lang.Object |
instance() |
MethodStream |
methods() |
static RStream |
of(java.lang.Class<?> clazz)
Get a stream of the given class.
|
static RStream |
of(java.lang.Class<?> clazz,
java.lang.Object instance)
Get a stream of the given class with the given instance.
|
static RStream |
of(java.lang.Object instance)
Get the stream of the given instance.
|
static RStream |
of(java.lang.String className)
Get a stream of the given class by name.
|
static RStream |
of(java.lang.String className,
java.lang.Object instance)
Get the stream of the given class by name with the given instance.
|
RStream |
withSuper()
Include fields and methods from super classes.
|
public static RStream of(@Nonnull java.lang.Class<?> clazz)
clazz - The class to get the stream ofpublic static RStream of(@Nonnull java.lang.Class<?> clazz, @Nullable java.lang.Object instance)
clazz - The class to get the stream ofinstance - The instance of the given classpublic static RStream of(@Nonnull java.lang.String className)
className - The name of the class to get the stream ofjava.lang.ClassNotFoundException - If the class with the given name doesn't existpublic static RStream of(@Nonnull java.lang.String className, @Nullable java.lang.Object instance)
className - The name of the class to get the stream ofinstance - The instance of the given classjava.lang.ClassNotFoundException - If the class with the given name doesn't existpublic static RStream of(@Nonnull java.lang.Object instance)
instance - The instance to get the stream ofpublic java.lang.Class<?> clazz()
@Nullable public java.lang.Object instance()
public RStream withSuper()
public FieldStream fields()
public ConstructorStream constructors()
public MethodStream methods()