Base class of all ADF Objects.
To create a subclass of another AdfObject, use AdfObject.createSubclass. The subclass can specify class-level initialization by implementing an InitClass()
method on its constructor. InitClass
is guaranteed to be called only once per class. Further, a class' InitClass
method is guranteed to be called only after its superclass' class initialization has been called. When InitClass
is called, this
is the class' constructor. This allows class initialization implementations to be shared in some cases.
Method Summary
|
public Object |
adopt(Object theRawObject)
-
Adopt the properties of another object as our own
|
private static Object |
_applyFunctionProperties(Object target, Object className)
-
Apply class and function name properties to the functions of an Object.
|
private static Object |
_applyRenamesFromChain(Object currClass, Object superclass, Object immediateSuperclass)
|
private static Object |
_applyRenamesToSubclass(Object currClass)
-
Used to ensure that public nad protected API methods renamed by Closure Compiler in advanced mode can be overridden by this subclass, and can be called from both inside and outside of the framework.
|
public Object |
clone()
-
Returns a clone of this object.
|
public Object |
createCallback(Object func)
-
Creates a function instance that will callback the passed in function with the current "this".
|
public static Object |
createInitializedObject()
-
Convenience function for creating an Object initialized with key values pairs as alternating parameters.
|
public static Object |
createSubclass(Function extendingClass, Function baseClass, Object typeName, Object classInitializationState)
-
Factory method for creating a subclass of the specified baseClass
|
public static Object |
ensureClassInitialization(Function clazz)
-
Ensures that a class is initialized.
|
public Object |
equals(Object object)
-
Indicates whether some other AdfObject is "equal to" this one.
|
public static Object |
exportPrototypeSymbol(string name, Object valueMapping)
-
Delegates to goog.export() for exporting a symbol with Closure compiler, while recoreding a map of the renamed names to an original names and a map of original names to the renamed names
|
public Object |
getClass(Object otherInstance)
|
protected Object |
GetLazyArrayProperty(Object propName, Object createIfNonexistent, Object otherInstance)
-
Returns the specified array property.
|
protected Object |
GetLazyMapProperty(Object propName, Object createIfNonexistent, Object otherInstance)
-
Returns the specified Map property.
|
public String |
getTypeName()
-
Returns the type name for this instance
|
public static String |
getTypeName(Object clazz)
-
Returns the type name for a class derived from AdfObject
|
protected Object |
Init()
-
Initializes the instance.
|
private static Object |
_initClasses(Object currClass)
-
Perform any class-level initializtion.
|
private static Object |
_isPrototypePropertyLocallySet(Object currClassPrototype, Object superclassPrototype, Object prop)
|
private static Object |
_tempSubclassConstructor()
-
Temporary constructor used to assign the correct prototype to subclasses
|
public Object |
toDebugString()
|
public Object |
toString()
|