Class RegexpStackTraceElementAnalyzer
- java.lang.Object
-
- org.apache.tapestry5.internal.services.RegexpStackTraceElementAnalyzer
-
- All Implemented Interfaces:
StackTraceElementAnalyzer
public class RegexpStackTraceElementAnalyzer extends java.lang.Object implements StackTraceElementAnalyzer
Uses a regular expression to identify which CSS class to apply to a frame. The frame'stoString()
is used. UsesMatcher.find()
to search for a subsequence of the frame's description.- Since:
- 5.3
-
-
Constructor Summary
Constructors Constructor Description RegexpStackTraceElementAnalyzer(java.util.regex.Pattern pattern, java.lang.String cssClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
classForFrame(java.lang.StackTraceElement frame)
Returns the CSS class appropriate to the frame.
-
-
-
Constructor Detail
-
RegexpStackTraceElementAnalyzer
public RegexpStackTraceElementAnalyzer(java.util.regex.Pattern pattern, java.lang.String cssClass)
-
-
Method Detail
-
classForFrame
public java.lang.String classForFrame(java.lang.StackTraceElement frame)
Description copied from interface:StackTraceElementAnalyzer
Returns the CSS class appropriate to the frame.- Specified by:
classForFrame
in interfaceStackTraceElementAnalyzer
- Parameters:
frame
- stack trace element to be analyzed- Returns:
- the CSS class name, or null
-
-