Package ball.lang.reflect
Interface JavaLangReflectMethods
-
- All Known Implementing Classes:
AbstractProcessor
,AnnotatedNoAnnotationProcessor
,AnnotatedProcessor
,AnnotationValueMustConvertTo.ProcessorImpl
,AntLibProcessor
,AntTaskAttributeConstraintProcessor
,AntTaskMixInProcessor
,AntTaskProcessor
,ClassFileProcessorProcessor
,CombinationsTask
,CombinationsTask.Count
,CombinationsTask.Of
,CompileTimeCheckProcessor
,ConstantValueMustConvertToProcessor
,ConstructorPropertiesProcessor
,For.ProcessorImpl
,ForElementKinds.ProcessorImpl
,ForSubclassesOf.ProcessorImpl
,InstanceOfTask
,JavacPluginName.ProcessorImpl
,JAXBIndexProcessor
,ManifestProcessor
,MatcherGroupProcessor
,MustImplement.ProcessorImpl
,NoopProcessor
,NoOverrideProcessor
,ObjectCloneProcessor
,ObjectToStringProcessor
,PatternRegexProcessor
,PermutationsTask
,PermutationsTask.Count
,PermutationsTask.Of
,SerializableProcessor
,ServiceProviderForProcessor
,TargetMustBe.ProcessorImpl
,TargetMustExtend.ProcessorImpl
,TargetMustHaveConstructor.ProcessorImpl
,TargetMustHaveModifiers.ProcessorImpl
,TargetMustNotHaveModifiers.ProcessorImpl
,TypeTask
,TypeTask.BeanInfoFor
,TypeTask.IsAssignableFrom
,TypeTask.MembersOf
,TypeTask.ResourcePathTo
,TypeTask.SuperclassesOf
,WithModifiers.ProcessorImpl
,WithoutModifiers.ProcessorImpl
public interface JavaLangReflectMethods
java.lang.reflect
andjavax.lang.model.element
utility methods.- Author:
- Allen D. Ball
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default EnumSet<Modifier>
asModifierSet(int modifiers)
default String
declaration(int modifiers, Method method)
Method to generate aMethod
declaration.default String
declaration(int modifiers, Type returnType, Method method)
Method to generate aMethod
declaration.default String
declaration(int modifiers, String returnType, Method method)
Method to generate aMethod
declaration.default String
declaration(Constructor<?> constructor)
Method to generate aConstructor
declaration.default String
declaration(Field field)
Method to generate aField
declaration.default String
declaration(Member member)
Dispatches call todeclaration(Constructor)
,declaration(Field)
, ordeclaration(Method)
as appropriate.default String
declaration(Method method)
Method to generate aMethod
declaration.default String
declaration(Parameter parameter)
Method to generate aParameter
declaration.default String
exceptions(Type[] exceptions)
Method to generate aConstructor
orMethod
thrown exception list.default EnumSet<Modifier>
getModifiers(Class<?> type)
SeeasModifierSet(int)
.default EnumSet<Modifier>
getModifiers(Member member)
SeeasModifierSet(int)
.default String
modifiers(int modifiers)
Method to generate modifiers fordeclaration()
methods.default String
parameters(Parameter[] parameters)
Method to generate aConstructor
orMethod
parameter declaration.default String
type(ParameterizedType type)
Method to generate types fordeclaration()
methods.default String
type(Type type)
Method to generate types fordeclaration()
methods.
-
-
-
Method Detail
-
asModifierSet
default EnumSet<Modifier> asModifierSet(int modifiers)
-
getModifiers
default EnumSet<Modifier> getModifiers(Class<?> type)
SeeasModifierSet(int)
.
-
getModifiers
default EnumSet<Modifier> getModifiers(Member member)
SeeasModifierSet(int)
.
-
declaration
default String declaration(Member member)
Dispatches call todeclaration(Constructor)
,declaration(Field)
, ordeclaration(Method)
as appropriate.
-
declaration
default String declaration(Constructor<?> constructor)
Method to generate aConstructor
declaration.- Parameters:
constructor
- The targetConstructor
.- Returns:
String
-
declaration
default String declaration(Field field)
Method to generate aField
declaration.
-
declaration
default String declaration(Method method)
Method to generate aMethod
declaration.
-
declaration
default String declaration(int modifiers, Method method)
Method to generate aMethod
declaration.
-
declaration
default String declaration(int modifiers, Type returnType, Method method)
Method to generate aMethod
declaration.
-
declaration
default String declaration(int modifiers, String returnType, Method method)
Method to generate aMethod
declaration.
-
parameters
default String parameters(Parameter[] parameters)
Method to generate aConstructor
orMethod
parameter declaration.
-
exceptions
default String exceptions(Type[] exceptions)
Method to generate aConstructor
orMethod
thrown exception list.
-
declaration
default String declaration(Parameter parameter)
Method to generate aParameter
declaration.
-
modifiers
default String modifiers(int modifiers)
Method to generate modifiers fordeclaration()
methods.
-
type
default String type(ParameterizedType type)
Method to generate types fordeclaration()
methods.- Parameters:
type
- TheParameterizedType
.- Returns:
String
-
-