1+ /**
2+ * Provides classes and predicates for working with the `play` package.
3+ */
4+
15import java
26
37/**
4- * Play MVC Framework Result Class
8+ * A `play.mvc. Result` class.
59 */
6- class PlayMVCResultClass extends Class {
7- PlayMVCResultClass ( ) { this .hasQualifiedName ( "play.mvc" , "Result" ) }
10+ class PlayMvcResultClass extends Class {
11+ PlayMvcResultClass ( ) { this .hasQualifiedName ( "play.mvc" , "Result" ) }
812}
913
1014/**
11- * Play MVC Framework Results Class
12- *
13- * Documentation: https://www.playframework.com/documentation/2.8.x/JavaActions
15+ * A `play.mvc.Results` class.
1416 */
15- class PlayMVCResultsClass extends Class {
16- PlayMVCResultsClass ( ) { this .hasQualifiedName ( "play.mvc" , "Results" ) }
17+ class PlayMvcResultsClass extends Class {
18+ PlayMvcResultsClass ( ) { this .hasQualifiedName ( "play.mvc" , "Results" ) }
1719}
1820
1921/**
20- * Play MVC Framework HTTP Request Header Class
22+ * A `play.mvc.Http$RequestHeader` class.
2123 */
22- class PlayMVCHTTPRequestHeader extends RefType {
23- PlayMVCHTTPRequestHeader ( ) { this .hasQualifiedName ( "play.mvc" , "Http$RequestHeader" ) }
24+ class PlayMvcHttpRequestHeader extends RefType {
25+ PlayMvcHttpRequestHeader ( ) { this .hasQualifiedName ( "play.mvc" , "Http$RequestHeader" ) }
2426}
2527
2628/**
27- * Play Framework Explicit Body Parser Annotation
28- *
29- * Documentation: https://www.playframework.com/documentation/2.8.x/JavaBodyParsers#Choosing-an-explicit-body-parser
29+ * A `play.mvc.BodyParser<>$Of"` annotation.
3030 */
3131class PlayBodyParserAnnotation extends Annotation {
3232 PlayBodyParserAnnotation ( ) { this .getType ( ) .hasQualifiedName ( "play.mvc" , "BodyParser<>$Of" ) }
3333}
3434
3535/**
36- * Play Framework AddCSRFToken Annotation
37- *
38- * Documentation: https://www.playframework.com/documentation/2.8.x/JavaCsrf
36+ * A `play.filters.csrf.AddCSRFToken` annotation.
3937 */
40- class PlayAddCSRFTokenAnnotation extends Annotation {
41- PlayAddCSRFTokenAnnotation ( ) {
38+ class PlayAddCsrfTokenAnnotation extends Annotation {
39+ PlayAddCsrfTokenAnnotation ( ) {
4240 this .getType ( ) .hasQualifiedName ( "play.filters.csrf" , "AddCSRFToken" )
4341 }
4442}
4543
4644/**
47- * Play Framework Async Promise - Gets the Promise<Result> Generic Member/Type of (play.libs.F)
48- *
49- * Documentation: https://www.playframework.com/documentation/2.5.1/api/java/play/libs/F.Promise.html
45+ * A member with qualified name `F.Promise<Result>` of package `play.libs.F`.
5046 */
5147class PlayAsyncResultPromise extends Member {
5248 PlayAsyncResultPromise ( ) {
@@ -59,9 +55,7 @@ class PlayAsyncResultPromise extends Member {
5955}
6056
6157/**
62- * Play Framework Async Generic Result - Gets the CompletionStage<Result> Generic Type of (java.util.concurrent)
63- *
64- * Documentation: https://www.playframework.com/documentation/2.6.x/JavaAsync
58+ * A type with qualified name `CompletionStage<Result>` of package `java.util.concurrent`.
6559 */
6660class PlayAsyncResultCompletionStage extends Type {
6761 PlayAsyncResultCompletionStage ( ) {
@@ -71,7 +65,7 @@ class PlayAsyncResultCompletionStage extends Type {
7165}
7266
7367/**
74- * Play Framework Controllers which extends PlayMVCController recursively - Used to find all Controllers
68+ * A class which extends PlayMvcController recursively to find all controllers.
7569 */
7670class PlayController extends Class {
7771 PlayController ( ) {
@@ -80,9 +74,9 @@ class PlayController extends Class {
8074}
8175
8276/**
83- * Play Framework Controller Action Methods - Mappings to route files
77+ * A method to find PlayFramework controller action methods, these are mapping's to route files.
8478 *
85- * Sample Route - `POST /login @com.company.Application.login()`
79+ * Sample Route - `POST /login @com.company.Application.login()`.
8680 *
8781 * Example - class get's `index` & `login` as valid action methods.
8882 * ```
@@ -96,24 +90,22 @@ class PlayController extends Class {
9690 * }
9791 * }
9892 * ```
99- *
100- * Documentation: https://www.playframework.com/documentation/2.8.x/JavaActions
10193 */
10294class PlayControllerActionMethod extends Method {
10395 PlayControllerActionMethod ( ) {
10496 this = any ( PlayController c ) .getAMethod ( ) and
10597 (
10698 this .getReturnType ( ) instanceof PlayAsyncResultPromise or
107- this .getReturnType ( ) instanceof PlayMVCResultClass or
99+ this .getReturnType ( ) instanceof PlayMvcResultClass or
108100 this .getReturnType ( ) instanceof PlayAsyncResultCompletionStage
109101 )
110102 }
111103}
112104
113105/**
114- * Play Action-Method parameters. These are a source of user input
106+ * The PlayFramework action method parameters, these are a source of user input.
115107 *
116- * Example - Class get's `username` & `password` as valid parameters
108+ * Example - `username` & `password` are marked as valid parameters.
117109 * ```
118110 * public class Application extends Controller {
119111 * public Result index(String username, String password) {
@@ -132,36 +124,32 @@ class PlayActionMethodQueryParameter extends Parameter {
132124}
133125
134126/**
135- * Play Framework HTTPRequestHeader Methods - `headers`, `getQueryString`, `getHeader`
136- *
137- * Documentation: https://www.playframework.com/documentation/2.6.0/api/java/play/mvc/Http.RequestHeader.html
127+ * A PlayFramework HttpRequestHeader method, some of these are `headers`, `getQueryString`, `getHeader`.
138128 */
139- class PlayMVCHTTPRequestHeaderMethods extends Method {
140- PlayMVCHTTPRequestHeaderMethods ( ) { this .getDeclaringType ( ) instanceof PlayMVCHTTPRequestHeader }
129+ class PlayMvcHttpRequestHeaderMethods extends Method {
130+ PlayMvcHttpRequestHeaderMethods ( ) { this .getDeclaringType ( ) instanceof PlayMvcHttpRequestHeader }
141131
142132 /**
143- * Gets all references to play.mvc.HTTP.RequestHeader `getQueryString` method
133+ * A reference to the `getQueryString` method.
144134 */
145135 MethodAccess getAQueryStringAccess ( ) {
146136 this .hasName ( "getQueryString" ) and result = this .getAReference ( )
147137 }
148138}
149139
150140/**
151- * Play Framework mvc.Results Methods - `ok`, `status`, `redirect`
152- *
153- * Documentation: https://www.playframework.com/documentation/2.5.8/api/java/play/mvc/Results.html
141+ * A PlayFramework results method, some of these are `ok`, `status`, `redirect`.
154142 */
155- class PlayMVCResultsMethods extends Method {
156- PlayMVCResultsMethods ( ) { this .getDeclaringType ( ) instanceof PlayMVCResultsClass }
143+ class PlayMvcResultsMethods extends Method {
144+ PlayMvcResultsMethods ( ) { this .getDeclaringType ( ) instanceof PlayMvcResultsClass }
157145
158146 /**
159- * Gets all references to play.mvc.Results `ok` method
147+ * A reference to the play.mvc.Results `ok` method.
160148 */
161149 MethodAccess getAnOkAccess ( ) { this .hasName ( "ok" ) and result = this .getAReference ( ) }
162150
163151 /**
164- * Gets all references to play.mvc.Results `redirect` method
152+ * A reference to the play.mvc.Results `redirect` method.
165153 */
166154 MethodAccess getARedirectAccess ( ) { this .hasName ( "redirect" ) and result = this .getAReference ( ) }
167155}
0 commit comments