public class ReferenceListener extends Object
Reference annotations.| Constructor and Description |
|---|
ReferenceListener() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addReference(Class<?> clz)
Register the any
Reference or References from the given
class. |
static void |
addReference(Class<?> clz,
String methodName,
String signature)
Register the any
Reference or References from the given
method. |
static void |
addReference(Reference r)
Register the given
Reference |
static void |
addReferences(Collection<Reference> refs)
Register the given
References |
static Set<Reference> |
getReferences()
Get a copy of the references collected by the listener
|
static Set<Reference> |
reset()
Reset the references held by the listener, returning the current set of
references.
|
public ReferenceListener()
public static void addReference(Reference r)
Referencer - the Referencepublic static void addReference(Class<?> clz)
Reference or References from the given
class.clz - the classpublic static void addReference(Class<?> clz, String methodName, String signature)
Reference or References from the given
method.clz - the classmethodName - signature - public static Set<Reference> reset()
public static Set<Reference> getReferences()
public static void addReferences(Collection<Reference> refs)
Referencesrefs - the References