Skip to content

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

Merged
merged 2 commits into from
May 7, 2019
Merged

Java class typet methodt #4618

merged 2 commits into from
May 7, 2019

Conversation

kroening
Copy link
Member

@kroening 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.

Daniel Kroening added 2 commits May 4, 2019 15:00
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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exception, singular

Copy link
Member Author

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
Copy link
Contributor

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coming!

@kroening kroening merged commit 4a514e4 into develop May 7, 2019
@kroening kroening deleted the java_class_typet-methodt branch May 7, 2019 15:16
kroening pushed a commit that referenced this pull request May 7, 2019
This is follow up for #4618, and a addresses a comment by Chris.  The method
only adds one exception, not multiple.
@kroening kroening mentioned this pull request May 7, 2019
3 tasks
kroening pushed a commit that referenced this pull request May 7, 2019
This is follow up for #4618, and a addresses a comment by Chris.  The method
only adds one exception, not multiple.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants