-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
29 lines (16 loc) · 654 Bytes
/
README
File metadata and controls
29 lines (16 loc) · 654 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Query API
Defines a Structure for Querying for class metadata
Query Impl - Reflection
A Query API impl using the Java Reflection API.
Example:
Collection<Method> result = Query.forMethod()
.withAnnotation(MyAnnotation.class)
.withType(MyReturnType.class)
.run(MyClass.class);
Query Impl - Javassist
A Query API impl using the Javassist API. For use with classes outside a ClassLoader.
Example:
Collection<CtMethod> result = Query.forMethod()
.withAnnotation("org.my.MyAnnotation")
.withType("org.my.MyReturnType")
.run("org.my.MyClass");