|
||||||||||
| 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.JSScope
public class JSScope
| Field Summary | |
|---|---|
protected IScope |
_parentScope
This scope's parent scope |
| Fields inherited from class com.aptana.ide.editor.js.runtime.ObjectBase |
|---|
NULL, UNDEFINED |
| Constructor Summary | |
|---|---|
JSScope()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getClassName()
Returns the class name of this object. |
IFunction |
getEnclosingFunction()
Gets the enclosing function of this object, or null if global |
java.lang.String[] |
getLocalVariableNames()
Get all variable names that exist on this scope only (does not follow scope chain) |
IScope |
getOwningScope(java.lang.String variableName)
Returns the IScope object that holds the specified variable name |
IScope |
getParentScope()
Returns the parent scope of this object. |
Property |
getVariable(java.lang.String variableName)
Get the Property object for the associated variable name |
java.lang.String[] |
getVariableNames()
Return all variable names in this scope and in all parent scopes. |
Reference |
getVariableReference(java.lang.String variableName)
Get a reference object that points to the specified property name |
IObject |
getVariableValue(java.lang.String variableName,
int fileIndex,
int offset)
Get the named variable. |
boolean |
hasVariable(java.lang.String variableName)
Determine if the specified variable name is in the current scope chain |
void |
putVariableValue(java.lang.String variableName,
IObject value,
int fileIndex)
Set the named variable to the specified value. |
void |
setEnclosingFunction(IFunction enclosingFunction)
Sets the enclosing function of this object, or null if global |
void |
setParentScope(IScope parentScope)
Sets the parent scope of this object |
void |
unputVariableName(java.lang.String variableName)
Remove a reference to the specified variable name. |
| 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.IObject |
|---|
canPut, deletePropertyName, getInstance, getLocalProperty, getLocalPropertyCount, getLocalPropertyNames, getProperty, getPropertyNames, getPropertyNames, getPropertyValue, getPrototype, hasLocalProperty, hasProperty, putLocalProperty, putPropertyValue, putPropertyValue, setPrototype, unputPropertyName |
| Methods inherited from interface com.aptana.ide.lexer.IRange |
|---|
containsOffset, getEndingOffset, getLength, getStartingOffset, isEmpty |
| Methods inherited from interface com.aptana.ide.metadata.IDocumentationContainer |
|---|
getDocumentation, hasDocumentation, setDocumentation |
| Field Detail |
|---|
protected IScope _parentScope
| Constructor Detail |
|---|
public JSScope()
| Method Detail |
|---|
public java.lang.String getClassName()
IObject
getClassName in interface IObjectgetClassName in class ObjectBaseIObject.getClassName()public java.lang.String[] getLocalVariableNames()
IScope
getLocalVariableNames in interface IScopeIScope.getLocalVariableNames()public IScope getParentScope()
IScope
getParentScope in interface IScopeIScope.getParentScope()public void setParentScope(IScope parentScope)
IScope
setParentScope in interface IScopeparentScope - The new parent scopeIScope.setParentScope(com.aptana.ide.editor.js.runtime.IScope)public IScope getOwningScope(java.lang.String variableName)
IScope
getOwningScope in interface IScopevariableName - The name of the variable to look up
IScope.getOwningScope(java.lang.String)public boolean hasVariable(java.lang.String variableName)
IScope
hasVariable in interface IScopevariableName - The name of the variable to look up
IScope.hasVariable(java.lang.String)
public IObject getVariableValue(java.lang.String variableName,
int fileIndex,
int offset)
IScope
getVariableValue in interface IScopevariableName - The name of the variable to lookup in the current scopefileIndex - The file indexoffset - The file offset
IScope.getVariableValue(java.lang.String, int, int)public Property getVariable(java.lang.String variableName)
IScope
getVariable in interface IScopevariableName - The name of the Property to return
IScope.getVariable(java.lang.String)public Reference getVariableReference(java.lang.String variableName)
IScope
getVariableReference in interface IScopevariableName - The name of the property to refer to
IScope.getVariableReference(java.lang.String)public java.lang.String[] getVariableNames()
IScope
getVariableNames in interface IScopeIScope.getVariableNames()
public void putVariableValue(java.lang.String variableName,
IObject value,
int fileIndex)
IScope
putVariableValue in interface IScopevariableName - The name of the variable to setvalue - The value of the variablefileIndex - The file indexIScope.putVariableValue(java.lang.String, com.aptana.ide.editor.js.runtime.IObject, int)public void unputVariableName(java.lang.String variableName)
IScope
unputVariableName in interface IScopevariableName - The name of the variable to unputIScope.unputVariableName(java.lang.String)public IFunction getEnclosingFunction()
IScope
getEnclosingFunction in interface IScopeIScope.getEnclosingFunction()public void setEnclosingFunction(IFunction enclosingFunction)
IScope
setEnclosingFunction in interface IScopeIScope.setEnclosingFunction(com.aptana.ide.editor.js.runtime.IFunction)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||