Package org.checkerframework.javacutil
Class InternalUtils
java.lang.Object
org.checkerframework.javacutil.InternalUtils
Miscellaneous static utility methods.
- 
Method Summary
Modifier and TypeMethodDescriptionstatic intcompareDiagnosticPosition(Tree tree1, Tree tree2) Compares tree1 to tree2 by the position at which a diagnostic (e.g., an error message) for the tree should be printed.static @Nullable ClassLoadergetClassLoaderForClass(Class<? extends Object> clazz) Obtain the class loader forclazz.static com.sun.tools.javac.util.ContextHelper function to extract the javac Context from the javac processing environment. 
- 
Method Details
- 
getJavacContext
Helper function to extract the javac Context from the javac processing environment.- Parameters:
 env- the processing environment- Returns:
 - the javac Context
 
 - 
getClassLoaderForClass
Obtain the class loader forclazz. If that is not available, return the system class loader.- Parameters:
 clazz- the class whose class loader to find- Returns:
 - the class loader used to 
clazz, or the system class loader, or null if both are unavailable 
 - 
compareDiagnosticPosition
Compares tree1 to tree2 by the position at which a diagnostic (e.g., an error message) for the tree should be printed. 
 -