|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.aptana.ide.editor.js.environment.LexemeBasedEnvironmentLoader
public class LexemeBasedEnvironmentLoader
Populates the JavaScript environment based on the current set of lexemes. It reloads the environment when files are opened or closed. This is the lexeme-based version of the parser in the pro product.
| Constructor Summary | |
|---|---|
LexemeBasedEnvironmentLoader(Environment env)
LexemeBasedEnvironmentLoader |
|
| Method Summary | |
|---|---|
int |
getFileIndex()
getFileIndex |
IScope |
getScope(int offset,
IScope defaultScope)
getScope |
void |
reloadEnvironment(IParseState parseState)
reloadEnvironment |
void |
replaceFunctionDeclaration(int offset,
IScope parentScope,
java.lang.String functionName,
JSFunction func)
Replaces an existing definition of a variable in a scope with a function. |
void |
unloadEnvironment()
unloadEnvironment |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LexemeBasedEnvironmentLoader(Environment env)
env - | Method Detail |
|---|
public int getFileIndex()
public IScope getScope(int offset,
IScope defaultScope)
offset - defaultScope -
public void reloadEnvironment(IParseState parseState)
parseState -
public void replaceFunctionDeclaration(int offset,
IScope parentScope,
java.lang.String functionName,
JSFunction func)
offset - parentScope - functionName - func - public void unloadEnvironment()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||