Exemplo n.º 1
0
 public JavaClassModel(JavaPackage javaPackage, string javaNestedName, string javaVisibility, bool javaAbstract, bool javaFinal, string javaBaseType, string javaBaseTypeGeneric, string javaDeprecated, bool javaStatic, string jniSignature, string baseTypeJni) :
     base(javaPackage, javaNestedName, javaVisibility, javaAbstract, javaFinal, javaDeprecated, javaStatic, jniSignature)
 {
     BaseType        = javaBaseType;
     BaseTypeGeneric = javaBaseTypeGeneric;
     BaseTypeJni     = baseTypeJni;
 }
Exemplo n.º 2
0
        /// <summary>
        /// Adds a new package with the specified name.  Note if package already exists, existing package will be returned.
        /// </summary>
        public JavaPackage AddPackage(string name, string jniName, string?managedName = null)
        {
            if (packages.TryGetValue(name, out var pkg))
            {
                return(pkg);
            }

            var new_pkg = new JavaPackage(name, jniName, managedName);

            packages.Add(new_pkg.Name, new_pkg);

            return(new_pkg);
        }
Exemplo n.º 3
0
        protected JavaTypeModel(JavaPackage javaPackage, string javaNestedName, string javaVisibility, bool javaAbstract, bool javaFinal, string deprecated, bool javaStatic, string jniSignature)
        {
            Package              = javaPackage;
            NestedName           = javaNestedName.Replace('$', '.');
            Name                 = NestedName.LastSubset('.');
            Visibility           = javaVisibility;
            IsAbstract           = javaAbstract;
            IsFinal              = javaFinal;
            Deprecated           = deprecated;
            IsStatic             = javaStatic;
            ExtendedJniSignature = jniSignature;

            TypeParameters = new JavaTypeParameters(this);
        }
 public JavaInterfaceModel(JavaPackage javaPackage, string javaNestedName, string javaVisibility, string javaDeprecated, bool javaStatic, string jniSignature) :
     base(javaPackage, javaNestedName, javaVisibility, false, false, javaDeprecated, javaStatic, jniSignature)
 {
 }