|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.aptana.ide.parsing.AbstractParser
com.aptana.ide.editors.unified.parsing.AbstractUnifiedParser
com.aptana.ide.editor.scriptdoc.parsing.ScriptDocParser
public class ScriptDocParser
| Field Summary |
|---|
| Fields inherited from class com.aptana.ide.parsing.AbstractParser |
|---|
currentLexeme, EOS |
| Constructor Summary | |
|---|---|
ScriptDocParser()
Parses ScriptDoc comments, converting them to IDocumentation objects. |
|
| Method Summary | |
|---|---|
protected void |
advance()
Advance to the next lexeme in the lexeme stream |
protected ITokenList |
createLanguageTokenList()
createLanguageTokenList |
IParseState |
createParseState(IParseState parent)
Create a single parse state for this language. |
protected Lexeme |
getNextLexemeInLanguage()
getNextLexemeInLanguage |
FunctionDocumentation |
getParsedObject()
Returns the last parsed Object |
void |
initializeLexer()
Perform any initializations on the lexer now that it has been created |
void |
parseAll(IParseNode parentNode)
parseOneStatement |
void |
setSource(java.lang.String source)
Set the source code to parse |
protected void |
throwParseError(java.lang.String message)
Throw a parse exception |
| Methods inherited from class com.aptana.ide.editors.unified.parsing.AbstractUnifiedParser |
|---|
addLexerGrammar |
| Methods inherited from class com.aptana.ide.parsing.AbstractParser |
|---|
addChildParser, addChildParsers, addGrammars, addLexeme, assertAndAdvance, assertInSet, assertType, changeLanguage, flushCache, getEndingOffset, getLanguage, getLanguageChangeListener, getLexemeList, getLexer, getParseNodeFactory, getParserForMimeType, getParseState, hasParent, initializeLexers, inSet, isEOS, isType, parse, removeLexeme, setLanguageChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScriptDocParser()
throws ParserInitializationException
ParserInitializationException| Method Detail |
|---|
protected ITokenList createLanguageTokenList()
AbstractParser
createLanguageTokenList in class AbstractParserAbstractParser.createLanguageTokenList()public IParseState createParseState(IParseState parent)
IParser
createParseState in interface IParsercreateParseState in class AbstractParserAbstractParser.createParseState(com.aptana.ide.parsing.IParseState)
public void parseAll(IParseNode parentNode)
throws LexerException
AbstractParser
parseAll in interface IParserparseAll in class AbstractParserLexerExceptionAbstractParser.parseAll(com.aptana.ide.parsing.nodes.IParseNode)
public void initializeLexer()
throws LexerException
AbstractParser
initializeLexer in interface IParserinitializeLexer in class AbstractParserLexerExceptionAbstractParser.initializeLexer()public FunctionDocumentation getParsedObject()
public void setSource(java.lang.String source)
source - The source of this Documentation.
protected void advance()
throws LexerException
advance in class AbstractParserLexerException
protected Lexeme getNextLexemeInLanguage()
throws LexerException
AbstractParser
getNextLexemeInLanguage in class AbstractParserLexerExceptionAbstractParser.getNextLexemeInLanguage()
protected void throwParseError(java.lang.String message)
throws java.text.ParseException
throwParseError in class AbstractParsermessage - The exception message
java.text.ParseException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||