public static class Classes.End extends Object
Modifier and Type | Method and Description |
---|---|
Stream<Class<?>> |
classes()
Returns a stream of all the classes found.
|
Optional<? extends Constructor<?>> |
constructor(Class<?>... parameterTypes)
Returns the first constructyor of the specified parameter types found if any.
|
Stream<Constructor<?>> |
constructors()
Returns a stream of all the constructors found.
|
Optional<Field> |
field(String name)
Returns the first field of the specified name found if any.
|
Stream<Field> |
fields()
Returns a stream of all the fields found.
|
Optional<Method> |
method(String name,
Class<?>... parameterTypes)
Returns the first method of the specified name and parameter types found if any (ignoring return types).
|
Optional<Method> |
method(String name,
Class<?> returnType,
Class<?>... parameterTypes)
Returns the first method of the specified name, return type and parameter types found if any.
|
Stream<Method> |
methods()
Returns a stream of all the methods found.
|
public Stream<Class<?>> classes()
public Stream<Constructor<?>> constructors()
public Optional<? extends Constructor<?>> constructor(Class<?>... parameterTypes)
parameterTypes
- the constructor parameter types.public Stream<Method> methods()
public Optional<Method> method(String name, Class<?>... parameterTypes)
name
- the name of the method.parameterTypes
- the method parameter types.public Optional<Method> method(String name, Class<?> returnType, Class<?>... parameterTypes)
name
- the name of the method.returnType
- the method return type.parameterTypes
- the method parameter types.public Stream<Field> fields()
Copyright © 2013-2018–2019 SeedStack. All rights reserved.