|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ocl.lpg.AbstractLexer
org.eclipse.ocl.parser.backtracking.OCLBacktrackingLexer
public class OCLBacktrackingLexer
| Constructor Summary | |
|---|---|
OCLBacktrackingLexer(Environment<?,?,?,?,?,?,?,?,?,?,?,?> environment)
|
|
OCLBacktrackingLexer(Environment<?,?,?,?,?,?,?,?,?,?,?,?> environment,
char[] chars)
|
|
OCLBacktrackingLexer(Environment<?,?,?,?,?,?,?,?,?,?,?,?> environment,
char[] input_chars,
java.lang.String filename,
int tab)
|
|
OCLBacktrackingLexer(Environment<?,?,?,?,?,?,?,?,?,?,?,?> environment,
java.io.Reader reader,
java.lang.String filename)
|
|
| Method Summary | |
|---|---|
DerivedLexStream |
getILexStream()
|
int[] |
getKeywordKinds()
Queries the token kinds, as defined by my keyword lexer, of tokens that are keywords in by grammar. |
int |
getLeftSpan()
|
ILexStream |
getLexStream()
Deprecated. replaced by getILexStream() |
Environment<?,?,?,?,?,?,?,?,?,?,?,?> |
getOCLEnvironment()
|
LexParser |
getParser()
|
ParseTable |
getParseTable()
|
int |
getRhsFirstTokenIndex(int i)
|
int |
getRhsLastTokenIndex(int i)
|
int |
getRightSpan()
|
int |
getToken(int i)
|
void |
initialize(char[] content,
java.lang.String filename)
Deprecated. function replaced by reset(char [] content, String filename) |
void |
lexer(DerivedPrsStream prsStream)
Runs the lexer's with the provided parseStream |
void |
lexer(DerivedPrsStream prsStream,
int start_offset,
int end_offset)
Runs the lexer's with the provided parseStream
in specific offset of the input |
void |
lexer(Monitor monitor,
DerivedPrsStream prsStream)
Runs the lexer's with the provided parseStream and
the given monitor. |
void |
lexer(Monitor monitor,
DerivedPrsStream prsStream,
int start_offset,
int end_offset)
Runs the lexer's with the provided parseStream
in specific offset of the input |
void |
reportLexicalError(int startLoc,
int endLoc)
If a parse stream was not passed to this Lexical analyser then we simply report a lexical error. |
void |
reset(char[] input_chars,
java.lang.String filename)
Resets the lexer's input with the given char's array. |
void |
reset(char[] input_chars,
java.lang.String filename,
int tab)
Resets the lexer's input with the given char's array. |
void |
reset(java.io.Reader reader,
java.lang.String filename)
Resets the lexer's input with the given Reader |
void |
resetKeywordLexer()
Rsets the lexer's keywordLexer |
void |
ruleAction(int ruleNumber)
|
| Methods inherited from class org.eclipse.ocl.lpg.AbstractLexer |
|---|
getEnvironment, getInputChars, initialize, initialize, lexToTokens, lexToTokens |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OCLBacktrackingLexer(Environment<?,?,?,?,?,?,?,?,?,?,?,?> environment)
public OCLBacktrackingLexer(Environment<?,?,?,?,?,?,?,?,?,?,?,?> environment,
char[] chars)
public OCLBacktrackingLexer(Environment<?,?,?,?,?,?,?,?,?,?,?,?> environment,
char[] input_chars,
java.lang.String filename,
int tab)
public OCLBacktrackingLexer(Environment<?,?,?,?,?,?,?,?,?,?,?,?> environment,
java.io.Reader reader,
java.lang.String filename)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public ParseTable getParseTable()
getParseTable in class AbstractLexerParseTablepublic LexParser getParser()
getParser in class AbstractLexerLexParserpublic int getToken(int i)
public int getRhsFirstTokenIndex(int i)
public int getRhsLastTokenIndex(int i)
public int getLeftSpan()
public int getRightSpan()
public void resetKeywordLexer()
AbstractLexer
resetKeywordLexer in class AbstractLexer
public void reset(char[] input_chars,
java.lang.String filename)
AbstractLexer
reset in class AbstractLexerinput_chars - the new lexer's inputfilename - a file name used for logging when encountering errors/warnings
public void reset(char[] input_chars,
java.lang.String filename,
int tab)
AbstractLexer
reset in class AbstractLexerinput_chars - the new lexer's inputfilename - a file name used for logging when encountering errors/warningstab - lexer's tab length.public Environment<?,?,?,?,?,?,?,?,?,?,?,?> getOCLEnvironment()
public DerivedLexStream getILexStream()
getILexStream in class AbstractLexerlexStream@Deprecated public ILexStream getLexStream()
getILexStream()
getLexStream in class AbstractLexerlexStreampublic void lexer(DerivedPrsStream prsStream)
AbstractLexerparseStream
lexer in class AbstractLexerprsStream - the associated parseStream
public void lexer(Monitor monitor,
DerivedPrsStream prsStream)
AbstractLexerparseStream and
the given monitor.
lexer in class AbstractLexermonitor - the MonitorprsStream - the associated parseStream
public void lexer(DerivedPrsStream prsStream,
int start_offset,
int end_offset)
AbstractLexerparseStream
in specific offset of the input
lexer in class AbstractLexerprsStream - the associated parseStreamstart_offset - the start offsetend_offset - the end offset
public void lexer(Monitor monitor,
DerivedPrsStream prsStream,
int start_offset,
int end_offset)
AbstractLexerparseStream
in specific offset of the input
lexer in class AbstractLexerprsStream - the associated parseStreamstart_offset - the start offsetend_offset - the end offset
public void reportLexicalError(int startLoc,
int endLoc)
reportLexicalError in class AbstractLexerstartLoc - the offset the error startsendLoc - the offset the error ends.public int[] getKeywordKinds()
AbstractLexer
getKeywordKinds in class AbstractLexer
@Deprecated
public void initialize(char[] content,
java.lang.String filename)
reset(char [] content, String filename)
public void reset(java.io.Reader reader,
java.lang.String filename)
throws java.io.IOException
AbstractLexer
reset in class AbstractLexerreader - the new lexer's inputfilename - a file name used for logging when encountering errors/warnings
java.io.IOExceptionpublic void ruleAction(int ruleNumber)
|
Copyright 2002, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||