nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
contrib/jwrapper: generate top-level getter & setter for static attributes
[nit.git]
/
contrib
/
jwrapper
/
src
/
model.nit
diff --git
a/contrib/jwrapper/src/model.nit
b/contrib/jwrapper/src/model.nit
index
964e5cc
..
3e89d2e
100644
(file)
--- a/
contrib/jwrapper/src/model.nit
+++ b/
contrib/jwrapper/src/model.nit
@@
-148,7
+148,7
@@
class JavaClass
var class_type: JavaType
# Attributes of this class
var class_type: JavaType
# Attributes of this class
- var attributes = new HashMap[String, JavaType]
+ var attributes = new HashMap[String, JavaAttribute]
# Methods of this class organized by their name
var methods = new MultiHashMap[String, JavaMethod]
# Methods of this class organized by their name
var methods = new MultiHashMap[String, JavaMethod]
@@
-244,6
+244,14
@@
class JavaMethod
var params: Array[JavaType]
end
var params: Array[JavaType]
end
+# An attribute in a Java class
+class JavaAttribute
+ super JavaProperty
+
+ # Type of the attribute
+ var java_type: JavaType
+end
+
# A Java method, with its signature
class JavaConstructor
# Type of the parameters of this constructor
# A Java method, with its signature
class JavaConstructor
# Type of the parameters of this constructor