|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.aptana.ide.editor.js.runtime.ObjectBase
com.aptana.ide.editor.js.runtime.FunctionBase
com.aptana.ide.editor.js.runtime.JSFunction
public class JSFunction
| Field Summary |
|---|
| 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 | |
|---|---|
JSFunction()
Create a new instance of JSFunction |
|
JSFunction(IRange sourceRegion)
Create a new instance of JSFunction |
|
| Method Summary | |
|---|---|
IObject |
construct(Environment environment,
IObject[] arguments,
int fileIndex,
IRange sourceRegion)
Creates an instance of this native type from a function instance, and sets the appropriate prototype for it. |
IScope |
getBodyScope()
Get the scope used for the body of this function |
java.lang.String |
getClassName()
Returns the class name of this object. |
JSObject |
getGuessedMemberObject()
Gets the guessed object that is the prototype for this member. |
java.lang.String |
getMemberOf()
|
java.lang.String[] |
getParameterNames()
Return a string array of the parameters for this IFunction |
IObject |
invoke(Environment environment,
IObject[] arguments,
int fileIndex,
IRange sourceRegion)
Invoke this method with the specified parameters |
void |
setBodyScope(IScope scope)
Set the scope used for the body of this function |
void |
setGuessedMemberObject(JSObject classObject)
Sets the guessed object that is the prototype for this member. |
void |
setParameterNames(java.lang.String[] parameters)
Set the parameter names used to define this IFunction |
void |
setParameters(java.lang.String[] parameters)
Set the list of parameters for this function |
| Methods inherited from class com.aptana.ide.editor.js.runtime.FunctionBase |
|---|
getInvokeTypeProvider, 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 |
|---|
public JSFunction()
public JSFunction(IRange sourceRegion)
sourceRegion - The region in the source file that defines this object instance| Method Detail |
|---|
public IScope getBodyScope()
public void setBodyScope(IScope scope)
scope - The new function body scopepublic java.lang.String getClassName()
IObject
getClassName in interface IObjectgetClassName in class FunctionBaseFunctionBase.getClassName()public void setParameterNames(java.lang.String[] parameters)
IFunction
parameters - A string array of parameters namesIFunction.setParameterNames(java.lang.String[])public java.lang.String[] getParameterNames()
IFunction
getParameterNames in interface IFunctiongetParameterNames in class FunctionBaseFunctionBase.getParameterNames()
public IObject construct(Environment environment,
IObject[] arguments,
int fileIndex,
IRange sourceRegion)
construct in interface IFunctionconstruct in class FunctionBaseenvironment - The environmentarguments - The arguments to use in constructing the new object.fileIndex - The file indexsourceRegion - The region of source code that is constructing this new instance
IFunction.construct(com.aptana.ide.editor.js.runtime.Environment, com.aptana.ide.editor.js.runtime.IObject[], int,
IRange)
public IObject invoke(Environment environment,
IObject[] arguments,
int fileIndex,
IRange sourceRegion)
IFunction
invoke in interface IFunctioninvoke in class FunctionBasearguments - The arguments to use in constructing the new object.fileIndex - The file indexsourceRegion - The region of text within the source file that represents the construction of this instance
FunctionBase.invoke(com.aptana.ide.editor.js.runtime.Environment, com.aptana.ide.editor.js.runtime.IObject[], int,
IRange)public void setParameters(java.lang.String[] parameters)
parameters - public java.lang.String getMemberOf()
public JSObject getGuessedMemberObject()
public void setGuessedMemberObject(JSObject classObject)
classObject -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||