public class OCLLexer extends AbstractLexer
| Constructor and Description |
|---|
OCLLexer(Environment<?,?,?,?,?,?,?,?,?,?,?,?> environment) |
OCLLexer(Environment<?,?,?,?,?,?,?,?,?,?,?,?> environment,
char[] chars) |
OCLLexer(Environment<?,?,?,?,?,?,?,?,?,?,?,?> environment,
char[] input_chars,
String filename,
int tab) |
OCLLexer(Environment<?,?,?,?,?,?,?,?,?,?,?,?> environment,
Reader reader,
String filename) |
| Modifier and Type | Method and Description |
|---|---|
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,
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,
String filename)
Resets the lexer's input with the given char's array.
|
void |
reset(char[] input_chars,
String filename,
int tab)
Resets the lexer's input with the given char's array.
|
void |
reset(Reader reader,
String filename)
Resets the lexer's input with the given Reader
|
void |
resetKeywordLexer()
Rsets the lexer's keywordLexer
|
void |
ruleAction(int ruleNumber) |
getEnvironment, getInputChars, initialize, initialize, lexToTokens, lexToTokenspublic OCLLexer(Environment<?,?,?,?,?,?,?,?,?,?,?,?> environment)
public OCLLexer(Environment<?,?,?,?,?,?,?,?,?,?,?,?> environment, char[] chars)
public OCLLexer(Environment<?,?,?,?,?,?,?,?,?,?,?,?> environment, char[] input_chars, String filename, int tab)
public OCLLexer(Environment<?,?,?,?,?,?,?,?,?,?,?,?> environment, Reader reader, String filename) throws IOException
IOExceptionpublic 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()
AbstractLexerresetKeywordLexer in class AbstractLexerpublic void reset(char[] input_chars,
String filename)
AbstractLexerreset in class AbstractLexerinput_chars - the new lexer's inputfilename - a file name used for logging when encountering errors/warningspublic void reset(char[] input_chars,
String filename,
int tab)
AbstractLexerreset 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)
AbstractLexerparseStreamlexer in class AbstractLexerprsStream - the associated parseStreampublic void lexer(Monitor monitor,
DerivedPrsStream prsStream)
AbstractLexerparseStream and
the given monitor.lexer in class AbstractLexermonitor - the MonitorprsStream - the associated parseStreampublic void lexer(DerivedPrsStream prsStream, int start_offset, int end_offset)
AbstractLexerparseStream
in specific offset of the inputlexer in class AbstractLexerprsStream - the associated parseStreamstart_offset - the start offsetend_offset - the end offsetpublic void lexer(Monitor monitor,
DerivedPrsStream prsStream,
int start_offset,
int end_offset)
AbstractLexerparseStream
in specific offset of the inputlexer in class AbstractLexerprsStream - the associated parseStreamstart_offset - the start offsetend_offset - the end offsetpublic void reportLexicalError(int startLoc,
int endLoc)
reportLexicalError in class AbstractLexerstartLoc - the offset the error startsendLoc - the offset the error ends.public int[] getKeywordKinds()
AbstractLexergetKeywordKinds in class AbstractLexer@Deprecated public void initialize(char[] content, String filename)
reset(char [] content, String filename)public void reset(Reader reader, String filename) throws IOException
AbstractLexerreset in class AbstractLexerreader - the new lexer's inputfilename - a file name used for logging when encountering errors/warningsIOExceptionpublic void ruleAction(int ruleNumber)
Copyright © 2015 Open eHealth Foundation. All rights reserved.