53 public abstract IReadOnlyCollection<BadInterfacePrototype>
Interfaces {
get; }
58 public string Name {
get; }
117 return cls.InheritsFrom(
this);
129 return $
"class {Name}";
The Execution Context. Every execution of a script needs a context the script is running in....
Gets thrown by the runtime.
The Base Class for all BadScript Objects.
BadClassPrototype GetPrototype()
Returns the Prototype of this Object.
static readonly BadObject Null
The Null Value for the BadScript Language.
Implements a Type Instance in the BadScript Language.
Implements a Class Prototype for the BadScript Language.
IReadOnlyCollection< BadInterfacePrototype > Interfaces
The Implemented Interfaces.
virtual bool IsAssignableFrom(BadObject obj)
Returns true if the provided object is an instance of this class or a subclass of this class.
override BadClassPrototype GetPrototype()
static readonly BadClassPrototype Prototype
The Prototype of the ClassPrototype(can not be used)
string Name
The Name of the Type.
bool IsAbstract
Indicates if the Class is Abstract(e.g. can not be instantiated)
BadClassPrototype(string name, BadMetaData? metaData)
Creates a new Class Prototype.
override string ToSafeString(List< BadObject > done)
virtual bool IsSuperClassOf(BadClassPrototype proto)
Returns true if the Class is a Subclass of the given Class.
readonly BadMetaData MetaData
The Metadata of the Class.
BadClassPrototype? GetBaseClass()
Returns the base class.
BadClassPrototype? BaseClass
The Base Class of the Prototype.
IEnumerable< BadObject > CreateInstance(BadExecutionContext caller, bool setThis=true)
Creates an Instance of the Class.
Implements a Native Class Prototype.
Contains the Parser for the BadScript2 Language.
Contains the Error Objects for the BadScript2 Language.
Contains Runtime Interface Objects.
Contains Runtime Type Objects.