public class JavacMethodIntrospector extends MethodIntrospector
MethodIntrospector for javac.MethodIntrospector.OwnMethodInvocationVisitor| Modifier and Type | Method and Description |
|---|---|
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 javac environment. |
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 static MethodIntrospector instance(javax.annotation.processing.ProcessingEnvironment env)
MethodIntrospector implementation for the given javac environment.java.lang.IllegalArgumentException - if the environment is not from javacpublic java.util.Set<javax.lang.model.element.Name> getOwnMethodInvocations(javax.lang.model.element.ExecutableElement method)
MethodIntrospectorthis in the given method,
or the empty set if method introspection is not supported on this compiler.getOwnMethodInvocations in class MethodIntrospectorpublic void visitAllOwnMethodInvocations(javax.lang.model.element.ExecutableElement method,
MethodIntrospector.OwnMethodInvocationVisitor visitor)
MethodIntrospectorvisitor 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.
visitAllOwnMethodInvocations in class MethodIntrospector