public interface JavaLangReflectMethods
java.lang.reflect and javax.lang.model.element utility
methods.| Modifier and Type | Method and Description |
|---|---|
default EnumSet<Modifier> |
asModifierSet(int modifiers)
|
default String |
declaration(Constructor<?> constructor)
Method to generate a
Constructor declaration. |
default String |
declaration(Field field)
Method to generate a
Field declaration. |
default String |
declaration(int modifiers,
Method method)
Method to generate a
Method declaration. |
default String |
declaration(int modifiers,
String returnType,
Method method)
Method to generate a
Method declaration. |
default String |
declaration(int modifiers,
Type returnType,
Method method)
Method to generate a
Method declaration. |
default String |
declaration(Member member)
Dispatches call to
declaration(Constructor),
declaration(Field), or declaration(Method) as
appropriate. |
default String |
declaration(Method method)
Method to generate a
Method declaration. |
default String |
declaration(Parameter parameter)
Method to generate a
Parameter declaration. |
default String |
exceptions(Type[] exceptions)
Method to generate a
Constructor or Method thrown
exception list. |
default EnumSet<Modifier> |
getModifiers(Class<?> type)
See
asModifierSet(int). |
default EnumSet<Modifier> |
getModifiers(Member member)
See
asModifierSet(int). |
default String |
modifiers(int modifiers)
Method to generate modifiers for
declaration() methods. |
default String |
parameters(Parameter[] parameters)
Method to generate a
Constructor or Method parameter
declaration. |
default String |
type(ParameterizedType type)
Method to generate types for
declaration() methods. |
default String |
type(Type type)
Method to generate types for
declaration() methods. |
default EnumSet<Modifier> asModifierSet(int modifiers)
default EnumSet<Modifier> getModifiers(Class<?> type)
asModifierSet(int).default EnumSet<Modifier> getModifiers(Member member)
asModifierSet(int).default String declaration(Member member)
declaration(Constructor),
declaration(Field), or declaration(Method) as
appropriate.default String declaration(Constructor<?> constructor)
Constructor declaration.constructor - The target Constructor.Stringdefault String declaration(Field field)
Field declaration.default String declaration(Method method)
Method declaration.default String declaration(int modifiers, Method method)
Method declaration.default String declaration(int modifiers, Type returnType, Method method)
Method declaration.default String declaration(int modifiers, String returnType, Method method)
Method declaration.default String parameters(Parameter[] parameters)
Constructor or Method parameter
declaration.default String exceptions(Type[] exceptions)
Constructor or Method thrown
exception list.default String declaration(Parameter parameter)
Parameter declaration.default String modifiers(int modifiers)
declaration() methods.default String type(ParameterizedType type)
declaration() methods.type - The ParameterizedType.StringCopyright © 2015–2021 Allen D. Ball. All rights reserved.