BadScript 2
Loading...
Searching...
No Matches
BadAnyPrototype.cs
Go to the documentation of this file.
3
5
10{
14 public static readonly BadAnyPrototype Instance = new BadAnyPrototype();
15
19 public BadAnyPrototype() : base("any",
20 new
21 BadMetaData("This class represents the any type. It is the base class for all types and can be used to represent any type.",
22 "Creates a new instance of the any type.",
23 "any",
24 new Dictionary<string, BadParameterMetaData>()
25 )
26 ) { }
27
29 public override bool IsAbstract => true;
30
31 protected override BadClassPrototype? BaseClass { get; }
32
33 public override IReadOnlyCollection<BadInterfacePrototype> Interfaces { get; } =
34 Array.Empty<BadInterfacePrototype>();
35
37 public override bool IsAssignableFrom(BadObject obj)
38 {
39 return true;
40 }
41
43 public override IEnumerable<BadObject> CreateInstance(BadExecutionContext caller, bool setThis = true)
44 {
46 }
47}
Implements a Meta Data container for an expression.
Implements a Meta Data container for a parameter.
The Execution Context. Every execution of a script needs a context the script is running in....
The Base Class for all BadScript Objects.
Definition BadObject.cs:14
Exception that is thrown when a Abstract Class is instantiated.
The Any Prototype, Base type for all types.
BadAnyPrototype()
Creates a new BadAnyPrototype.
override bool IsAssignableFrom(BadObject obj)
Returns true if the provided object is an instance of this class or a subclass of this class....
static readonly BadAnyPrototype Instance
The Instance of the BadAnyPrototype.
override IEnumerable< BadObject > CreateInstance(BadExecutionContext caller, bool setThis=true)
override IReadOnlyCollection< BadInterfacePrototype > Interfaces
Implements a Class Prototype for the BadScript Language.
Contains the Parser for the BadScript2 Language.
Contains Runtime Interface Objects.