Class: Tracetool::Android::JavaTraceParser

Inherits:
BaseTraceParser show all
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

#call_pattern, #entry_pattern

Instance Method Summary collapse

Methods inherited from BaseTraceParser

#parse

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