Class: Tracetool::Android::JavaTraceParser
- Inherits:
-
BaseTraceParser
- Object
- BaseTraceParser
- Tracetool::Android::JavaTraceParser
- Defined in:
- lib/tracetool/android/java.rb
Overview
Parses java stack traces
Constant Summary collapse
- STACK_ENTRY_PATTERN =
Describes java stack entry
/^(\s+at (?<call_description>.+))|((?<error>.+?): (?<message>.+))$/.freeze
- CALL_PATTERN =
Describes java method call
/(?<class>.+)\.(?<method>[^\(]+)\((((?<file>.+\.java):(?<line>\d+))|(?<location>.+))\)$/.freeze
Instance Attribute Summary
Attributes inherited from BaseTraceParser
Instance Method Summary collapse
-
#initialize(files) ⇒ JavaTraceParser
constructor
A new instance of JavaTraceParser.
Methods inherited from BaseTraceParser
Constructor Details
#initialize(files) ⇒ JavaTraceParser
Returns a new instance of JavaTraceParser.
12 13 14 |
# File 'lib/tracetool/android/java.rb', line 12 def initialize(files) super(STACK_ENTRY_PATTERN, CALL_PATTERN, files, true) end |