Skip to content

Releases: gmpassos/reflection_factory

v1.0.7

13 Sep 22:44
Compare
Choose a tag to compare
- `TypeReflection`:
  - Added `isOfType`.
- `FunctionReflection` (`MethodReflection`, `ConstructorReflection`):
  - `methodInvocation(parametersProvider)` now accepts a `ParameterReflection`,
    not only a `String` with the parameter name.

v1.0.6

13 Sep 06:19
Compare
Choose a tag to compare
- `ClassReflection`:
  - Added: `fieldsWhere`, `staticFieldsWhere`, `methodsWhere`, `staticMethodsWhere`.
- `TypeReflection`:
- Added: `isPrimitiveType`, `isCollectionType`, `isMapType`, `isIterableType`,
  `isNumericType`, `isIntType`, `isDoubleType`, `isBoolType`, `isStringType`.

v1.0.5

07 Sep 22:37
Compare
Choose a tag to compare
- Added support for class constructors.
- Added `TypeReflection`:
  - Allows handling of Type generics/arguments.
- Added extensions:
  - `IterableTypeReflectionExtension`, `IterableParameterReflectionExtension`, `IterableFieldReflectionExtension`.

v1.0.4

01 Sep 07:14
Compare
Choose a tag to compare
- Added `ElementResolver`:
- `ClassReflection`:
  - Added resolvers:
    `fieldResolver`, `staticFieldResolver`, `methodResolver`, `staticMethodResolver`.
  - Optimized `toJson` to resolve faster `MethodReflection` of `obj.toJson`.
- Changed `FieldReflection` to allow `withObject`.
- Changed `MethodReflection` to allow `withObject`.
- Added `ReflectionFactory.toJsonEncodable`.
- Improve API Documentation.
- Fix issue with operator overloading.

v1.0.3

30 Aug 06:44
Compare
Choose a tag to compare
- Annotation reflection:
  - Support for classes, fields, methods and method parameters.

v1.0.2

25 Aug 22:51
Compare
Choose a tag to compare
- `ClassReflection`:
  - Added: `allMethods`, `allStaticMethods`
- `MethodReflection`:
  - Methods parameters now are defined with `ParameterReflection`.
  - `returnType`: fixed for `void`.
  - `method`: exposed, not private anymore.
  - Added:
    - `equalsNormalParametersTypes`, `equalsOptionalParametersTypes`, `equalsNamedParametersTypes`.
    - `methodInvocation`, `methodInvocationFromMap`.
- `MethodInvocation`: class to represent an invocation.
- Builder:
  - Now generates documentation of generated extension methods.
  - Better handling of parameters and fields with `ParameterReflection`.
    - Now knows if a parameter is `required`.
- Improved API documentation.
- Improved tests.
- collection: ^1.15.0

v1.0.1

23 Aug 04:18
Compare
Choose a tag to compare
- @EnableReflection:
  - Added `reflectionClassName`, `reflectionExtensionName`.
- @ReflectionBridge:
  - Added `bridgeExtensionName`, `reflectionClassNames`, `reflectionExtensionNames`.
- Builder:
  - `MethodReflection`:
    - Added method parameters names to normal and optional parameters.
  - Optimize generated code.
  - Improved console output and verbose mode.
- Improved tests.

v1.0.0

22 Aug 06:14
Compare
Choose a tag to compare
- Support for Class reflection:
  - FieldReflection
  - MethodReflection
- Initial version.