Package com.intergral.deep.reflect
Class Java9ReflectionImpl
- java.lang.Object
-
- com.intergral.deep.reflect.ReflectionImpl
-
- com.intergral.deep.reflect.Java9ReflectionImpl
-
- All Implemented Interfaces:
IReflection
public class Java9ReflectionImpl extends ReflectionImpl
The version of reflection that deals with modules.
-
-
Constructor Summary
Constructors Constructor Description Java9ReflectionImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
setAccessible(Class<?> clazz, Constructor<?> constructor)
Set the constructor as accessible.boolean
setAccessible(Class<?> clazz, Field field)
Set the field as accessible.boolean
setAccessible(Class<?> clazz, Method method)
Set the method as accessible.-
Methods inherited from class com.intergral.deep.reflect.ReflectionImpl
callConstructor, callField, callMethod, findConstructor, findMethod, getField, getFieldIterator, getFieldValue, getModifiers
-
-
-
-
Method Detail
-
setAccessible
public boolean setAccessible(Class<?> clazz, Field field)
Description copied from interface:IReflection
Set the field as accessible.- Specified by:
setAccessible
in interfaceIReflection
- Overrides:
setAccessible
in classReflectionImpl
- Parameters:
clazz
- the clazz the field is onfield
- the field to access- Returns:
- could we complete the operation
- See Also:
Field.setAccessible(boolean)
-
setAccessible
public boolean setAccessible(Class<?> clazz, Method method)
Description copied from interface:IReflection
Set the method as accessible.- Specified by:
setAccessible
in interfaceIReflection
- Overrides:
setAccessible
in classReflectionImpl
- Parameters:
clazz
- the clazz the field is onmethod
- the method to access- Returns:
- could we complete the operation
- See Also:
Method.setAccessible(boolean)
-
setAccessible
public boolean setAccessible(Class<?> clazz, Constructor<?> constructor)
Description copied from interface:IReflection
Set the constructor as accessible.- Specified by:
setAccessible
in interfaceIReflection
- Overrides:
setAccessible
in classReflectionImpl
- Parameters:
clazz
- the clazz the field is onconstructor
- the constructor to set- Returns:
- could we complete the operation
- See Also:
Constructor.setAccessible(boolean)
-
-