-
Notifications
You must be signed in to change notification settings - Fork 274
Java class typet methodt #4618
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
Java class typet methodt #4618
Conversation
kroening
commented
May 4, 2019
- Each commit message has a non-empty body, explaining why the change was made.
- Methods or procedures I have added are documented, following the guidelines provided in CODING_STANDARD.md.
- n/a The feature or user visible behaviour I have added or modified has been documented in the User Guide in doc/cprover-manual/
- Regression or unit tests are included, or existing tests cover the modified code (in this case I have detailed which ones those are in the commit message).
- n/a My commit message includes data points confirming performance improvements (if claimed).
- My PR is restricted to a single feature or bugfix.
- n/a White-space or formatting changes outside the feature-related changed lines are in commits of their own.
This will allow us to use it in java_class_typet.
This has three benefits: * Ordinary fields no longer have get_is_native/set_is_native, which isn't applicable. * Java methods now offer final/native getters/setters. * Java methods now have the type java_method_typet.
return exceptions; | ||
} | ||
|
||
void add_throws_exceptions(irep_idt exception) |
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.
exception, singular
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.
Agreed, but note that this is just moving existing code around. Will do a separate PR.
|
||
const componentst &components() const | ||
const methodst &methods() const |
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.
Are there any users for this? It'd be good to include at least some in this PR so doesn't get deleted Perhaps a unit test for checking that a java class when loaded has the methods set?
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.
Coming!
This is follow up for #4618, and a addresses a comment by Chris. The method only adds one exception, not multiple.
This is follow up for #4618, and a addresses a comment by Chris. The method only adds one exception, not multiple.