javaparse 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/javaparse/java_method.rb +20 -0
  2. metadata +4 -3
@@ -0,0 +1,20 @@
1
+ module JavaParse
2
+
3
+ class JavaMethod
4
+
5
+ attr_reader :name, :signature, :clazz, :lines
6
+
7
+ def initialize(clazz, signature, lines_count)
8
+ @clazz = clazz
9
+ @signature = signature.delete('{').strip
10
+ @name = @signature.match(/.*\s(.*)\(.*\)/)[1]
11
+ @lines = lines_count
12
+ end
13
+
14
+ def to_s
15
+ "#{self.class}, signature=#{signature}, name=#{name}, class=#{clazz}, lines=#{lines}"
16
+ end
17
+
18
+ end
19
+
20
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: javaparse
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -17,12 +17,13 @@ executables: []
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
- - lib/javaparse.rb
20
+ - lib/javaparse/java_files.rb
21
+ - lib/javaparse/java_method.rb
21
22
  - lib/javaparse/java_section.rb
22
23
  - lib/javaparse/java_unit.rb
23
- - lib/javaparse/java_files.rb
24
24
  - lib/javaparse/line_counter.rb
25
25
  - lib/javaparse/method_graber.rb
26
+ - lib/javaparse.rb
26
27
  homepage:
27
28
  licenses: []
28
29
  post_install_message: