Title: API changes: extend visitor with return values · Issue #901 · JSQLParser/JSqlParser · GitHub
Open Graph Title: API changes: extend visitor with return values · Issue #901 · JSQLParser/JSqlParser
X Title: API changes: extend visitor with return values · Issue #901 · JSQLParser/JSqlParser
Description: If you try to build a CopyVisitor of some kind of object hierarchy, one has to build some kind of Stack structure, to give the actual visitor a hint, where it should write its copied data. I suggest to extend all visitor methods with a r...
Open Graph Description: If you try to build a CopyVisitor of some kind of object hierarchy, one has to build some kind of Stack structure, to give the actual visitor a hint, where it should write its copied data. I sugges...
X Description: If you try to build a CopyVisitor of some kind of object hierarchy, one has to build some kind of Stack structure, to give the actual visitor a hint, where it should write its copied data. I sugges...
Opengraph URL: https://github.com/JSQLParser/JSqlParser/issues/901
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"API changes: extend visitor with return values","articleBody":"If you try to build a CopyVisitor of some kind of object hierarchy, one has to build some kind of **Stack** structure, to give the actual visitor a hint, where it should write its copied data.\r\n\r\nI suggest to extend all visitor methods with a return value:\r\n\r\n MyType visitor(MyType param);\r\n\r\nThe standard implementation should return the actual object inserted. \r\n\r\n```\r\npublic interface StatementVisitor {\r\n Comment visit(Comment comment);\r\n Commit visit(Commit commit);\r\n Delete visit(Delete delete);\r\n Update visit(Update update);\r\n```\r\n","author":{"url":"https://github.com/wumpz","@type":"Person","name":"wumpz"},"datePublished":"2019-11-24T22:31:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":25},"url":"https://github.com/901/JSqlParser/issues/901"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:fe50e59b-e91f-2355-e26d-aa3b6bde5f2c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8408:3987B4:4854E3A:60DF31E:6964C037 |
| html-safe-nonce | 6ae767f7f9230ff2550424470ae2460dfef1d0cabc8410744c1bacc250805f60 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDA4OjM5ODdCNDo0ODU0RTNBOjYwREYzMUU6Njk2NEMwMzciLCJ2aXNpdG9yX2lkIjoiNDUwNTMyNDUzOTU0NDM4NzYzOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3c64fe9bc89e462aa57a9bd5ab61adbbcf7b956061905a85a8902b5ea0d8ae58 |
| hovercard-subject-tag | issue:527768394 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JSQLParser/JSqlParser/901/issue_layout |
| twitter:image | https://opengraph.githubassets.com/61107e0a326a730265dcef2fe19b239c141444956036a9ccc2ff8c2078053e9d/JSQLParser/JSqlParser/issues/901 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/61107e0a326a730265dcef2fe19b239c141444956036a9ccc2ff8c2078053e9d/JSQLParser/JSqlParser/issues/901 |
| og:image:alt | If you try to build a CopyVisitor of some kind of object hierarchy, one has to build some kind of Stack structure, to give the actual visitor a hint, where it should write its copied data. I sugges... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | wumpz |
| hostname | github.com |
| expected-hostname | github.com |
| None | 21df671ce2c9f1a16940ccbd3af6cb4f3f12a856929ca7eb1b4aea8e384ea442 |
| turbo-cache-control | no-preview |
| go-import | github.com/JSQLParser/JSqlParser git https://github.com/JSQLParser/JSqlParser.git |
| octolytics-dimension-user_id | 4643847 |
| octolytics-dimension-user_login | JSQLParser |
| octolytics-dimension-repository_id | 1944709 |
| octolytics-dimension-repository_nwo | JSQLParser/JSqlParser |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1944709 |
| octolytics-dimension-repository_network_root_nwo | JSQLParser/JSqlParser |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5707c685ac172d50a0bdd7533dde4f8aabcf8eef |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width