codemodels-java 0.2.1-java → 0.2.2-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/codemodels/java/metamodel.rb +1 -1
- data/lib/codemodels/java/parser.rb +4 -4
- data/lib/codemodels/java/version.rb +6 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31a15ac6915f4606228bd5c71b16db52a8c76e2d
|
4
|
+
data.tar.gz: abba91768adbb3ffec11bbcb4c12df97558ca11e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26852d2660ab842a16059597999b7f5aebbfd916196e92dee8e6735ffc8ceb2172a30595b9b8894b3ef41ef3a9daefd2ebed1ffb387f2690a685b786332feba9
|
7
|
+
data.tar.gz: bef037187cf2af190dc465b9420dde9b87ba5f3a22ccf2fc1704b4d941b9e07a15dcdde1c78d8cf12d535a6296affd45776724ae8c86ae1266ce774999164584
|
@@ -35,7 +35,7 @@ module Java
|
|
35
35
|
c = Class.new(super_class)
|
36
36
|
raise "Already mapped! #{ast_name}" if MappedAstClasses[java_class]
|
37
37
|
MappedAstClasses[java_class] = c
|
38
|
-
Java.const_set CodeModels::
|
38
|
+
Java.const_set CodeModels::JavaParserWrapper::Utils.simple_java_class_name(ast_class), c
|
39
39
|
end
|
40
40
|
|
41
41
|
# then add all the properties and attributes
|
@@ -4,13 +4,13 @@ require 'codemodels/javaparserwrapper'
|
|
4
4
|
module CodeModels
|
5
5
|
module Java
|
6
6
|
|
7
|
-
class Parser < CodeModels::
|
7
|
+
class Parser < CodeModels::JavaParserWrapper::ParserJavaWrapper
|
8
8
|
|
9
|
-
class MyBasicTransformationFactory < CodeModels::
|
9
|
+
class MyBasicTransformationFactory < CodeModels::JavaParserWrapper::BasicTransformationFactory
|
10
10
|
|
11
11
|
def get_corresponding_class(node)
|
12
12
|
node_class = node.class
|
13
|
-
name = CodeModels::
|
13
|
+
name = CodeModels::JavaParserWrapper::Utils.simple_java_class_name(node_class)
|
14
14
|
name = "#{(node.operator.name).proper_capitalize}BinaryExpr" if name=='BinaryExpr'
|
15
15
|
if node.class.to_s=='Java::JapaParserAstBody::MethodDeclaration'
|
16
16
|
if node.parent.class.to_s=='Java::JapaParserAstExpr::ObjectCreationExpr'
|
@@ -87,7 +87,7 @@ class Parser < CodeModels::Javaparserwrapper::ParserJavaWrapper
|
|
87
87
|
|
88
88
|
def get_corresponding_metaclass(node)
|
89
89
|
node_class = node.class
|
90
|
-
name = CodeModels::
|
90
|
+
name = CodeModels::JavaParserWrapper::Utils.simple_java_class_name(node_class)
|
91
91
|
name = "#{(node.operator.name).proper_capitalize}BinaryExpr" if name=='BinaryExpr'
|
92
92
|
if node.class.to_s=='Java::JapaParserAstBody::MethodDeclaration'
|
93
93
|
if node.parent.class.to_s=='Java::JapaParserAstExpr::ObjectCreationExpr'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: codemodels-java
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Federico Tomassetti
|
@@ -127,6 +127,7 @@ files:
|
|
127
127
|
- lib/codemodels/java/metamodel.rb
|
128
128
|
- lib/codemodels/java/model_building.rb
|
129
129
|
- lib/codemodels/java/parser.rb
|
130
|
+
- lib/codemodels/java/version.rb
|
130
131
|
- lib/jars/javaparser-1.0.8.jar
|
131
132
|
- test/data/ActionButtonsColumnTag.java
|
132
133
|
- test/data/AuthConstraint.java
|