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(
20 "any",
21 new BadMetaData(
22 "This class represents the any type. It is the base class for all types and can be used to represent any type.",
23 "Creates a new instance of the any type.",
24 "any",
25 new Dictionary<string, BadParameterMetaData>()
26 )
27 ) { }
28
30 public override bool IsAbstract => true;
31 protected override BadClassPrototype? BaseClass { get; }
32
33 public override IReadOnlyCollection<BadInterfacePrototype> Interfaces { get; } = Array.Empty<BadInterfacePrototype>();
34
36 public override bool IsAssignableFrom(BadObject obj)
37 {
38 return true;
39 }
40
42 public override IEnumerable<BadObject> CreateInstance(BadExecutionContext caller, bool setThis = true)
43 {
45 }
46}
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.