Skip to content

Comments

Issue 86 entrypoints#104

Merged
rahlk merged 4 commits intomainfrom
issue-86-entrypoints
Feb 5, 2025
Merged

Issue 86 entrypoints#104
rahlk merged 4 commits intomainfrom
issue-86-entrypoints

Conversation

@rahlk
Copy link
Collaborator

@rahlk rahlk commented Feb 5, 2025

Symbol table has been updated to now natively capture entrypoint classes and entrypoint methods in JavaEE/JakartaEE, Spring/Springboot, Stuts, and Jaxrs.

New methods:

private static boolean isEntryPointMethod(CallableDeclaration callableDecl) {
    return isServletEntrypointMethod(callableDecl) || isJaxRsEntrypointMethod(callableDecl) || isSpringEntrypointMethod(callableDecl) | isStrutsEntryPointMethod(callableDecl);
    }
private static boolean isEntryPointClass(TypeDeclaration typeDecl) {
    return isSpringEntrypointClass(typeDecl) || isStrutsEntryPointClass(typeDecl) || isCamelEntryPointClass(typeDecl) || isJaxRSEntrypointClass(typeDecl) || isJakartaServletEntryPointClass(typeDecl);
}

(all the inner methods isServletEntrypointMethod(...) etc. have been implemented)


Other key changes:

  • New fields in Callable and Type entities called isEntrypoint and isEntrypointClass respectively.
  • New test case shouldBeAbleToGenerateAnalysisArtifactForDaytrader8() in src/test/java/com/ibm/cldk/CodeAnalyzerIntegrationTest.java to test that we can find the entrypoints in daytrader8 (which, by the way, is now available in test resources folder).
  • I added a new entity called CRUDOperation that will be marked @NotImplemented. This is for future reference.

rahlk added 2 commits February 4, 2025 23:18
… attempts to address the feature request #86

Signed-off-by: Rahul Krishna <i.m.ralk@gmail.com>
Signed-off-by: Rahul Krishna <i.m.ralk@gmail.com>
@rahlk rahlk requested review from pavuluri and sinha108 February 5, 2025 05:03
Signed-off-by: Rahul Krishna <i.m.ralk@gmail.com>
…ion logic to check for @OverRide on methods in addition to checking for parameter types matches to HttpRequest/HttpResponse.

Signed-off-by: Rahul Krishna <i.m.ralk@gmail.com>
@rahlk rahlk merged commit dbabfd3 into main Feb 5, 2025
@rahlk rahlk deleted the issue-86-entrypoints branch February 8, 2025 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants