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 booleansetAccessible(Class<?> clazz, Constructor<?> constructor)Set the constructor as accessible.booleansetAccessible(Class<?> clazz, Field field)Set the field as accessible.booleansetAccessible(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:IReflectionSet the field as accessible.- Specified by:
setAccessiblein interfaceIReflection- Overrides:
setAccessiblein 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:IReflectionSet the method as accessible.- Specified by:
setAccessiblein interfaceIReflection- Overrides:
setAccessiblein 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:IReflectionSet the constructor as accessible.- Specified by:
setAccessiblein interfaceIReflection- Overrides:
setAccessiblein classReflectionImpl- Parameters:
clazz- the clazz the field is onconstructor- the constructor to set- Returns:
- could we complete the operation
- See Also:
Constructor.setAccessible(boolean)
-
-