Lines Matching refs:package
79 package %s;
92 def ToJNIPackage(package, jclassname):
93 return "%s_%s" % (package.replace(".", "_"), jclassname)
107 def __init__(self, name, structname, jclassname, package, ctype, jtype, defval):
111 self.package = package
142 % (self.jtype, ToJNIPackage(self.package, self.jclassname), ToJavaName(self.name, 0))
149 "}\n" % (self.jtype, ToJNIPackage(self.package, self.jclassname), ToJavaName(self.name, 0),\
155 % (ToJNIPackage(self.package, self.jclassname), ToJavaName(self.name, 0), self.jtype)
166 "}\n" % (ToJNIPackage(self.package, self.jclassname), ToJavaName(self.name, 0),\
170 def __init__(self, name, structname, jclassname, package):
171 FieldType_BasePOD.__init__(self, name, structname, jclassname, package, "float", "jfloat", "0.0")
174 def __init__(self, name, structname, jclassname, package):
175 FieldType_BasePOD.__init__(self, name, structname, jclassname, package, "int", "jint", "0")
182 self.package = None
208 elif cmd == "@package":
210 self.package = linecomps[1]
224 fieldtype = FieldType_Int(linecomps[2], self.structname, self.jclassname, self.package)
226 fieldtype = FieldType_Float(linecomps[2], self.structname, self.jclassname, self.package)
238 elif not self.package:
239 raise ParseError(lineno, "Required field '@package' missing!")
307 defname = ToMacroDefName(self.structname, self.package)
311 return javaFileTemplate % (self.package, self.javaClassString())
319 ToJNIPackage(self.package, self.jclassname),\
321 ToJNIPackage(self.package, self.jclassname),\
339 javapackagepath = structspec.package.replace('.','/')