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

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.JSErrorConstructor
All Implemented Interfaces:
IFunction, IObject, IRange, IDocumentationContainer

public class JSErrorConstructor
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
JSErrorConstructor(Environment owningEnvironment)
          Create a new instance of NativeError
 
Method Summary
 IObject construct(Environment environment, IObject[] arguments, int fileIndex, IRange sourceRegion)
          Constructs a new Object with using the passed arguments.
 void initializeProperties()
          Iniatialize the properties on this object
 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

JSErrorConstructor

public JSErrorConstructor(Environment owningEnvironment)
Create a new instance of NativeError

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

initializeProperties

public void initializeProperties()
Iniatialize the properties on this object


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)