public abstract class MethodIntrospector
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
MethodIntrospector.OwnMethodInvocationVisitor |
| Constructor and Description |
|---|
MethodIntrospector() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.util.Set<javax.lang.model.element.Name> |
getOwnMethodInvocations(javax.lang.model.element.ExecutableElement method)
Returns a set of methods which are definitely invoked on
this in the given method,
or the empty set if method introspection is not supported on this compiler. |
static MethodIntrospector |
instance(javax.annotation.processing.ProcessingEnvironment env)
Returns a
MethodIntrospector implementation for the given environment. |
abstract void |
visitAllOwnMethodInvocations(javax.lang.model.element.ExecutableElement method,
MethodIntrospector.OwnMethodInvocationVisitor visitor)
Calls
visitor with every method invoked on this in the given method, if
method introspection is supported on this compiler. |
public abstract java.util.Set<javax.lang.model.element.Name> getOwnMethodInvocations(javax.lang.model.element.ExecutableElement method)
this in the given method,
or the empty set if method introspection is not supported on this compiler.public abstract void visitAllOwnMethodInvocations(javax.lang.model.element.ExecutableElement method,
MethodIntrospector.OwnMethodInvocationVisitor visitor)
visitor with every method invoked on this in the given method, if
method introspection is supported on this compiler.
The visitor is given the method name, and a logger to log warnings or errors to the user at the method invocation site.
public static MethodIntrospector instance(javax.annotation.processing.ProcessingEnvironment env)
MethodIntrospector implementation for the given environment.