Lines 241-249
Link Here
|
241 |
|
241 |
|
242 |
protected boolean accept(String className) { |
242 |
protected boolean accept(String className) { |
243 |
// avoid ResolvedType if not needed |
243 |
// avoid ResolvedType if not needed |
244 |
if (m_excludeTypePattern.isEmpty() && m_includeTypePattern.isEmpty()) { |
244 |
if (m_includeTypePattern.isEmpty()) { |
245 |
return true; |
245 |
return false; |
246 |
} |
246 |
} |
|
|
247 |
|
247 |
//TODO AV - optimize for className.startWith only |
248 |
//TODO AV - optimize for className.startWith only |
248 |
ResolvedTypeX classInfo = weaver.getWorld().getCoreType(TypeX.forName(className)); |
249 |
ResolvedTypeX classInfo = weaver.getWorld().getCoreType(TypeX.forName(className)); |
249 |
//exclude |
250 |
//exclude |
Lines 256-267
Link Here
|
256 |
} |
257 |
} |
257 |
for (Iterator iterator = m_includeTypePattern.iterator(); iterator.hasNext();) { |
258 |
for (Iterator iterator = m_includeTypePattern.iterator(); iterator.hasNext();) { |
258 |
TypePattern typePattern = (TypePattern) iterator.next(); |
259 |
TypePattern typePattern = (TypePattern) iterator.next(); |
259 |
if (!typePattern.matchesStatically(classInfo)) { |
260 |
if (typePattern.matchesStatically(classInfo)) { |
260 |
// include does not match - skip |
261 |
return true; // should match if ANY includes match |
261 |
return false; |
|
|
262 |
} |
262 |
} |
263 |
} |
263 |
} |
264 |
return true; |
264 |
return false; |
265 |
} |
265 |
} |
266 |
|
266 |
|
267 |
private boolean acceptAspect(String aspectClassName) { |
267 |
private boolean acceptAspect(String aspectClassName) { |