This is an automated email from the ASF dual-hosted git repository. sergeykamov pushed a commit to branch NC-473 in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
commit 925a6ff06912eb0e4e06d5ec1a36288dc5a5511f Author: Sergey Kamov <skhdlem...@gmail.com> AuthorDate: Thu Jan 20 16:00:19 2022 +0300 WIP. --- .../nlpcraft/internal/impl/NCIntentsProcessor.scala | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/nlpcraft/src/main/scala/org/apache/nlpcraft/internal/impl/NCIntentsProcessor.scala b/nlpcraft/src/main/scala/org/apache/nlpcraft/internal/impl/NCIntentsProcessor.scala index bc2f679..835a720 100644 --- a/nlpcraft/src/main/scala/org/apache/nlpcraft/internal/impl/NCIntentsProcessor.scala +++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/internal/impl/NCIntentsProcessor.scala @@ -217,6 +217,22 @@ object NCIntentsProcessor: private def getAllMethods(claxx: Class[_]): Set[Method] = (claxx.getDeclaredMethods ++ claxx.getMethods).toSet /** + * Gets its own fields including private and accessible from parents. + * + * @param claxx Class + * @return Fields. + */ + private def getAllFields(claxx: Class[_]): Set[Field] = (claxx.getDeclaredFields ++ claxx.getFields).toSet + + /** + * Gets its own fields including private and accessible from parents. + * + * @param o Object. + * @return Fields. + */ + private def getAllFields(o: AnyRef): Set[Field] = getAllFields(o.getClass) + + /** * * @param method * @param objClassName @@ -541,6 +557,7 @@ class NCIntentsProcessor(mdl: NCModel) extends LazyLogging: for (m <- getAllMethods(ref)) processMethod(MethodOwner(method = m, objClassName = ref.getName, obj = null)) + /** * * @param mdl