com.aptana.ide.editor.js.runtime
Class JSDateConstructor

java.lang.Object
  extended by com.aptana.ide.editor.js.runtime.ObjectBase
      extended by com.aptana.ide.editor.js.runtime.FunctionBase
          extended by com.aptana.ide.editor.js.runtime.NativeConstructorBase
              extended by com.aptana.ide.editor.js.runtime.JSDateConstructor
All Implemented Interfaces:
IFunction, IObject, IRange, IDocumentationContainer

public class JSDateConstructor
extends NativeConstructorBase

Author:
Kevin Lindsey, Robin Debreuil

Field Summary
 
Fields inherited from class com.aptana.ide.editor.js.runtime.NativeConstructorBase
owningEnvironment
 
Fields inherited from class com.aptana.ide.editor.js.runtime.FunctionBase
EmptyArgs
 
Fields inherited from class com.aptana.ide.editor.js.runtime.ObjectBase
NULL, UNDEFINED
 
Constructor Summary
JSDateConstructor(Environment owningEnvironment)
          Create a new instance of NativeDate
 
Method Summary
 IObject construct(Environment environment, IObject[] arguments, int fileIndex, IRange sourceRegion)
          Constructs a new Object with using the passed arguments.
 void initializeProperties()
          Initialize the properties on this instance
 IObject invoke(Environment environment, IObject[] arguments, int fileIndex, IRange sourceRegion)
          Invoke this method with the specified parameters
 
Methods inherited from class com.aptana.ide.editor.js.runtime.NativeConstructorBase
getBodyScope, getOwningEnvironment, setBodyScope, setParameterNames
 
Methods inherited from class com.aptana.ide.editor.js.runtime.FunctionBase
getClassName, getInvokeTypeProvider, getParameterNames, setInvokeTypeProvider
 
Methods inherited from class com.aptana.ide.editor.js.runtime.ObjectBase
canPut, containsOffset, deletePropertyName, getDocumentation, getEndingOffset, getInstance, getLength, getLocalProperty, getLocalPropertyCount, getLocalPropertyNames, getProperty, getPropertyNames, getPropertyNames, getPropertyValue, getPrototype, getRange, getStartingOffset, hasDocumentation, hasLocalProperty, hasProperty, isEmpty, putLocalProperty, putPropertyValue, putPropertyValue, setDocumentation, setPrototype, unputPropertyName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSDateConstructor

public JSDateConstructor(Environment owningEnvironment)
Create a new instance of NativeDate

Parameters:
owningEnvironment - The environment in which this native date was created
Method Detail

initializeProperties

public void initializeProperties()
Initialize the properties on this instance


construct

public IObject construct(Environment environment,
                         IObject[] arguments,
                         int fileIndex,
                         IRange sourceRegion)
Description copied from interface: IFunction
Constructs a new Object with using the passed arguments.

Specified by:
construct in interface IFunction
Specified by:
construct in class FunctionBase
arguments - The arguments to use in constructing the new object.
fileIndex - The file index
sourceRegion - The region of text within the source file that represents the construction of this instance
Returns:
Returns a newly constructed object.
See Also:
FunctionBase.construct(com.aptana.ide.editor.js.runtime.Environment, com.aptana.ide.editor.js.runtime.IObject[], int, IRange)

invoke

public IObject invoke(Environment environment,
                      IObject[] arguments,
                      int fileIndex,
                      IRange sourceRegion)
Description copied from interface: IFunction
Invoke this method with the specified parameters

Specified by:
invoke in interface IFunction
Specified by:
invoke in class FunctionBase
arguments - The arguments to use in constructing the new object.
fileIndex - The file index
sourceRegion - The region of text within the source file that represents the construction of this instance
Returns:
Returns a newly constructed object.
See Also:
FunctionBase.invoke(com.aptana.ide.editor.js.runtime.Environment, com.aptana.ide.editor.js.runtime.IObject[], int, IRange)