File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change 8
8
import java
9
9
10
10
/** A type that should be in the generated code. */
11
- abstract private class GeneratedType extends RefType {
11
+ abstract private class GeneratedType extends ClassOrInterface {
12
12
GeneratedType ( ) {
13
- (
14
- this instanceof Interface
15
- or
16
- this instanceof Class
17
- ) and
18
13
not this instanceof AnonymousClass and
19
14
not this instanceof LocalClass and
20
15
not this .getPackage ( ) instanceof ExcludedPackage
@@ -134,17 +129,13 @@ private class IndirectType extends GeneratedType {
134
129
or
135
130
this = any ( GeneratedType t ) .getSourceDeclaration ( )
136
131
or
137
- exists ( GeneratedType t | this = t .( BoundedType ) .getATypeBound ( ) .getType ( ) )
138
- or
139
132
exists ( GeneratedDeclaration decl |
140
133
decl .( Member ) .getDeclaringType ( ) .getSourceDeclaration ( ) = this
141
134
)
142
135
or
143
136
this .( NestedType ) .getEnclosingType ( ) instanceof GeneratedType
144
137
or
145
138
exists ( NestedType nt | nt instanceof GeneratedType and this = nt .getEnclosingType ( ) )
146
- or
147
- this = any ( GeneratedType a ) .( Array ) .getComponentType ( )
148
139
}
149
140
}
150
141
@@ -156,6 +147,10 @@ private Type getAContainedType(Type t) {
156
147
result = t
157
148
or
158
149
result = getAContainedType ( t .( ParameterizedType ) .getATypeArgument ( ) )
150
+ or
151
+ result = getAContainedType ( t .( Array ) .getElementType ( ) )
152
+ or
153
+ result = getAContainedType ( t .( BoundedType ) .getATypeBound ( ) .getType ( ) )
159
154
}
160
155
161
156
/**
You can’t perform that action at this time.
0 commit comments