Class MethodIntrospector
java.lang.Object
org.inferred.freebuilder.processor.model.MethodIntrospector
- Direct Known Subclasses:
JavacMethodIntrospector,MethodIntrospector.NoMethodIntrospector
Compiler-specific methods for introspecting methods during compilation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classLoadsJavacMethodIntrospectorusing types taken from both the environment class loader (for com.sun types, if available) and the processor class loader (for org.inferred types).private static classstatic interface -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a set of methods which are definitely invoked onthisin the given method, or the empty set if method introspection is not supported on this compiler.static MethodIntrospectorReturns aMethodIntrospectorimplementation for the given environment.abstract voidvisitAllOwnMethodInvocations(ExecutableElement method, MethodIntrospector.OwnMethodInvocationVisitor visitor) Callsvisitorwith every method invoked onthisin the given method, if method introspection is supported on this compiler.
-
Field Details
-
JAVAC_METHOD_INTROSPECTOR
- See Also:
-
-
Constructor Details
-
MethodIntrospector
public MethodIntrospector()
-
-
Method Details
-
getOwnMethodInvocations
Returns a set of methods which are definitely invoked onthisin the given method, or the empty set if method introspection is not supported on this compiler. -
visitAllOwnMethodInvocations
public abstract void visitAllOwnMethodInvocations(ExecutableElement method, MethodIntrospector.OwnMethodInvocationVisitor visitor) Callsvisitorwith every method invoked onthisin 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
Returns aMethodIntrospectorimplementation for the given environment.
-