net.java.html.lib.ArrayLike Maven / Gradle / Ivy
package net.java.html.lib;
public class ArrayLike extends net.java.html.lib.Objs {
private final Class> type_T;
protected ArrayLike(net.java.html.lib.Objs.Constructor> c, java.lang.Object js) {
super(c, js);
this.type_T = java.lang.Object.class;
}
protected ArrayLike(net.java.html.lib.Objs.Constructor> c, java.lang.Object js, java.lang.reflect.Type type_T) {
super(c, js);
this.type_T = (Class>)type_T;
}
private static final class $Constructor extends net.java.html.lib.Objs.Constructor {
$Constructor() {
super(ArrayLike.class);
}
@Override
public ArrayLike create(java.lang.Object obj) {
return obj == null ? null : new ArrayLike(this, obj);
}
@Override
public ArrayLike create(java.lang.Object obj, java.lang.reflect.Type... typeParameters) {
return obj == null ? null : new ArrayLike(this, obj, findType(typeParameters, 0));
}
private static java.lang.reflect.Type findType(java.lang.reflect.Type[] arr, int index) {
return arr == null || arr.length <= index || arr[index] == null ? java.lang.Object.class : arr[index];
}
};
private static final $Constructor $AS = new $Constructor();
public static ArrayLike $as(java.lang.Object obj) {
return $AS.create(obj);
}
public static ArrayLike $as(java.lang.Object obj, java.lang.reflect.Type... typeParameters) {
return $AS.create(obj, typeParameters);
}
public net.java.html.lib.Objs.Property length = net.java.html.lib.Objs.Property.create(this, java.lang.Number.class, "length");
public java.lang.Number length() { return length.get(); }
public T $get(double n) {
return (T)net.java.html.lib.Objs.$as(type_T, $Typings$.$get$18($js(this), n));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy