igniteui-angular-core
Version:
Ignite UI Angular Core logic used in multiple UI components.
1,297 lines (1,296 loc) • 42.4 kB
JavaScript
/*
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
https://www.infragistics.com/legal/license/igultimate-la
https://www.infragistics.com/legal/license/igultimate-eula
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
*/
import { Base, fromEnum, markType, typeGetValue, typeCast, Array_$type, Boolean_$type, EnumUtil } from "./type";
import { List$1 } from "./List$1";
import { JsonDictionaryObject } from "./JsonDictionaryObject";
import { JsonDictionaryArray } from "./JsonDictionaryArray";
import { JsonDictionaryValue } from "./JsonDictionaryValue";
import { TypeDescriptionWellKnownType_$type } from "./TypeDescriptionWellKnownType";
import { EmbeddedRefDescription } from "./EmbeddedRefDescription";
import { dateToStringFormat } from "./dateExtended";
import { isInfinity, isPositiveInfinity, isNaN_ } from "./number";
/**
* @hidden
*/
export let ComponentRendererMethodHelperBuilder = /*@__PURE__*/ (() => {
class ComponentRendererMethodHelperBuilder extends Base {
constructor(a, b) {
super();
this.k = null;
this.l = null;
this.i = new List$1(ComponentRendererMethodHelperArgumentBuilder.$, 0);
this.c = null;
this.f = false;
this.k = a;
this.l = b;
}
get methodName() {
return this.k;
}
get targetRef() {
return this.l;
}
getArgumentCount() {
return this.i.count;
}
getArgument(a) {
return this.i._inner[a];
}
hasReturn() {
return this.c != null;
}
getReturn() {
return this.c;
}
get reusable() {
return this.f;
}
set reusable(a) {
this.f = a;
}
destroy() {
for (let a of fromEnum(this.i)) {
a.aw();
}
if (this.c != null) {
this.c.aq();
}
}
argument() {
let a = new ComponentRendererMethodHelperArgumentBuilder(this);
this.i.add(a);
return a;
}
$return() {
let a = new ComponentRendererMethodHelperReturnBuilder(this);
this.c = a;
return a;
}
build() {
let a = new JsonDictionaryObject();
let b = new JsonDictionaryArray();
a.item("args", b);
let c = new Array(this.i.count);
let d = 0;
for (let e of fromEnum(this.i)) {
c[d] = e.aj();
d++;
}
b.items = c;
if (this.l != null) {
a.item("targetRef", ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 2;
$ret.value = this.l;
return $ret;
})()));
}
a.item("methodName", ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 2;
$ret.value = this.k;
return $ret;
})()));
if (this.c == null) {
this.$return().asVoid();
}
a.item("return", this.c.af());
let f = a.b();
if (!this.f) {
this.destroy();
}
return f;
}
}
ComponentRendererMethodHelperBuilder.$t = markType(ComponentRendererMethodHelperBuilder, 'ComponentRendererMethodHelperBuilder');
return ComponentRendererMethodHelperBuilder;
})();
/**
* @hidden
*/
export let ComponentRendererMethodHelperArgumentBuilder = /*@__PURE__*/ (() => {
class ComponentRendererMethodHelperArgumentBuilder extends Base {
constructor(a) {
super();
this.ag = null;
this.am = 0;
this.aq = null;
this.ap = null;
this.ao = null;
this.ai = null;
this.ag = a;
}
destroy() {
if (this.ag != null) {
this.ag.destroy();
}
}
aw() {
this.ag = null;
}
argument() {
return this.ag.argument();
}
$return() {
return this.ag.$return();
}
build() {
return this.ag.build();
}
get an() {
return this.am;
}
get at() {
return this.ap;
}
get au() {
return this.aq;
}
get as() {
return this.ao;
}
get ak() {
return this.ai;
}
asInt(a) {
this.am = 1;
this.aq = null;
this.ap = "int";
this.ai = ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 0;
$ret.value = a;
return $ret;
})());
return this;
}
asIntArray(a) {
this.am = 10;
this.aq = null;
this.ap = "int";
if (a == null) {
this.ai = ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 3;
$ret.value = null;
return $ret;
})());
}
else {
let b = new JsonDictionaryArray();
b.items = new Array(a.length);
for (let c = 0; c < a.length; c++) {
b.items[c] = ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 0;
$ret.value = a[c];
return $ret;
})());
}
this.ai = b;
}
return this;
}
asDouble(a) {
this.am = 1;
this.aq = null;
this.ap = "double";
this.ai = this.al(a);
return this;
}
asPixel(a) {
this.am = 24;
this.aq = null;
this.ap = "double";
this.ai = this.al(a);
return this;
}
asDate(a) {
this.am = 3;
this.aq = null;
this.ap = null;
this.ai = ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 2;
$ret.value = dateToStringFormat(a, "o");
return $ret;
})());
return this;
}
asDateArray(a) {
this.am = 10;
this.aq = null;
this.ap = "DateTime";
if (a == null) {
this.ai = ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 3;
$ret.value = null;
return $ret;
})());
}
else {
let b = new JsonDictionaryArray();
b.items = new Array(a.length);
for (let c = 0; c < a.length; c++) {
b.items[c] = ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 2;
$ret.value = dateToStringFormat(a[c], "o");
return $ret;
})());
}
this.ai = b;
}
return this;
}
asDoubleArray(a) {
this.am = 10;
this.aq = null;
this.ap = "double";
if (a == null) {
this.ai = ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 3;
$ret.value = null;
return $ret;
})());
}
else {
let b = new JsonDictionaryArray();
b.items = new Array(a.length);
for (let c = 0; c < a.length; c++) {
if (isInfinity(a[c])) {
if (isPositiveInfinity(a[c])) {
b.items[c] = ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 2;
$ret.value = "@dbl:INFINITY";
return $ret;
})());
}
else {
b.items[c] = ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 2;
$ret.value = "@dbl:-INFINITY";
return $ret;
})());
}
}
else {
if (isNaN_(a[c])) {
b.items[c] = ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 3;
$ret.value = null;
return $ret;
})());
}
else {
b.items[c] = ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 0;
$ret.value = a[c];
return $ret;
})());
}
}
}
this.ai = b;
}
return this;
}
asShort(a) {
this.am = 1;
this.aq = null;
this.ap = "short";
this.ai = ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 0;
$ret.value = a;
return $ret;
})());
return this;
}
asShortArray(a) {
this.am = 10;
this.aq = null;
this.ap = "short";
if (a == null) {
this.ai = ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 3;
$ret.value = null;
return $ret;
})());
}
else {
let b = new JsonDictionaryArray();
b.items = new Array(a.length);
for (let c = 0; c < a.length; c++) {
b.items[c] = ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 0;
$ret.value = a[c];
return $ret;
})());
}
this.ai = b;
}
return this;
}
asLong(a) {
this.am = 1;
this.aq = null;
this.ap = "long";
this.ai = ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 0;
$ret.value = a;
return $ret;
})());
return this;
}
asLongArray(a) {
this.am = 10;
this.aq = null;
this.ap = "long";
if (a == null) {
this.ai = ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 3;
$ret.value = null;
return $ret;
})());
}
else {
let b = new JsonDictionaryArray();
b.items = new Array(a.length);
for (let c = 0; c < a.length; c++) {
b.items[c] = ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 0;
$ret.value = a[c];
return $ret;
})());
}
this.ai = b;
}
return this;
}
asFloat(a) {
this.am = 1;
this.aq = null;
this.ap = "float";
if (isInfinity(a)) {
if (isPositiveInfinity(a)) {
this.ai = ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 2;
$ret.value = "@flt:INFINITY";
return $ret;
})());
}
else {
this.ai = ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 2;
$ret.value = "@flt:-INFINITY";
return $ret;
})());
}
}
else {
if (isNaN_(a)) {
this.ai = ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 3;
$ret.value = null;
return $ret;
})());
}
else {
this.ai = ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 0;
$ret.value = a;
return $ret;
})());
}
}
return this;
}
asFloatArray(a) {
this.am = 10;
this.aq = null;
this.ap = "float";
if (a == null) {
this.ai = ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 3;
$ret.value = null;
return $ret;
})());
}
else {
let b = new JsonDictionaryArray();
b.items = new Array(a.length);
for (let c = 0; c < a.length; c++) {
if (isInfinity(a[c])) {
if (isPositiveInfinity(a[c])) {
b.items[c] = ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 2;
$ret.value = "@dbl:INFINITY";
return $ret;
})());
}
else {
b.items[c] = ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 2;
$ret.value = "@dbl:-INFINITY";
return $ret;
})());
}
}
else {
if (isNaN_(a[c])) {
b.items[c] = ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 3;
$ret.value = null;
return $ret;
})());
}
else {
b.items[c] = ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 0;
$ret.value = a[c];
return $ret;
})());
}
}
}
this.ai = b;
}
return this;
}
asEnum1(a, b) {
this.am = 8;
this.aq = "string";
this.ap = a.typeName;
if (b == null) {
this.ai = ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 3;
$ret.value = null;
return $ret;
})());
}
else {
this.ai = ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 2;
$ret.value = b.toString();
return $ret;
})());
}
return this;
}
asEnum(a, b) {
this.am = 8;
this.aq = "string";
this.ap = a;
if (b == null) {
this.ai = ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 3;
$ret.value = null;
return $ret;
})());
}
else {
this.ai = ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 2;
$ret.value = b.toString();
return $ret;
})());
}
return this;
}
asString(a) {
this.am = 2;
this.aq = null;
this.ap = "string";
if (a == null) {
this.ai = ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 3;
$ret.value = null;
return $ret;
})());
}
else {
this.ai = ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 2;
$ret.value = a;
return $ret;
})());
}
return this;
}
asStringArray(a) {
this.am = 10;
this.aq = null;
this.ap = "string";
if (a == null) {
this.ai = ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 3;
$ret.value = null;
return $ret;
})());
}
else {
let b = new JsonDictionaryArray();
b.items = new Array(a.length);
for (let c = 0; c < a.length; c++) {
b.items[c] = ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 2;
$ret.value = a[c];
return $ret;
})());
}
this.ai = b;
}
return this;
}
asEmbeddedRefArray(a) {
this.am = 10;
this.aq = null;
this.ap = null;
if (a == null) {
this.ai = ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 3;
$ret.value = null;
return $ret;
})());
}
else {
let b = new JsonDictionaryArray();
b.items = new Array(a.length);
for (let c = 0; c < a.length; c++) {
let d = a[c];
let e = new JsonDictionaryObject();
e.item("refType", ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 2;
$ret.value = d.refType;
return $ret;
})()));
e.item("id", ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 2;
$ret.value = d.value;
return $ret;
})()));
b.items[c] = e;
}
this.ai = b;
}
return this;
}
asPublicTypeRef(a, b) {
this.am = 8;
this.aq = a;
this.ap = a;
if (b == null) {
this.ai = ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 3;
$ret.value = null;
return $ret;
})());
}
else {
let c = new JsonDictionaryObject();
c.item("refType", ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 2;
$ret.value = "name";
return $ret;
})()));
c.item("id", ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 2;
$ret.value = b.value;
return $ret;
})()));
this.ai = c;
}
return this;
}
asEmbeddedRef(a) {
this.am = 8;
this.aq = null;
this.ap = null;
if (a == null) {
this.ai = ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 3;
$ret.value = null;
return $ret;
})());
}
else {
let b = new JsonDictionaryObject();
b.item("refType", ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 2;
$ret.value = a.refType;
return $ret;
})()));
b.item("id", ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 2;
$ret.value = a.value;
return $ret;
})()));
this.ai = b;
}
return this;
}
al(a) {
if (isInfinity(a)) {
if (isPositiveInfinity(a)) {
return ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 2;
$ret.value = "@dbl:INFINITY";
return $ret;
})());
}
else {
return ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 2;
$ret.value = "@dbl:-INFINITY";
return $ret;
})());
}
}
return ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = isNaN_(a) ? 3 : 0;
$ret.value = isNaN_(a) ? null : a;
return $ret;
})());
}
asPoint(a) {
this.am = 11;
this.aq = null;
this.ap = null;
let b = new JsonDictionaryObject();
b.item("x", this.al(a.x));
b.item("y", this.al(a.y));
this.ai = b;
return this;
}
asPixelPoint(a) {
this.am = 25;
this.aq = null;
this.ap = null;
let b = new JsonDictionaryObject();
b.item("x", this.al(a.x));
b.item("y", this.al(a.y));
this.ai = b;
return this;
}
asSize(a) {
this.am = 12;
this.aq = null;
this.ap = null;
let b = new JsonDictionaryObject();
b.item("width", ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 0;
$ret.value = a.width;
return $ret;
})()));
b.item("height", ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 0;
$ret.value = a.height;
return $ret;
})()));
this.ai = b;
return this;
}
asPixelSize(a) {
this.am = 27;
this.aq = null;
this.ap = null;
let b = new JsonDictionaryObject();
b.item("width", ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 0;
$ret.value = a.width;
return $ret;
})()));
b.item("height", ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 0;
$ret.value = a.height;
return $ret;
})()));
this.ai = b;
return this;
}
asRect(a) {
this.am = 14;
this.aq = null;
this.ap = null;
let b = new JsonDictionaryObject();
b.item("left", ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 0;
$ret.value = a.left;
return $ret;
})()));
b.item("top", ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 0;
$ret.value = a.top;
return $ret;
})()));
b.item("width", ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 0;
$ret.value = a.width;
return $ret;
})()));
b.item("height", ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 0;
$ret.value = a.height;
return $ret;
})()));
this.ai = b;
return this;
}
asPixelRect(a) {
this.am = 26;
this.aq = null;
this.ap = null;
let b = new JsonDictionaryObject();
b.item("left", ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 0;
$ret.value = a.left;
return $ret;
})()));
b.item("top", ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 0;
$ret.value = a.top;
return $ret;
})()));
b.item("width", ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 0;
$ret.value = a.width;
return $ret;
})()));
b.item("height", ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 0;
$ret.value = a.height;
return $ret;
})()));
this.ai = b;
return this;
}
asMethodRef(a) {
this.am = 18;
this.aq = null;
this.ap = null;
let b = new JsonDictionaryObject();
b.item("refType", ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 2;
$ret.value = "name";
return $ret;
})()));
b.item("id", ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 2;
$ret.value = a;
return $ret;
})()));
this.ai = b;
return this;
}
asBool(a) {
this.am = 2;
this.aq = null;
this.ap = "boolean";
this.ai = ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 1;
$ret.value = a;
return $ret;
})());
return this;
}
asPrimitive(a) {
if (a == null) {
this.am = 17;
this.aq = null;
this.ap = null;
this.ai = ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 3;
$ret.value = null;
return $ret;
})());
}
if (typeof a === 'number') {
return this.asDouble(a);
}
if (typeof a === 'number') {
return this.asInt(typeGetValue(a));
}
if (typeof a === 'number') {
return this.asLong(typeGetValue(a));
}
if (typeof a === 'number') {
return this.asFloat(a);
}
if (typeof a === 'number') {
return this.asShort(typeGetValue(a));
}
if (typeof a === 'number') {
return this.asDouble(a);
}
if (typeCast(Array_$type, a) !== null) {
if (a.length > 0) {
let b = a[0];
if (typeof b === 'number') {
return this.asDoubleArray(a);
}
}
}
if (typeof a === 'string') {
return this.asString(a);
}
if (typeCast(Array_$type, a) !== null) {
if (a.length > 0) {
let c = a[0];
if (typeof c === 'string') {
return this.asStringArray(a);
}
}
}
if (typeCast(Boolean_$type, a) !== null) {
return this.asBool(a);
}
if (typeCast(EmbeddedRefDescription.$, a) !== null) {
return this.asEmbeddedRef(a);
}
return this.asString(a);
}
asPrimitiveArray(a) {
if (a == null) {
this.am = 17;
this.aq = null;
this.ap = null;
this.ai = ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 3;
$ret.value = null;
return $ret;
})());
}
if (typeCast(Array_$type, a) !== null) {
if (a.length > 0) {
let b = a[0];
if (typeof b === 'number') {
return this.asDoubleArray(a);
}
}
}
if (typeCast(Array_$type, a) !== null) {
if (a.length > 0) {
let c = a[0];
if (typeof c === 'string') {
return this.asStringArray(a);
}
}
}
if (typeCast(Array_$type, a) !== null) {
if (a.length > 0) {
let d = a[0];
if (typeCast(Boolean_$type, d) !== null) {
return this.asBoolArray(a);
}
}
}
if (typeCast(Array_$type, a) !== null) {
if (a.length > 0) {
let e = a[0];
if (typeCast(EmbeddedRefDescription.$, e) !== null) {
return this.asEmbeddedRefArray(a);
}
}
}
return this.asStringArray(a);
}
asBoolArray(a) {
this.am = 10;
this.aq = null;
this.ap = "boolean";
if (a == null) {
this.ai = ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 3;
$ret.value = null;
return $ret;
})());
}
else {
let b = new JsonDictionaryArray();
b.items = new Array(a.length);
for (let c = 0; c < a.length; c++) {
b.items[c] = ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 1;
$ret.value = a[c];
return $ret;
})());
}
this.ai = b;
}
return this;
}
aj() {
let a = new JsonDictionaryObject();
a.item("knownType", ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 2;
$ret.value = EnumUtil.getName(TypeDescriptionWellKnownType_$type, this.am);
return $ret;
})()));
if (this.aq != null) {
a.item("specificType", ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 2;
$ret.value = this.aq;
return $ret;
})()));
}
if (this.ap != null) {
a.item("specificExternalType", ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 2;
$ret.value = this.ap;
return $ret;
})()));
}
if (this.ao != null) {
a.item("collectionElementType", ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 2;
$ret.value = this.ao;
return $ret;
})()));
}
if (this.ai != null) {
a.item("value", this.ai);
}
else {
a.item("value", ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 3;
return $ret;
})()));
}
return a;
}
}
ComponentRendererMethodHelperArgumentBuilder.$t = markType(ComponentRendererMethodHelperArgumentBuilder, 'ComponentRendererMethodHelperArgumentBuilder');
return ComponentRendererMethodHelperArgumentBuilder;
})();
/**
* @hidden
*/
export let ComponentRendererMethodHelperReturnBuilder = /*@__PURE__*/ (() => {
class ComponentRendererMethodHelperReturnBuilder extends Base {
constructor(a) {
super();
this.b = null;
this.ag = 0;
this.ak = null;
this.aj = null;
this.ai = null;
this.b = a;
}
destroy() {
if (this.b != null) {
this.b.destroy();
}
}
aq() {
this.b = null;
}
argument() {
return this.b.argument();
}
$return() {
return this.b.$return();
}
build() {
let a = this.b.build();
return a;
}
get ah() {
return this.ag;
}
get an() {
return this.aj;
}
get ao() {
return this.ak;
}
get am() {
return this.ai;
}
asInt() {
this.ag = 1;
this.ak = null;
this.aj = "int";
return this;
}
asPrimitive() {
this.ag = 17;
this.ak = null;
this.aj = null;
return this;
}
asIntArray() {
this.ag = 10;
this.ak = null;
this.aj = "int";
return this;
}
asDouble() {
this.ag = 1;
this.ak = null;
this.aj = "double";
return this;
}
asPixel() {
this.ag = 24;
this.ak = null;
this.aj = "double";
return this;
}
asDoubleArray() {
this.ag = 10;
this.ak = null;
this.aj = "double";
return this;
}
asDate() {
this.ag = 3;
this.ak = null;
this.aj = null;
return this;
}
asShort() {
this.ag = 1;
this.ak = null;
this.aj = "short";
return this;
}
asShortArray() {
this.ag = 10;
this.ak = null;
this.aj = "short";
return this;
}
asLong() {
this.ag = 1;
this.ak = null;
this.aj = "long";
return this;
}
asLongArray() {
this.ag = 10;
this.ak = null;
this.aj = "long";
return this;
}
asPrimitiveArray() {
this.ag = 10;
this.ak = null;
this.aj = null;
return this;
}
asPublicTypeRefArray(a) {
this.ag = 10;
this.ak = null;
this.aj = a;
return this;
}
asFloat() {
this.ag = 1;
this.ak = null;
this.aj = "float";
return this;
}
asFloatArray() {
this.ag = 10;
this.ak = null;
this.aj = "float";
return this;
}
asEnum(a) {
this.ag = 8;
this.ak = a.typeName;
this.aj = "string";
return this;
}
asString() {
this.ag = 2;
this.ak = null;
this.aj = "string";
return this;
}
asStringArray() {
this.ag = 10;
this.ak = null;
this.aj = "string";
return this;
}
asPublicTypeRef(a) {
this.ag = 8;
this.ak = a;
this.aj = a;
let b = new JsonDictionaryObject();
b.item("refType", ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 2;
$ret.value = "name";
return $ret;
})()));
b.item("id", ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 2;
$ret.value = "name";
return $ret;
})()));
return this;
}
asPoint() {
this.ag = 11;
this.ak = null;
this.aj = null;
return this;
}
asPixelPoint() {
this.ag = 25;
this.ak = null;
this.aj = null;
return this;
}
asPIxelSize() {
this.ag = 27;
this.ak = null;
this.aj = null;
return this;
}
asSize() {
this.ag = 12;
this.ak = null;
this.aj = null;
return this;
}
asPixelRect() {
this.ag = 26;
this.ak = null;
this.aj = null;
return this;
}
asRect() {
this.ag = 14;
this.ak = null;
this.aj = null;
return this;
}
asMethodRef() {
this.ag = 18;
this.ak = null;
this.aj = null;
return this;
}
asBool() {
this.ag = 7;
this.ak = null;
this.aj = "boolean";
return this;
}
af() {
let a = new JsonDictionaryObject();
a.item("knownType", ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 2;
$ret.value = EnumUtil.getName(TypeDescriptionWellKnownType_$type, this.ag);
return $ret;
})()));
if (this.ak != null) {
a.item("specificType", ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 2;
$ret.value = this.ak;
return $ret;
})()));
}
if (this.aj != null) {
a.item("specificExternalType", ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 2;
$ret.value = this.aj;
return $ret;
})()));
}
if (this.ai != null) {
a.item("collectionElementType", ((() => {
let $ret = new JsonDictionaryValue();
$ret.e = 2;
$ret.value = this.ai;
return $ret;
})()));
}
return a;
}
asVoid() {
this.ag = 0;
this.ak = null;
this.aj = null;
return this;
}
}
ComponentRendererMethodHelperReturnBuilder.$t = markType(ComponentRendererMethodHelperReturnBuilder, 'ComponentRendererMethodHelperReturnBuilder');
return ComponentRendererMethodHelperReturnBuilder;
})();