Class: AbstractClass

@lumjs/core/meta.AbstractClass()

Abstract classes for Javascript.

Constructor

new AbstractClass()

Source:

Methods

$abstract()

If you want to mark a method as abstract use this.

Source:

$needs(…needs)

Check for required properties

Parameters:
Name Type Attributes Description
needs string | Array <repeatable>

What is needed

If this is a string it should be in a format like:

  • methodName(arg1,arg2,arg3)
  • anotherMethod(number, string, object) : boolean
  • yetAnother (className) : resultClass

The names are case sensitive, and we'll look for the method after stripping off anything from the first non-word character.

If this is an Array, the first item must be the name of a property, and each other item should be a type checking value, or array of type checking values from the TYPES object, as used by isa().

If you are calling this in an abstract class constructor, likely only the method checks will be useful, as the super() call must be done before any instance property assignments.

Source: