Base
pentaho.lang. Base
Base
Class for JavaScript Inheritance.
Based on Base.js by Dean Edwards, and later edited by Kenneth Powers.
AMD Module
require(["pentaho/lang/Base"], function(Base) { /* code goes here */ });
Constructor
Name | Description |
---|---|
new Base(spec) | Creates a new |
Members
Name | Description |
---|---|
ancestor Static | The ancestor class. |
base : Protected | If a method has been overridden, then the base method provides access to the overridden method. |
Methods
Name | Description |
---|---|
_extend(name, instSpec, classSpec, keyArgs) : Class.<<code>pentaho.lang.Base > Static Protected | Actually creates a subclass of this one. |
_subclassed(Subclass, instSpec, classSpec, keyArgs) Static Protected | Called when a subclass of this class has been created. |
extend(name, instSpec, classSpec, keyArgs) : Class.<<code>pentaho.lang.Base > Static | Creates a subclass of this one. |
implement(instSpecs) : !Class.<<code>pentaho.lang.Base > | function Static | Adds instance specifications to this class. |
implementStatic(classSpecs) : !Class.<<code>pentaho.lang.Base > | function Static | Adds static specifications to this class. |
mix(instSpec, classSpec, keyArgs) : Class.<<code>pentaho.lang.Base > Static | Adds additional members to, or overrides existing ones of, this class. |
to(value, other) : pentaho.lang.Base Static | Converts a value to an instance of this class, or throws if that is impossible. |
extend(source, keyArgs) : Object | Extend an object with the properties of another. |
Constructor Details
new Base(spec) | ||||||
---|---|---|---|---|---|---|
Creates a new If Source: javascript/web/pentaho/lang/Base.js, line 132
|
Members Details
ancestor: Static |
---|
The ancestor class. |
base: Protected |
---|
If a method has been overridden, then the base method provides access to the overridden method. Can also be called from within a constructor function. |
Methods Details
_extend(name, instSpec, classSpec, keyArgs) : Class.<<code>pentaho.lang.Base > Static Protected | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Actually creates a subclass of this one. The default implementation creates the subclass constructor, inherits static members and handles the special Source: javascript/web/pentaho/lang/Base.js, line 425
|
_subclassed(Subclass, instSpec, classSpec, keyArgs) Static Protected | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Called when a subclass of this class has been created. The default implementation mixes the given instance and class specification in the new subclass, without actually recording a mix operation. Source: javascript/web/pentaho/lang/Base.js, line 564
|
extend(name, instSpec, classSpec, keyArgs) : Class.<<code>pentaho.lang.Base > Static | ||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a subclass of this one. All classes inherit the Inheritance is delegated to the Source: javascript/web/pentaho/lang/Base.js, line 369
|
implement(instSpecs) : !Class.<<code>pentaho.lang.Base > | function Static | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Adds instance specifications to this class. This method does not create a new class. Each instance specification can be a class or an object. When it is a class, only its instance-side is mixed-in. Source: javascript/web/pentaho/lang/Base.js, line 896
See also: pentaho.lang.Base.implementStatic , pentaho.lang.Base.mix |
implementStatic(classSpecs) : !Class.<<code>pentaho.lang.Base > | function Static | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Adds static specifications to this class. This method does not create a new class. Each class-side/static specification can be a class or an object. When it is a class, only its class-side is mixed-in. Source: javascript/web/pentaho/lang/Base.js, line 943
|
mix(instSpec, classSpec, keyArgs) : Class.<<code>pentaho.lang.Base > Static | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Adds additional members to, or overrides existing ones of, this class. This method does not create a new class. This method supports two signatures:
Source: javascript/web/pentaho/lang/Base.js, line 745
|
to(value, other) : pentaho.lang.Base Static | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Converts a value to an instance of this class, or throws if that is impossible. When Otherwise, a new instance of this class is created, using all of the specified arguments as constructor arguments. Source: javascript/web/pentaho/lang/Base.js, line 676
|
extend(source, keyArgs) : Object | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Extend an object with the properties of another. Methods that are overridden are accessible through This object is extended, but its class doesn't change. Source: javascript/web/pentaho/lang/Base.js, line 1037
|