Skip to content

Commit fd2cd60

Browse files
committed
Java: Modelling of the Spring HTTP classes.
1 parent bfcc06d commit fd2cd60

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import java
2+
3+
class SpringHttpEntity extends Class {
4+
SpringHttpEntity() {
5+
getSourceDeclaration()
6+
.getErasure()
7+
.(RefType)
8+
.hasQualifiedName("org.springframework.http", "HttpEntity")
9+
}
10+
}
11+
12+
class SpringRequestEntity extends Class {
13+
SpringRequestEntity() {
14+
getSourceDeclaration()
15+
.getErasure()
16+
.(RefType)
17+
.hasQualifiedName("org.springframework.http", "RequestEntity")
18+
}
19+
}
20+
21+
class SpringResponseEntity extends Class {
22+
SpringResponseEntity() {
23+
getSourceDeclaration()
24+
.getErasure()
25+
.(RefType)
26+
.hasQualifiedName("org.springframework.http", "ResponseEntity")
27+
}
28+
}

0 commit comments

Comments
 (0)