Class JSPUtils


  • public class JSPUtils
    extends Object
    Utilities for JSP classes.
    • Method Detail

      • isJspClass

        public static boolean isJspClass​(String jspSuffix,
                                         List<String> jspPackages,
                                         String loadedClassName)
        Is this class a jsp class.
        Parameters:
        jspSuffix - the jsp suffix
        jspPackages - the jsp packages
        loadedClassName - the clas name to check
        Returns:
        true if this is a jsp class
      • getSourceMap

        public static SourceMap getSourceMap​(Class<?> clazz)
        Load a source map for the given class.
        Parameters:
        clazz - the class
        Returns:
        the source map or null
      • getSourceMap

        public static SourceMap getSourceMap​(byte[] classfileBuffer)
        Load the source map for this class file.
        Parameters:
        classfileBuffer - the class file as bytes
        Returns:
        the loaded source map, or null
      • loadJSPTracepoints

        public static Set<TracePointConfig> loadJSPTracepoints​(Class<?> loadedClass,
                                                               Map<String,​TracePointConfig> jsp)
        Load the tracepoints for this class.
        Parameters:
        loadedClass - the class to check
        jsp - the tracepoints
        Returns:
        the matches tracepoints
      • loadJSPTracepoints

        public static Set<TracePointConfig> loadJSPTracepoints​(SourceMap sourceMap,
                                                               Map<String,​TracePointConfig> jsp)
        Load jsp tracepoints using source map.
        Parameters:
        sourceMap - the source map
        jsp - the tracepoints
        Returns:
        the matches tracepoints