-
-
Notifications
You must be signed in to change notification settings - Fork 358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature: RoleHandlerHelper#getRoleHandlers(Class), forEachRoleHandler, getParentRoleHandler #1794
Conversation
} | ||
} | ||
|
||
public static RoleHandler getParentRoleHandler(CtElement element) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename to getRoleHandler?
add API documentation?
thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename to getRoleHandler?
are you sure? I think that there should be something about parent
in the method name, because it returns role of this element in parent.
api doc.
I forgot that ... It compiles without documentation well :-) I will add it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because it returns role of this element in parent.
a role is always with respect to the parent, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in case of this method yes.
@@ -71,4 +78,51 @@ public static RoleHandler getOptionalRoleHandler(Class<? extends CtElement> targ | |||
} | |||
return null; | |||
} | |||
|
|||
/** | |||
* @param targetClass a Close whose handlers we are looking for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand your documentation here: what's a "Close"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should sleep more ... at least sometime ... "Close" is wrong. Correct is "Class" ;-) I will fix it.
This PR is OK but for the method name |
thanks! |
Some helper methods which allows generically access Spoon model