|
||||||||||
| 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
public abstract class FunctionBase
| Field Summary | |
|---|---|
static IObject[] |
EmptyArgs
Empty arguments |
| Fields inherited from class com.aptana.ide.editor.js.runtime.ObjectBase |
|---|
NULL, UNDEFINED |
| Constructor Summary | |
|---|---|
FunctionBase()
Create a new instance of FunctionBase |
|
FunctionBase(IRange sourceRegion)
Create a new instance of FunctionBase |
|
| Method Summary | |
|---|---|
abstract IObject |
construct(Environment environment,
IObject[] arguments,
int fileIndex,
IRange sourceRegion)
Constructs a new Object with using the passed arguments. |
java.lang.String |
getClassName()
Returns the class name of this object. |
IInvokeTypeProvider |
getInvokeTypeProvider()
Get this functions invoke type provider |
java.lang.String[] |
getParameterNames()
Return a string array of the parameters for this IFunction |
abstract IObject |
invoke(Environment environment,
IObject[] arguments,
int fileIndex,
IRange sourceRegion)
Invoke this method with the specified parameters |
void |
setInvokeTypeProvider(IInvokeTypeProvider typeProvider)
Set a type provider to be used to determine this function's return type when this function is not documented |
| 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 |
| Methods inherited from interface com.aptana.ide.editor.js.runtime.IFunction |
|---|
getBodyScope, setBodyScope, setParameterNames |
| Field Detail |
|---|
public static final IObject[] EmptyArgs
| Constructor Detail |
|---|
public FunctionBase()
public FunctionBase(IRange sourceRegion)
sourceRegion - The region within the source that defines this object instance| Method Detail |
|---|
public java.lang.String getClassName()
IObject
getClassName in interface IObjectgetClassName in class ObjectBaseObjectBase.getClassName()public IInvokeTypeProvider getInvokeTypeProvider()
IFunction
getInvokeTypeProvider in interface IFunctionIFunction.getInvokeTypeProvider()public void setInvokeTypeProvider(IInvokeTypeProvider typeProvider)
IFunction
setInvokeTypeProvider in interface IFunctiontypeProvider - The type providerIFunction.setInvokeTypeProvider(com.aptana.ide.editor.js.runtime.IInvokeTypeProvider)public java.lang.String[] getParameterNames()
IFunction
getParameterNames in interface IFunctionIFunction.getParameterNames()
public abstract IObject construct(Environment environment,
IObject[] arguments,
int fileIndex,
IRange sourceRegion)
IFunction
construct in interface IFunctionarguments - 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
IFunction.construct(com.aptana.ide.editor.js.runtime.Environment, com.aptana.ide.editor.js.runtime.IObject[], int,
IRange)
public abstract IObject invoke(Environment environment,
IObject[] arguments,
int fileIndex,
IRange sourceRegion)
IFunction
invoke in interface IFunctionarguments - 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
IFunction.invoke(com.aptana.ide.editor.js.runtime.Environment, com.aptana.ide.editor.js.runtime.IObject[], int, IRange)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||