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

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
All Implemented Interfaces:
IFunction, IObject, IRange, IDocumentationContainer
Direct Known Subclasses:
JSArrayConstructor, JSBooleanConstructor, JSDateConstructor, JSErrorConstructor, JSFunctionConstructor, JSNumberConstructor, JSObjectConstructor, JSRegExpConstructor, JSStringConstructor

public abstract class NativeConstructorBase
extends FunctionBase

Author:
Kevin Lindsey

Field Summary
protected  Environment owningEnvironment
          The environment that owns this instance
 
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
NativeConstructorBase(Environment owningEnvironment)
          Create a new instance of NativeFunctionBase
 
Method Summary
 IScope getBodyScope()
          Return the scope that is in affect within
 Environment getOwningEnvironment()
           
 void setBodyScope(IScope scope)
          Set the scope to be used in this IFunction's body
 void setParameterNames(java.lang.String[] parameters)
          Set the parameter names used to define this IFunction
 
Methods inherited from class com.aptana.ide.editor.js.runtime.FunctionBase
construct, getClassName, getInvokeTypeProvider, getParameterNames, invoke, 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
 

Field Detail

owningEnvironment

protected Environment owningEnvironment
The environment that owns this instance

Constructor Detail

NativeConstructorBase

public NativeConstructorBase(Environment owningEnvironment)
Create a new instance of NativeFunctionBase

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

getOwningEnvironment

public Environment getOwningEnvironment()
Returns:
Returns the environment that owns this instance

getBodyScope

public IScope getBodyScope()
Description copied from interface: IFunction
Return the scope that is in affect within

Returns:
Returns the IFunction body's scope
See Also:
IFunction.getBodyScope()

setBodyScope

public void setBodyScope(IScope scope)
Description copied from interface: IFunction
Set the scope to be used in this IFunction's body

Parameters:
scope - The new scope to use in this function's body
See Also:
IFunction.setBodyScope(com.aptana.ide.editor.js.runtime.IScope)

setParameterNames

public void setParameterNames(java.lang.String[] parameters)
Description copied from interface: IFunction
Set the parameter names used to define this IFunction

Parameters:
parameters - A string array of parameters names
See Also:
IFunction.setParameterNames(java.lang.String[])