@icecreamcake/autojs6-dts
Version:
TypeScript Declarations for AutoJs6
1,146 lines (1,106 loc) • 93.1 kB
TypeScript
declare module com {
export module google {
export module gson {
export class ExclusionStrategy extends java.lang.Object {
public static class: java.lang.Class<com.google.gson.ExclusionStrategy>;
/**
* Constructs a new instance of the com.google.gson.ExclusionStrategy interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
shouldSkipField(param0: com.google.gson.FieldAttributes): boolean;
shouldSkipClass(param0: java.lang.Class<any>): boolean;
});
public constructor();
public shouldSkipField(param0: com.google.gson.FieldAttributes): boolean;
public shouldSkipClass(param0: java.lang.Class<any>): boolean;
}
}
}
}
declare module com {
export module google {
export module gson {
export class FieldAttributes extends java.lang.Object {
public static class: java.lang.Class<com.google.gson.FieldAttributes>;
public getAnnotation(annotation: java.lang.Class<any>): java.lang.annotation.Annotation;
public getDeclaredClass(): java.lang.Class<any>;
public getDeclaredType(): java.lang.reflect.Type;
public getName(): string;
public toString(): string;
public getAnnotations(): java.util.Collection<java.lang.annotation.Annotation>;
public hasModifier(modifier: number): boolean;
public constructor(f: java.lang.reflect.Field);
public getDeclaringClass(): java.lang.Class<any>;
}
}
}
}
declare module com {
export module google {
export module gson {
export abstract class FieldNamingPolicy extends com.google.gson.FieldNamingStrategy {
public static class: java.lang.Class<com.google.gson.FieldNamingPolicy>;
public static IDENTITY: com.google.gson.FieldNamingPolicy;
public static UPPER_CAMEL_CASE: com.google.gson.FieldNamingPolicy;
public static UPPER_CAMEL_CASE_WITH_SPACES: com.google.gson.FieldNamingPolicy;
public static UPPER_CASE_WITH_UNDERSCORES: com.google.gson.FieldNamingPolicy;
public static LOWER_CASE_WITH_UNDERSCORES: com.google.gson.FieldNamingPolicy;
public static LOWER_CASE_WITH_DASHES: com.google.gson.FieldNamingPolicy;
public static LOWER_CASE_WITH_DOTS: com.google.gson.FieldNamingPolicy;
public static valueOf(enumType: java.lang.Class<any>, name: string): java.lang.Enum<any>;
public translateName(param0: java.lang.reflect.Field): string;
public static values(): com.google.gson.FieldNamingPolicy[];
public static valueOf(name: string): com.google.gson.FieldNamingPolicy;
}
}
}
}
declare module com {
export module google {
export module gson {
export class FieldNamingStrategy extends java.lang.Object {
public static class: java.lang.Class<com.google.gson.FieldNamingStrategy>;
/**
* Constructs a new instance of the com.google.gson.FieldNamingStrategy interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
translateName(param0: java.lang.reflect.Field): string;
});
public constructor();
public translateName(param0: java.lang.reflect.Field): string;
}
}
}
}
declare module com {
export module google {
export module gson {
export class Gson extends java.lang.Object {
public static class: java.lang.Class<com.google.gson.Gson>;
public toJson(jsonElement: com.google.gson.JsonElement, writer: com.google.gson.stream.JsonWriter): void;
public fromJson(json: string, typeOfT: java.lang.reflect.Type): any;
public fromJson(json: java.io.Reader, classOfT: java.lang.Class<any>): any;
public serializeNulls(): boolean;
public fromJson(json: string, classOfT: java.lang.Class<any>): any;
public fromJson(json: com.google.gson.JsonElement, typeOfT: com.google.gson.reflect.TypeToken<any>): any;
public htmlSafe(): boolean;
public constructor();
public fieldNamingStrategy(): com.google.gson.FieldNamingStrategy;
public toJson(jsonElement: com.google.gson.JsonElement): string;
public fromJson(json: java.io.Reader, typeOfT: com.google.gson.reflect.TypeToken<any>): any;
public getAdapter(type: com.google.gson.reflect.TypeToken<any>): com.google.gson.TypeAdapter<any>;
public toJsonTree(src: any, typeOfSrc: java.lang.reflect.Type): com.google.gson.JsonElement;
/** @deprecated */
public excluder(): com.google.gson.internal.Excluder;
public toJson(src: any, typeOfSrc: java.lang.reflect.Type, writer: java.lang.Appendable): void;
public newBuilder(): com.google.gson.GsonBuilder;
public toJson(src: any, writer: java.lang.Appendable): void;
public newJsonWriter(writer: java.io.Writer): com.google.gson.stream.JsonWriter;
public fromJson(json: string, typeOfT: com.google.gson.reflect.TypeToken<any>): any;
public getDelegateAdapter(skipPast: com.google.gson.TypeAdapterFactory, type: com.google.gson.reflect.TypeToken<any>): com.google.gson.TypeAdapter<any>;
public newJsonReader(reader: java.io.Reader): com.google.gson.stream.JsonReader;
public fromJson(reader: com.google.gson.stream.JsonReader, typeOfT: com.google.gson.reflect.TypeToken<any>): any;
public toString(): string;
public toJson(src: any): string;
public fromJson(reader: com.google.gson.stream.JsonReader, typeOfT: java.lang.reflect.Type): any;
public toJsonTree(src: any): com.google.gson.JsonElement;
public toJson(src: any, typeOfSrc: java.lang.reflect.Type, writer: com.google.gson.stream.JsonWriter): void;
public getAdapter(type: java.lang.Class<any>): com.google.gson.TypeAdapter<any>;
public toJson(src: any, typeOfSrc: java.lang.reflect.Type): string;
public toJson(jsonElement: com.google.gson.JsonElement, writer: java.lang.Appendable): void;
public fromJson(json: com.google.gson.JsonElement, classOfT: java.lang.Class<any>): any;
public fromJson(json: com.google.gson.JsonElement, typeOfT: java.lang.reflect.Type): any;
public fromJson(json: java.io.Reader, typeOfT: java.lang.reflect.Type): any;
}
export module Gson {
export class FutureTypeAdapter<T> extends com.google.gson.internal.bind.SerializationDelegatingTypeAdapter<any> {
public static class: java.lang.Class<com.google.gson.Gson.FutureTypeAdapter<any>>;
public write(param0: com.google.gson.stream.JsonWriter, param1: any): void;
public getSerializationDelegate(): com.google.gson.TypeAdapter<any>;
public write(out: com.google.gson.stream.JsonWriter, value: any): void;
public setDelegate(typeAdapter: com.google.gson.TypeAdapter<any>): void;
public read(_in_: com.google.gson.stream.JsonReader): any;
public read(param0: com.google.gson.stream.JsonReader): any;
}
}
}
}
}
declare module com {
export module google {
export module gson {
export class GsonBuilder extends java.lang.Object {
public static class: java.lang.Class<com.google.gson.GsonBuilder>;
public setPrettyPrinting(): com.google.gson.GsonBuilder;
public setNumberToNumberStrategy(numberToNumberStrategy: com.google.gson.ToNumberStrategy): com.google.gson.GsonBuilder;
public disableJdkUnsafe(): com.google.gson.GsonBuilder;
public setFieldNamingStrategy(fieldNamingStrategy: com.google.gson.FieldNamingStrategy): com.google.gson.GsonBuilder;
public setLenient(): com.google.gson.GsonBuilder;
public addReflectionAccessFilter(filter: com.google.gson.ReflectionAccessFilter): com.google.gson.GsonBuilder;
public constructor();
public addDeserializationExclusionStrategy(strategy: com.google.gson.ExclusionStrategy): com.google.gson.GsonBuilder;
public setExclusionStrategies(...strategies: com.google.gson.ExclusionStrategy[]): com.google.gson.GsonBuilder;
public generateNonExecutableJson(): com.google.gson.GsonBuilder;
public excludeFieldsWithoutExposeAnnotation(): com.google.gson.GsonBuilder;
public setDateFormat(style: number): com.google.gson.GsonBuilder;
public setDateFormat(pattern: string): com.google.gson.GsonBuilder;
public registerTypeAdapterFactory(factory: com.google.gson.TypeAdapterFactory): com.google.gson.GsonBuilder;
public registerTypeHierarchyAdapter(baseType: java.lang.Class<any>, typeAdapter: any): com.google.gson.GsonBuilder;
public setVersion(version: number): com.google.gson.GsonBuilder;
public serializeNulls(): com.google.gson.GsonBuilder;
public serializeSpecialFloatingPointValues(): com.google.gson.GsonBuilder;
public excludeFieldsWithModifiers(...modifiers: number[]): com.google.gson.GsonBuilder;
public setDateFormat(dateStyle: number, timeStyle: number): com.google.gson.GsonBuilder;
public registerTypeAdapter(type: java.lang.reflect.Type, typeAdapter: any): com.google.gson.GsonBuilder;
public setObjectToNumberStrategy(objectToNumberStrategy: com.google.gson.ToNumberStrategy): com.google.gson.GsonBuilder;
public enableComplexMapKeySerialization(): com.google.gson.GsonBuilder;
public create(): com.google.gson.Gson;
public setFieldNamingPolicy(namingConvention: com.google.gson.FieldNamingPolicy): com.google.gson.GsonBuilder;
public disableInnerClassSerialization(): com.google.gson.GsonBuilder;
public disableHtmlEscaping(): com.google.gson.GsonBuilder;
public setLongSerializationPolicy(serializationPolicy: com.google.gson.LongSerializationPolicy): com.google.gson.GsonBuilder;
public addSerializationExclusionStrategy(strategy: com.google.gson.ExclusionStrategy): com.google.gson.GsonBuilder;
}
}
}
}
declare module com {
export module google {
export module gson {
export class InstanceCreator<T> extends java.lang.Object {
public static class: java.lang.Class<com.google.gson.InstanceCreator<any>>;
/**
* Constructs a new instance of the com.google.gson.InstanceCreator<any> interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
createInstance(param0: java.lang.reflect.Type): T;
});
public constructor();
public createInstance(param0: java.lang.reflect.Type): T;
}
}
}
}
declare module com {
export module google {
export module gson {
export class JsonArray extends com.google.gson.JsonElement implements java.lang.Iterable<com.google.gson.JsonElement> {
public static class: java.lang.Class<com.google.gson.JsonArray>;
public getAsLong(): number;
public deepCopy(): com.google.gson.JsonArray;
public getAsShort(): number;
public set(index: number, element: com.google.gson.JsonElement): com.google.gson.JsonElement;
public getAsBigDecimal(): java.math.BigDecimal;
public asList(): java.util.List<com.google.gson.JsonElement>;
public constructor();
public add(string: string): void;
public getAsInt(): number;
public getAsBoolean(): boolean;
public hashCode(): number;
public remove(index: number): com.google.gson.JsonElement;
/** @deprecated */
public getAsCharacter(): string;
public getAsDouble(): number;
public equals(o: any): boolean;
public addAll(array: com.google.gson.JsonArray): void;
public isEmpty(): boolean;
public iterator(): java.util.Iterator<com.google.gson.JsonElement>;
public getAsString(): string;
public remove(element: com.google.gson.JsonElement): boolean;
public spliterator(): java.util.Spliterator<any>;
public constructor(capacity: number);
public add(bool: java.lang.Boolean): void;
public add(number: java.lang.Number): void;
public get(i: number): com.google.gson.JsonElement;
public iterator(): java.util.Iterator<any>;
public forEach(action: any /* any*/): void;
public size(): number;
public deepCopy(): com.google.gson.JsonElement;
public getAsBigInteger(): java.math.BigInteger;
public getAsByte(): number;
/** @deprecated */
public constructor();
public equals(obj: any): boolean;
public add(element: com.google.gson.JsonElement): void;
public add(character: java.lang.Character): void;
public contains(element: com.google.gson.JsonElement): boolean;
public getAsFloat(): number;
public getAsNumber(): java.lang.Number;
}
}
}
}
declare module com {
export module google {
export module gson {
export class JsonDeserializationContext extends java.lang.Object {
public static class: java.lang.Class<com.google.gson.JsonDeserializationContext>;
/**
* Constructs a new instance of the com.google.gson.JsonDeserializationContext interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
deserialize(param0: com.google.gson.JsonElement, param1: java.lang.reflect.Type): any;
});
public constructor();
public deserialize(param0: com.google.gson.JsonElement, param1: java.lang.reflect.Type): any;
}
}
}
}
declare module com {
export module google {
export module gson {
export class JsonDeserializer<T> extends java.lang.Object {
public static class: java.lang.Class<com.google.gson.JsonDeserializer<any>>;
/**
* Constructs a new instance of the com.google.gson.JsonDeserializer<any> interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
deserialize(param0: com.google.gson.JsonElement, param1: java.lang.reflect.Type, param2: com.google.gson.JsonDeserializationContext): T;
});
public constructor();
public deserialize(param0: com.google.gson.JsonElement, param1: java.lang.reflect.Type, param2: com.google.gson.JsonDeserializationContext): T;
}
}
}
}
declare module com {
export module google {
export module gson {
export abstract class JsonElement extends java.lang.Object {
public static class: java.lang.Class<com.google.gson.JsonElement>;
public isJsonArray(): boolean;
public getAsJsonArray(): com.google.gson.JsonArray;
public getAsJsonPrimitive(): com.google.gson.JsonPrimitive;
public getAsLong(): number;
public isJsonPrimitive(): boolean;
public getAsShort(): number;
public toString(): string;
public getAsBigDecimal(): java.math.BigDecimal;
public getAsJsonNull(): com.google.gson.JsonNull;
public deepCopy(): com.google.gson.JsonElement;
public getAsByte(): number;
public getAsBigInteger(): java.math.BigInteger;
public getAsBoolean(): boolean;
public getAsInt(): number;
/** @deprecated */
public constructor();
public isJsonObject(): boolean;
public getAsJsonObject(): com.google.gson.JsonObject;
/** @deprecated */
public getAsCharacter(): string;
public isJsonNull(): boolean;
public getAsDouble(): number;
public getAsFloat(): number;
public getAsString(): string;
public getAsNumber(): java.lang.Number;
}
}
}
}
declare module com {
export module google {
export module gson {
export class JsonIOException extends com.google.gson.JsonParseException {
public static class: java.lang.Class<com.google.gson.JsonIOException>;
public constructor(msg: string, cause: java.lang.Throwable);
public constructor(cause: java.lang.Throwable);
public constructor(message: string, cause: java.lang.Throwable, enableSuppression: boolean, writableStackTrace: boolean);
public constructor(msg: string);
public constructor();
}
}
}
}
declare module com {
export module google {
export module gson {
export class JsonNull extends com.google.gson.JsonElement {
public static class: java.lang.Class<com.google.gson.JsonNull>;
public static INSTANCE: com.google.gson.JsonNull;
public deepCopy(): com.google.gson.JsonElement;
/** @deprecated */
public constructor();
public deepCopy(): com.google.gson.JsonNull;
public equals(obj: any): boolean;
public equals(other: any): boolean;
public hashCode(): number;
}
}
}
}
declare module com {
export module google {
export module gson {
export class JsonObject extends com.google.gson.JsonElement {
public static class: java.lang.Class<com.google.gson.JsonObject>;
public remove(property: string): com.google.gson.JsonElement;
public getAsJsonArray(memberName: string): com.google.gson.JsonArray;
public getAsJsonPrimitive(): com.google.gson.JsonPrimitive;
public keySet(): java.util.Set<string>;
public addProperty(property: string, value: java.lang.Number): void;
public getAsJsonObject(memberName: string): com.google.gson.JsonObject;
public constructor();
public deepCopy(): com.google.gson.JsonObject;
public addProperty(property: string, value: java.lang.Character): void;
public hashCode(): number;
public getAsJsonObject(): com.google.gson.JsonObject;
public equals(o: any): boolean;
public isEmpty(): boolean;
public getAsJsonPrimitive(memberName: string): com.google.gson.JsonPrimitive;
public has(memberName: string): boolean;
public getAsJsonArray(): com.google.gson.JsonArray;
public entrySet(): java.util.Set<java.util.Map.Entry<string,com.google.gson.JsonElement>>;
public asMap(): java.util.Map<string,com.google.gson.JsonElement>;
public addProperty(property: string, value: string): void;
public size(): number;
public deepCopy(): com.google.gson.JsonElement;
public get(memberName: string): com.google.gson.JsonElement;
/** @deprecated */
public constructor();
public equals(obj: any): boolean;
public addProperty(property: string, value: java.lang.Boolean): void;
public add(property: string, value: com.google.gson.JsonElement): void;
}
}
}
}
declare module com {
export module google {
export module gson {
export class JsonParseException extends java.lang.RuntimeException {
public static class: java.lang.Class<com.google.gson.JsonParseException>;
public constructor(msg: string, cause: java.lang.Throwable);
public constructor(cause: java.lang.Throwable);
public constructor(message: string, cause: java.lang.Throwable);
public constructor(message: string);
public constructor(message: string, cause: java.lang.Throwable, enableSuppression: boolean, writableStackTrace: boolean);
public constructor(msg: string);
public constructor();
}
}
}
}
declare module com {
export module google {
export module gson {
export class JsonParser extends java.lang.Object {
public static class: java.lang.Class<com.google.gson.JsonParser>;
public static parseReader(reader: com.google.gson.stream.JsonReader): com.google.gson.JsonElement;
/** @deprecated */
public constructor();
public static parseString(json: string): com.google.gson.JsonElement;
/** @deprecated */
public parse(json: com.google.gson.stream.JsonReader): com.google.gson.JsonElement;
public static parseReader(reader: java.io.Reader): com.google.gson.JsonElement;
/** @deprecated */
public parse(json: string): com.google.gson.JsonElement;
/** @deprecated */
public parse(json: java.io.Reader): com.google.gson.JsonElement;
}
}
}
}
declare module com {
export module google {
export module gson {
export class JsonPrimitive extends com.google.gson.JsonElement {
public static class: java.lang.Class<com.google.gson.JsonPrimitive>;
public deepCopy(): com.google.gson.JsonPrimitive;
public getAsLong(): number;
public isNumber(): boolean;
public getAsShort(): number;
public constructor(bool: java.lang.Boolean);
public getAsBigDecimal(): java.math.BigDecimal;
public constructor(c: java.lang.Character);
public deepCopy(): com.google.gson.JsonElement;
public getAsBigInteger(): java.math.BigInteger;
public getAsByte(): number;
public constructor(number: java.lang.Number);
public getAsBoolean(): boolean;
public getAsInt(): number;
/** @deprecated */
public constructor();
public equals(obj: any): boolean;
public constructor(string: string);
public hashCode(): number;
public isString(): boolean;
/** @deprecated */
public getAsCharacter(): string;
public getAsDouble(): number;
public getAsFloat(): number;
public isBoolean(): boolean;
public getAsString(): string;
public getAsNumber(): java.lang.Number;
}
}
}
}
declare module com {
export module google {
export module gson {
export class JsonSerializationContext extends java.lang.Object {
public static class: java.lang.Class<com.google.gson.JsonSerializationContext>;
/**
* Constructs a new instance of the com.google.gson.JsonSerializationContext interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
serialize(param0: any): com.google.gson.JsonElement;
serialize(param0: any, param1: java.lang.reflect.Type): com.google.gson.JsonElement;
});
public constructor();
public serialize(param0: any, param1: java.lang.reflect.Type): com.google.gson.JsonElement;
public serialize(param0: any): com.google.gson.JsonElement;
}
}
}
}
declare module com {
export module google {
export module gson {
export class JsonSerializer<T> extends java.lang.Object {
public static class: java.lang.Class<com.google.gson.JsonSerializer<any>>;
/**
* Constructs a new instance of the com.google.gson.JsonSerializer<any> interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
serialize(param0: T, param1: java.lang.reflect.Type, param2: com.google.gson.JsonSerializationContext): com.google.gson.JsonElement;
});
public constructor();
public serialize(param0: T, param1: java.lang.reflect.Type, param2: com.google.gson.JsonSerializationContext): com.google.gson.JsonElement;
}
}
}
}
declare module com {
export module google {
export module gson {
export class JsonStreamParser extends java.util.Iterator<com.google.gson.JsonElement> {
public static class: java.lang.Class<com.google.gson.JsonStreamParser>;
public remove(): void;
public hasNext(): boolean;
public constructor(reader: java.io.Reader);
public next(): com.google.gson.JsonElement;
public constructor(json: string);
}
}
}
}
declare module com {
export module google {
export module gson {
export class JsonSyntaxException extends com.google.gson.JsonParseException {
public static class: java.lang.Class<com.google.gson.JsonSyntaxException>;
public constructor(msg: string, cause: java.lang.Throwable);
public constructor(cause: java.lang.Throwable);
public constructor(message: string, cause: java.lang.Throwable, enableSuppression: boolean, writableStackTrace: boolean);
public constructor(msg: string);
public constructor();
}
}
}
}
declare module com {
export module google {
export module gson {
export abstract class LongSerializationPolicy {
public static class: java.lang.Class<com.google.gson.LongSerializationPolicy>;
public static DEFAULT: com.google.gson.LongSerializationPolicy;
public static STRING: com.google.gson.LongSerializationPolicy;
public static valueOf(enumType: java.lang.Class<any>, name: string): java.lang.Enum<any>;
public serialize(param0: java.lang.Long): com.google.gson.JsonElement;
public static valueOf(name: string): com.google.gson.LongSerializationPolicy;
public static values(): com.google.gson.LongSerializationPolicy[];
}
}
}
}
declare module com {
export module google {
export module gson {
export class ReflectionAccessFilter extends java.lang.Object {
public static class: java.lang.Class<com.google.gson.ReflectionAccessFilter>;
/**
* Constructs a new instance of the com.google.gson.ReflectionAccessFilter interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
check(param0: java.lang.Class<any>): com.google.gson.ReflectionAccessFilter.FilterResult;
"<clinit>"(): void;
});
public constructor();
public static BLOCK_ALL_ANDROID: com.google.gson.ReflectionAccessFilter;
public static BLOCK_INACCESSIBLE_JAVA: com.google.gson.ReflectionAccessFilter;
public static BLOCK_ALL_JAVA: com.google.gson.ReflectionAccessFilter;
public static BLOCK_ALL_PLATFORM: com.google.gson.ReflectionAccessFilter;
public check(param0: java.lang.Class<any>): com.google.gson.ReflectionAccessFilter.FilterResult;
}
export module ReflectionAccessFilter {
export class FilterResult {
public static class: java.lang.Class<com.google.gson.ReflectionAccessFilter.FilterResult>;
public static ALLOW: com.google.gson.ReflectionAccessFilter.FilterResult;
public static INDECISIVE: com.google.gson.ReflectionAccessFilter.FilterResult;
public static BLOCK_INACCESSIBLE: com.google.gson.ReflectionAccessFilter.FilterResult;
public static BLOCK_ALL: com.google.gson.ReflectionAccessFilter.FilterResult;
public static valueOf(enumType: java.lang.Class<any>, name: string): java.lang.Enum<any>;
public static valueOf(name: string): com.google.gson.ReflectionAccessFilter.FilterResult;
public static values(): com.google.gson.ReflectionAccessFilter.FilterResult[];
}
}
}
}
}
declare module com {
export module google {
export module gson {
export abstract class ToNumberPolicy extends com.google.gson.ToNumberStrategy {
public static class: java.lang.Class<com.google.gson.ToNumberPolicy>;
public static DOUBLE: com.google.gson.ToNumberPolicy;
public static LAZILY_PARSED_NUMBER: com.google.gson.ToNumberPolicy;
public static LONG_OR_DOUBLE: com.google.gson.ToNumberPolicy;
public static BIG_DECIMAL: com.google.gson.ToNumberPolicy;
public static valueOf(enumType: java.lang.Class<any>, name: string): java.lang.Enum<any>;
public static valueOf(name: string): com.google.gson.ToNumberPolicy;
public readNumber(param0: com.google.gson.stream.JsonReader): java.lang.Number;
public static values(): com.google.gson.ToNumberPolicy[];
}
}
}
}
declare module com {
export module google {
export module gson {
export class ToNumberStrategy extends java.lang.Object {
public static class: java.lang.Class<com.google.gson.ToNumberStrategy>;
/**
* Constructs a new instance of the com.google.gson.ToNumberStrategy interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
readNumber(param0: com.google.gson.stream.JsonReader): java.lang.Number;
});
public constructor();
public readNumber(param0: com.google.gson.stream.JsonReader): java.lang.Number;
}
}
}
}
declare module com {
export module google {
export module gson {
export abstract class TypeAdapter<T> extends java.lang.Object {
public static class: java.lang.Class<com.google.gson.TypeAdapter<any>>;
public write(param0: com.google.gson.stream.JsonWriter, param1: T): void;
public fromJson(_in_: java.io.Reader): T;
public toJson(out: java.io.Writer, value: T): void;
public nullSafe(): com.google.gson.TypeAdapter<T>;
public toJsonTree(value: T): com.google.gson.JsonElement;
public fromJson(json: string): T;
public read(param0: com.google.gson.stream.JsonReader): T;
public fromJsonTree(jsonTree: com.google.gson.JsonElement): T;
public constructor();
public toJson(value: T): string;
}
}
}
}
declare module com {
export module google {
export module gson {
export class TypeAdapterFactory extends java.lang.Object {
public static class: java.lang.Class<com.google.gson.TypeAdapterFactory>;
/**
* Constructs a new instance of the com.google.gson.TypeAdapterFactory interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
create(param0: com.google.gson.Gson, param1: com.google.gson.reflect.TypeToken<any>): com.google.gson.TypeAdapter<any>;
});
public constructor();
public create(param0: com.google.gson.Gson, param1: com.google.gson.reflect.TypeToken<any>): com.google.gson.TypeAdapter<any>;
}
}
}
}
declare module com {
export module google {
export module gson {
export module annotations {
export class Expose extends java.lang.Object implements java.lang.annotation.Annotation {
public static class: java.lang.Class<com.google.gson.annotations.Expose>;
/**
* Constructs a new instance of the com.google.gson.annotations.Expose interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
serialize(): boolean;
deserialize(): boolean;
equals(param0: any): boolean;
hashCode(): number;
toString(): string;
annotationType(): java.lang.Class<any>;
});
public constructor();
public equals(param0: any): boolean;
public equals(obj: any): boolean;
public toString(): string;
public annotationType(): java.lang.Class<any>;
public deserialize(): boolean;
public serialize(): boolean;
public hashCode(): number;
}
}
}
}
}
declare module com {
export module google {
export module gson {
export module annotations {
export class JsonAdapter extends java.lang.Object implements java.lang.annotation.Annotation {
public static class: java.lang.Class<com.google.gson.annotations.JsonAdapter>;
/**
* Constructs a new instance of the com.google.gson.annotations.JsonAdapter interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
value(): java.lang.Class<any>;
nullSafe(): boolean;
equals(param0: any): boolean;
hashCode(): number;
toString(): string;
annotationType(): java.lang.Class<any>;
});
public constructor();
public equals(param0: any): boolean;
public equals(obj: any): boolean;
public toString(): string;
public value(): java.lang.Class<any>;
public annotationType(): java.lang.Class<any>;
public nullSafe(): boolean;
public hashCode(): number;
}
}
}
}
}
declare module com {
export module google {
export module gson {
export module annotations {
export class SerializedName extends java.lang.Object implements java.lang.annotation.Annotation {
public static class: java.lang.Class<com.google.gson.annotations.SerializedName>;
/**
* Constructs a new instance of the com.google.gson.annotations.SerializedName interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
value(): string;
alternate(): string[];
equals(param0: any): boolean;
hashCode(): number;
toString(): string;
annotationType(): java.lang.Class<any>;
});
public constructor();
public equals(param0: any): boolean;
public equals(obj: any): boolean;
public toString(): string;
public alternate(): string[];
public annotationType(): java.lang.Class<any>;
public value(): string;
public hashCode(): number;
}
}
}
}
}
declare module com {
export module google {
export module gson {
export module annotations {
export class Since extends java.lang.Object implements java.lang.annotation.Annotation {
public static class: java.lang.Class<com.google.gson.annotations.Since>;
/**
* Constructs a new instance of the com.google.gson.annotations.Since interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
value(): number;
equals(param0: any): boolean;
hashCode(): number;
toString(): string;
annotationType(): java.lang.Class<any>;
});
public constructor();
public equals(param0: any): boolean;
public equals(obj: any): boolean;
public toString(): string;
public annotationType(): java.lang.Class<any>;
public hashCode(): number;
public value(): number;
}
}
}
}
}
declare module com {
export module google {
export module gson {
export module annotations {
export class Until extends java.lang.Object implements java.lang.annotation.Annotation {
public static class: java.lang.Class<com.google.gson.annotations.Until>;
/**
* Constructs a new instance of the com.google.gson.annotations.Until interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
value(): number;
equals(param0: any): boolean;
hashCode(): number;
toString(): string;
annotationType(): java.lang.Class<any>;
});
public constructor();
public equals(param0: any): boolean;
public equals(obj: any): boolean;
public toString(): string;
public annotationType(): java.lang.Class<any>;
public hashCode(): number;
public value(): number;
}
}
}
}
}
declare module com {
export module google {
export module gson {
export module internal {
export module {
export module Gson {
export module {
export class Preconditions extends java.lang.Object {
public static class: java.lang.Class<com.google.gson.internal..Gson.Preconditions>;
/** @deprecated */
public static checkNotNull(obj: any): any;
public static checkArgument(condition: boolean): void;
}
export class Types extends java.lang.Object {
public static class: java.lang.Class<com.google.gson.internal..Gson.Types>;
public static getArrayComponentType(array: java.lang.reflect.Type): java.lang.reflect.Type;
public static equals(a: java.lang.reflect.Type, b: java.lang.reflect.Type): boolean;
public equals(obj: any): boolean;
public static newParameterizedTypeWithOwner(ownerType: java.lang.reflect.Type, rawType: java.lang.reflect.Type, ...typeArguments: java.lang.reflect.Type[]): java.lang.reflect.ParameterizedType;
public static getRawType(type: java.lang.reflect.Type): java.lang.Class<any>;
public static getCollectionElementType(context: java.lang.reflect.Type, contextRawType: java.lang.Class<any>): java.lang.reflect.Type;
public static getMapKeyAndValueTypes(context: java.lang.reflect.Type, contextRawType: java.lang.Class<any>): java.lang.reflect.Type[];
public static canonicalize(type: java.lang.reflect.Type): java.lang.reflect.Type;
public static typeToString(type: java.lang.reflect.Type): string;
public static supertypeOf(bound: java.lang.reflect.Type): java.lang.reflect.WildcardType;
public static arrayOf(componentType: java.lang.reflect.Type): java.lang.reflect.GenericArrayType;
public static subtypeOf(bound: java.lang.reflect.Type): java.lang.reflect.WildcardType;
public static resolve(context: java.lang.reflect.Type, contextRawType: java.lang.Class<any>, toResolve: java.lang.reflect.Type): java.lang.reflect.Type;
}
export module Types {
export class GenericArrayTypeImpl extends java.lang.Object implements java.lang.reflect.GenericArrayType, java.io.Serializable {
public static class: java.lang.Class<com.google.gson.internal..Gson.Types.GenericArrayTypeImpl>;
public toString(): string;
public equals(obj: any): boolean;
public equals(o: any): boolean;
public hashCode(): number;
public getGenericComponentType(): java.lang.reflect.Type;
public constructor(componentType: java.lang.reflect.Type);
}
export class ParameterizedTypeImpl extends java.lang.Object implements java.lang.reflect.ParameterizedType, java.io.Serializable {
public static class: java.lang.Class<com.google.gson.internal..Gson.Types.ParameterizedTypeImpl>;
public toString(): string;
public equals(obj: any): boolean;
public getActualTypeArguments(): java.lang.reflect.Type[];
public constructor(ownerType: java.lang.reflect.Type, rawType: java.lang.reflect.Type, ...typeArguments: java.lang.reflect.Type[]);
public getRawType(): java.lang.reflect.Type;
public getOwnerType(): java.lang.reflect.Type;
public hashCode(): number;
public equals(other: any): boolean;
}
export class WildcardTypeImpl extends java.lang.Object implements java.lang.reflect.WildcardType, java.io.Serializable {
public static class: java.lang.Class<com.google.gson.internal..Gson.Types.WildcardTypeImpl>;
public getUpperBounds(): java.lang.reflect.Type[];
public toString(): string;
public getLowerBounds(): java.lang.reflect.Type[];
public equals(obj: any): boolean;
public constructor(upperBounds: java.lang.reflect.Type[], lowerBounds: java.lang.reflect.Type[]);
public hashCode(): number;
public equals(other: any): boolean;
}
}
}
}
}
}
}
}
declare module com {
export module google {
export module gson {
export module internal {
export class ConstructorConstructor extends java.lang.Object {
public static class: java.lang.Class<com.google.gson.internal.ConstructorConstructor>;
public constructor(instanceCreators: java.util.Map<java.lang.reflect.Type,com.google.gson.InstanceCreator<any>>, useJdkUnsafe: boolean, reflectionFilters: java.util.List<com.google.gson.ReflectionAccessFilter>);
public toString(): string;
public get(typeToken: com.google.gson.reflect.TypeToken<any>): com.google.gson.internal.ObjectConstructor<any>;
}
}
}
}
}
declare module com {
export module google {
export module gson {
export module internal {
export class Excluder extends java.lang.Object implements com.google.gson.TypeAdapterFactory, java.lang.Cloneable {
public static class: java.lang.Class<com.google.gson.internal.Excluder>;
public static DEFAULT: com.google.gson.internal.Excluder;
public disableInnerClassSerialization(): com.google.gson.internal.Excluder;
public create(gson: com.google.gson.Gson, type: com.google.gson.reflect.TypeToken<any>): com.google.gson.TypeAdapter<any>;
public clone(): com.google.gson.internal.Excluder;
public clone(): any;
public constructor();
public excludeField(field: java.lang.reflect.Field, serialize: boolean): boolean;
public create(param0: com.google.gson.Gson, param1: com.google.gson.reflect.TypeToken<any>): com.google.gson.TypeAdapter<any>;
public withVersion(ignoreVersionsAfter: number): com.google.gson.internal.Excluder;
public withModifiers(...modifiers: number[]): com.google.gson.internal.Excluder;
public withExclusionStrategy(exclusionStrategy: com.google.gson.ExclusionStrategy, serialization: boolean, deserialization: boolean): com.google.gson.internal.Excluder;
public excludeFieldsWithoutExposeAnnotation(): com.google.gson.internal.Excluder;
public excludeClass(clazz: java.lang.Class<any>, serialize: boolean): boolean;
}
}
}
}
}
declare module com {
export module google {
export module gson {
export module internal {
export class GsonBuildConfig extends java.lang.Object {
public static class: java.lang.Class<com.google.gson.internal.GsonBuildConfig>;
public static VERSION: string;
}
}
}
}
}
declare module com {
export module google {
export module gson {
export module internal {
export class JavaVersion extends java.lang.Object {
public static class: java.lang.Class<com.google.gson.internal.JavaVersion>;
public static isJava9OrLater(): boolean;
public static getMajorJavaVersion(): number;
}
}
}
}
}
declare module com {
export module google {
export module gson {
export module internal {
export abstract class JsonReaderInternalAccess extends java.lang.Object {
public static class: java.lang.Class<com.google.gson.internal.JsonReaderInternalAccess>;
public static INSTANCE: com.google.gson.internal.JsonReaderInternalAccess;
public constructor();
public promoteNameToValue(param0: com.google.gson.stream.JsonReader): void;
}
}
}
}
}
declare module com {
export module google {
export module gson {
export module internal {
export class LazilyParsedNumber extends java.lang.Number {
public static class: java.lang.Class<com.google.gson.internal.LazilyParsedNumber>;
public intValue(): number;
public toString(): string;
public equals(obj: any): boolean;
public constructor();
public doubleValue(): number;
public floatValue(): number;
public longValue(): number;
public constructor(value: string);
public hashCode(): number;
}
}
}
}
}
declare module com {
export module google {
export module gson {
export module internal {
export class LinkedTreeMap<K, V> extends java.util.AbstractMap<any,any> implements java.io.Serializable {
public static class: java.lang.Class<com.google.gson.internal.LinkedTreeMap<any,any>>;
public containsKey(key: any): boolean;
public get(key: any): any;
public isEmpty(): boolean;
public constructor(allowNullValues: boolean);
public forEach(action: any /* any<any,any>*/): void;
public size(): number;
public constructor(comparator: java.util.Comparator<any>, allowNullValues: boolean);
public equals(o: any): boolean;
public put(param0: any, param1: any): any;
public remove(key: any, value: any): boolean;
public putAll(param0: java.util.Map<any,any>): void;
public containsValue(param0: any): boolean;
public remove(param0: any): any;
public getOrDefault(key: any, defaultValue: any): any;
public putIfAbsent(key: any, value: any): any;
public constructor();
public keySet(): java.util.Set<any>;
public clear(): void;
public merge(key: any, value: any, remappingFunction: any /* any<any,any,any>*/): any;
public hashCode(): number;
public replace(key: any, oldValue: any, newValue: any): boolean;
public replaceAll(_function_: any /* any<any,any,any>*/): void;
public remove(key: any): any;
public values(): java.util.Collection<any>;
public containsValue(value: any): boolean;
public replace(key: any, value: any): any;
public equals(param0: any): boolean;
public containsKey(param0: any): boolean;
public entrySet(): java.util.Set<java.util.Map.Entry<any,any>>;
public put(key: any, value: any): any;
public computeIfAbsent(key: any, mappingFunction: any /* any<any,any>*/): any;
public compute(key: any, remappingFunction: any /* any<any,any,any>*/): any;
public putAll(m: java.util.Map<any,any>): void;
public computeIfPresent(key: any, remappingFunction: any /* any<any,any,any>*/): any;
public get(param0: any): any;
}
export module LinkedTreeMap {
export class EntrySet extends java.util.AbstractSet<java.util.Map.Entry<any,any>> {
public static class: java.lang.Class<com.google.gson.internal.LinkedTreeMap.EntrySet>;
public retainAll(c: java.util.Collection<any>): boolean;
public iterator(): java.util.Iterator<any>;
public add(param0: any): boolean;
public stream(): java.util.stream.Stream<any>;
public equals(param0: any): boolean;
public hashCode(): number;
public removeIf(filter: any /* any*/): boolean;
public contains(o: any): boolean;
public removeAll(c: java.util.Collection<any>): boolean;
public addAll(param0: java.util.Collection<any>): boolean;
public retainAll(param0: java.util.Collection<any>): boolean;
public spliterator(): java.util.Spliterator<any>;
public isEmpty(): boolean;
public containsAll(c: java.util.Collection<any>): boolean;
public equals(o: any): boolean;
public size(): number;
public toArray(a: any[]): any[];
public removeAll(param0: java.util.Collection<any>): boolean;
public addAll(c: java.util.Collection<any>): boolean;
public toArray(): any[];
public iterator(): java.util.Iterator<java.util.Map.Entry<any,any>>;
public add(e: any): boolean;
public contains(param0: any): boolean;
public remove(o: any): boolean;
public parallelStream(): java.util.stream.Stream<any>;
public remove(param0: any): boolean;
public clear(): void;
public toArray(param0: any[]): any[];
public containsAll(param0: java.util.Collection<any>): boolean;
}
export class KeySet extends java.util.AbstractSet<any> {
public static class: java.lang.Class<com.google.gson.internal.LinkedTreeMap.KeySet>;
public retainAll(c: java.util.Collection<any>): boolean;
public iterator(): java.util.Iterator<any>;
public add(param0: any): boolean;
public stream(): java.util.stream.Stream<any>;
public equals(param0: any): boolean;
public hashCode(): number;
public removeIf(filter: any /* any*/): boolean;
public contains(o: any): boolean;
public removeAll(c: java.util.Collection<any>): boolean;
public addAll(param0: java.util.Collection<any>): boolean;
public retainAll(param0: java.util.Collection<any>): boolean;
public spliterator(): java.util.Spliterator<any>;
public isEmpty(): boolean;
public containsAll(c: java.util.Collection<any>): boolean;
public equals(o: any): boolean;
public size(): number;
public toArray(a: any[]): any[];
public removeAll(param0: java.util.Collection<any>): boolean;
public remove(key: any): boolean;
public addAll(c: java.util.Collection<any>): boolean;
public toArray(): any[];
public add(e: any): boolean;
public contains(param0: any): boolean;
public remove(o: any): boolean;
public parallelStream(): java.util.stream.Stream<any>;
public remove(param0: any): boolean;
public clear(): void;
public toArray(param0: any[]): any[];
public containsAll(param0: java.util.Collection<any>): boolean;
}
export abstract class LinkedTreeMapIterator<T> extends java.util.Iterator<any> {
public static class: java.lang.Class<com.google.gson.internal.LinkedTreeMap.LinkedTreeMapIterator<any>>;
public hasNext(): boolean;
public remove(): void;
}
export class Node<K, V> extends java.util.Map.Entry<any,any> {
public static class: java.lang.Class<com.google.gson.internal.LinkedTreeMap.Node<any,any>>;
public equals(obj: any): boolean;
public setValue(param0: any): any;
public static comparingByValue(cmp: java.util.Comparator<any>): java.util.Comparator<any>;
public getValue(): any;
public setValue(value: any): any;
public getKey(): any;
public static comparingByValue(): java.util.Comparator<any>;
public hashCode(): number;
public equals(param0: any): boolean;
public first(): com.google.gson.internal.LinkedTreeMap.Node<any,any>;
public toString(): string;
public last(): com.google.gson.internal.LinkedTreeMap.Node<any,any>;
public static comparingByKey(): java.util.Comparator<any>;
public equals(o: any): boolean;
public static comparingByKey(cmp: java.util.Comparator<any>): java.util.Comparator<any>;
}
}
}
}
}
}
declare module com {
export module google {
export module gson {
export module internal {
export class NonNullElementWrapperList<E> extends java.util.AbstractList<any> implements java.util.RandomAccess {
public static class: java.lang.Class<com.google.gson.internal.NonNullElementWrapperList<any>>;
public isEmpty(): boolean;
public spliterator(): java.util.Spliterator<any>;
public size(): number;
public lastIndexOf(param0: any): number;
public equals(o: any): boolean;
public lastIndexOf(o: any): number;
public iterator(): java.util.Iterator<any>;
public constructor();
public toArray(param0: any[]): any[];
public get(param0: number): any;
public remove(o: any): boolean;
public listIterator(index: number): java.util.ListIterator<any>;
public toArray(a: any[]): any[];
public toArray(): any[];
public add(param0: number, param1: any): void;
public sort(c: java.util.Comparator<any>): void;
public add(index: number, element: any): void;
public set(param0: number, param1: any): any;
public replaceAll(operator: any /* any*/): void;
public addAll(param0: java.util.Collection<any>): boolean;
public add(param0: any): boolean;
public containsAll(param0: java.util.Collection<any>): boolean;
public subList(fromIndex: number, toIndex: number): java.util.List<any>;
public get(index: number): any;
public addAll(c: java.util.Collection<any>): boolean;
public set(index: number, element: any): any;
public remove(index: number): any;
public contains(o: any): boolean;
public remove(param0: number): any;
public removeAll(c: java.util.Collection<any>): boolean;
public clear(): void;
public subList(param0: number, param1: number): java.util.List<any>;
public listIterator(param0: number): java.util.ListIterator<any>;
public containsAll(c: java