testmodel-js.super_interface2.js Maven / Gradle / Ivy
/*
* Copyright 2014 Red Hat, Inc.
*
* Red Hat licenses this file to you under the Apache License, version 2.0
* (the "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/
/** @module testmodel-js/super_interface2 */
var utils = require('vertx-js/util/utils');
var io = Packages.io;
var JsonObject = io.vertx.core.json.JsonObject;
var JSuperInterface2 = Java.type('io.vertx.codegen.testmodel.SuperInterface2');
/**
@class
*/
var SuperInterface2 = function(j_val) {
var j_superInterface2 = j_val;
var that = this;
/**
@public
@param b {number}
@param s {number}
@param i {number}
@param l {number}
@param f {number}
@param d {number}
@param bool {boolean}
@param ch {string}
@param str {string}
*/
this.otherSuperMethodWithBasicParams = function(b, s, i, l, f, d, bool, ch, str) {
var __args = arguments;
if (__args.length === 9 && typeof __args[0] ==='number' && typeof __args[1] ==='number' && typeof __args[2] ==='number' && typeof __args[3] ==='number' && typeof __args[4] ==='number' && typeof __args[5] ==='number' && typeof __args[6] ==='boolean' && typeof __args[7] ==='string' && typeof __args[8] === 'string') {
j_superInterface2["otherSuperMethodWithBasicParams(byte,short,int,long,float,double,boolean,char,java.lang.String)"](b, s, i, l, f, d, bool, ch, str);
} else throw new TypeError('function invoked with invalid arguments');
};
// A reference to the underlying Java delegate
// NOTE! This is an internal API and must not be used in user code.
// If you rely on this property your code is likely to break if we change it / remove it without warning.
this._jdel = j_superInterface2;
};
SuperInterface2._jclass = utils.getJavaClass("io.vertx.codegen.testmodel.SuperInterface2");
SuperInterface2._jtype = {accept: function(obj) {
return SuperInterface2._jclass.isInstance(obj._jdel);
},wrap: function(jdel) {
var obj = Object.create(SuperInterface2.prototype, {});
SuperInterface2.apply(obj, arguments);
return obj;
},
unwrap: function(obj) {
return obj._jdel;
}
};
SuperInterface2._create = function(jdel) {var obj = Object.create(SuperInterface2.prototype, {});
SuperInterface2.apply(obj, arguments);
return obj;
}
module.exports = SuperInterface2;
© 2015 - 2025 Weber Informatics LLC | Privacy Policy