com.aptana.ide.editor.js.environment
Class LexemeConsumerHelper

java.lang.Object
  extended by com.aptana.ide.editor.js.environment.LexemeConsumerHelper

public class LexemeConsumerHelper
extends java.lang.Object

Author:
Spike Washburn

Method Summary
static Reference addDocHolderToEnvironment(java.lang.String id, IDocumentation doc, IParseState parseState)
          addDocHolderToEnvironment
protected  com.aptana.ide.editor.js.environment.LexemeConsumerHelper.LexemeConsumerResult consumeArrayLiteral(int startIndex, IScope scope)
          consumeArrayLiteral
protected  com.aptana.ide.editor.js.environment.LexemeConsumerHelper.LexemeConsumerResult consumeAssignment(int startIndex, IScope scope, JSReference reference, int referenceStartIndex)
          consumeAssignment
protected  com.aptana.ide.editor.js.environment.LexemeConsumerHelper.LexemeConsumerResult consumeFunction(int startIndex, IScope scope, JSReference ref, FunctionDocumentation functionDoc)
          consumeFunction
protected  com.aptana.ide.editor.js.environment.LexemeConsumerHelper.LexemeConsumerResult consumeIdentifier(int startIndex, IScope scope, boolean isVar)
          consumeIdentifier
protected  com.aptana.ide.editor.js.environment.LexemeConsumerHelper.LexemeConsumerResult consumeIdentifier(int startIndex, IScope scope, IObject parent)
          consumeIdentifier
protected  com.aptana.ide.editor.js.environment.LexemeConsumerHelper.LexemeConsumerResult consumeNewStatement(int startIndex, IScope scope)
          consumeNewStatement
protected  com.aptana.ide.editor.js.environment.LexemeConsumerHelper.LexemeConsumerResult consumeObjectLiteral(int startIndex, IScope scope, IObject objectLiteral)
          consumeObjectLiteral
protected  com.aptana.ide.editor.js.environment.LexemeConsumerHelper.LexemeConsumerResult consumeStatements(int startIndex, IScope scope)
          consumeStatements
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

consumeIdentifier

protected com.aptana.ide.editor.js.environment.LexemeConsumerHelper.LexemeConsumerResult consumeIdentifier(int startIndex,
                                                                                                           IScope scope,
                                                                                                           boolean isVar)
                                                                                                    throws EndOfFileException
consumeIdentifier

Parameters:
startIndex -
scope -
isVar -
Returns:
LexemeConsumerResult
Throws:
EndOfFileException

consumeIdentifier

protected com.aptana.ide.editor.js.environment.LexemeConsumerHelper.LexemeConsumerResult consumeIdentifier(int startIndex,
                                                                                                           IScope scope,
                                                                                                           IObject parent)
                                                                                                    throws EndOfFileException
consumeIdentifier

Parameters:
startIndex -
scope -
parent -
Returns:
LexemeConsumerResult
Throws:
EndOfFileException

consumeStatements

protected com.aptana.ide.editor.js.environment.LexemeConsumerHelper.LexemeConsumerResult consumeStatements(int startIndex,
                                                                                                           IScope scope)
                                                                                                    throws EndOfFileException
consumeStatements

Parameters:
startIndex -
scope -
Returns:
LexemeConsumerResult
Throws:
EndOfFileException

consumeObjectLiteral

protected com.aptana.ide.editor.js.environment.LexemeConsumerHelper.LexemeConsumerResult consumeObjectLiteral(int startIndex,
                                                                                                              IScope scope,
                                                                                                              IObject objectLiteral)
                                                                                                       throws EndOfFileException
consumeObjectLiteral

Parameters:
startIndex -
scope -
objectLiteral -
Returns:
LexemeConsumerResult
Throws:
EndOfFileException

consumeArrayLiteral

protected com.aptana.ide.editor.js.environment.LexemeConsumerHelper.LexemeConsumerResult consumeArrayLiteral(int startIndex,
                                                                                                             IScope scope)
                                                                                                      throws EndOfFileException
consumeArrayLiteral

Parameters:
startIndex -
scope -
Returns:
LexemeConsumerResult
Throws:
EndOfFileException

consumeFunction

protected com.aptana.ide.editor.js.environment.LexemeConsumerHelper.LexemeConsumerResult consumeFunction(int startIndex,
                                                                                                         IScope scope,
                                                                                                         JSReference ref,
                                                                                                         FunctionDocumentation functionDoc)
                                                                                                  throws EndOfFileException
consumeFunction

Parameters:
startIndex -
scope -
ref -
functionDoc -
Returns:
LexemeConsumerResult
Throws:
EndOfFileException

consumeAssignment

protected com.aptana.ide.editor.js.environment.LexemeConsumerHelper.LexemeConsumerResult consumeAssignment(int startIndex,
                                                                                                           IScope scope,
                                                                                                           JSReference reference,
                                                                                                           int referenceStartIndex)
                                                                                                    throws EndOfFileException
consumeAssignment

Parameters:
startIndex -
scope -
reference -
referenceStartIndex -
Returns:
LexemeConsumerResult
Throws:
EndOfFileException

consumeNewStatement

protected com.aptana.ide.editor.js.environment.LexemeConsumerHelper.LexemeConsumerResult consumeNewStatement(int startIndex,
                                                                                                             IScope scope)
                                                                                                      throws EndOfFileException
consumeNewStatement

Parameters:
startIndex -
scope -
Returns:
LexemeConsumerResult
Throws:
EndOfFileException

addDocHolderToEnvironment

public static Reference addDocHolderToEnvironment(java.lang.String id,
                                                  IDocumentation doc,
                                                  IParseState parseState)
addDocHolderToEnvironment

Parameters:
id -
doc -
parseState -
Returns:
Reference