Class MethodIntrospector

    • Field Detail

      • JAVAC_METHOD_INTROSPECTOR

        private static final java.lang.String JAVAC_METHOD_INTROSPECTOR
        See Also:
        Constant Field Values
    • Constructor Detail

      • MethodIntrospector

        public MethodIntrospector()
    • Method Detail

      • getOwnMethodInvocations

        public 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.
      • visitAllOwnMethodInvocations

        public 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.

        The visitor is given the method name, and a logger to log warnings or errors to the user at the method invocation site.

      • instance

        public static MethodIntrospector instance​(javax.annotation.processing.ProcessingEnvironment env)
        Returns a MethodIntrospector implementation for the given environment.