9[BadInteropApi(
"Native")]
17 [BadMethod(description:
"Returns true if the given object is an instance of a class prototype")]
18 [
return: BadReturn(
"True if the given object is an instance of a class prototype")]
29 [BadMethod(description:
"Returns true if the given object is a class prototype")]
30 [return: BadReturn(
"True if the given object is a class prototype")]
41 [BadMethod(description:
"Returns true if the given object is a native object")]
42 [return: BadReturn(
"True if the given object is a native object")]
53 [BadMethod(description:
"Returns true if the given object is a function")]
54 [return: BadReturn(
"True if the given object is a function")]
65 [BadMethod(description:
"Returns true if the given object is a table")]
66 [return: BadReturn(
"True if the given object is a table")]
77 [BadMethod(description:
"Returns true if the given object is a string")]
78 [return: BadReturn(
"True if the given object is a string")]
89 [BadMethod(description:
"Returns true if the given object is a number")]
90 [return: BadReturn(
"True if the given object is a number")]
101 [BadMethod(description:
"Returns true if the given object is a boolean")]
102 [return: BadReturn(
"True if the given object is a boolean")]
113 [BadMethod(description:
"Returns true if the given object is an array")]
114 [return: BadReturn(
"True if the given object is an array")]
126 [BadMethod(description:
"Returns true if the given object is enumerable")]
127 [return: BadReturn(
"True if the given object is enumerable")]
130 return arg?.
HasProperty(
"GetEnumerator", ctx.Scope) ??
false;
139 [BadMethod(description:
"Returns true if the given object is an enumerator")]
140 [return: BadReturn(
"True if the given object is an enumerator")]
143 return (arg?.HasProperty(
"GetCurrent", ctx.Scope) ??
false) &&
144 (arg?.HasProperty(
"MoveNext", ctx.Scope) ??
false);
bool IsString([BadParameter(description:"Object to test")] BadObject? arg)
Returns true if the given object is a string.
bool IsPrototype([BadParameter(description:"Object to test")] BadObject? arg)
Returns true if the given object is a class prototype.
bool IsTable([BadParameter(description:"Object to test")] BadObject? arg)
Returns true if the given object is a table.
bool IsPrototypeInstance([BadParameter(description:"Object to test")] BadObject? arg)
Returns true if the given object is an instance of a class prototype.
bool IsFunction([BadParameter(description:"Object to test")] BadObject? arg)
Returns true if the given object is a function.
bool IsNumber([BadParameter(description:"Object to test")] BadObject? arg)
Returns true if the given object is a number.
bool IsEnumerable(BadExecutionContext ctx, [BadParameter(description:"Object to test")] BadObject? arg)
Returns true if the given object is enumerable.
bool IsEnumerator(BadExecutionContext ctx, [BadParameter(description:"Object to test")] BadObject? arg)
Returns true if the given object is an enumerator.
bool IsNative([BadParameter(description:"Object to test")] BadObject? arg)
Returns true if the given object is a native object.
bool IsArray([BadParameter(description:"Object to test")] BadObject? arg)
Returns true if the given object is an array.
bool IsBoolean([BadParameter(description:"Object to test")] BadObject? arg)
Returns true if the given object is a boolean.
The Execution Context. Every execution of a script needs a context the script is running in....
Implements a Dynamic List/Array for the BadScript Language.
The Base Class for all BadScript Objects.
virtual bool HasProperty(string propName, BadScope? caller=null)
Returns true if the object contains a given property or there exists an extension for the current Ins...
Implements a Table Structure for the BadScript Language.
Implements a function that can be called from the script.
Implements a Type Instance in the BadScript Language.
Implements a Class Prototype for the BadScript Language.
Implements the Interface for Native Boolean.
Defines properties for Native Types.
Implements the Interface for Native Numbers.
Implements the Interface for Native Strings.
Contains Common Interop APIs for the BadScript2 Runtime.
Contains Runtime Function Objects.
Contains the Native Runtime Objects.
Contains Runtime Type Objects.
Contains the Runtime Objects.
Contains the Runtime Implementation.