|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectgov.nist.core.StringTokenizer
gov.nist.core.LexerCore
public class LexerCore
A lexical analyzer that is used by all parsers in our implementation.
フィールドの概要 | |
---|---|
static int |
ALPHA
|
static int |
AND
|
static int |
AT
|
static int |
BACK_QUOTE
|
static int |
BACKSLASH
|
static int |
BAR
|
static int |
COLON
|
static int |
DIGIT
|
static int |
DOLLAR
|
static int |
DOT
|
static int |
DOUBLEQUOTE
|
static int |
END
|
static int |
EQUALS
|
static int |
EXCLAMATION
|
static int |
GREATER_THAN
|
static int |
HAT
|
static int |
HT
|
static int |
ID
|
static int |
L_CURLY
|
static int |
L_SQUARE_BRACKET
|
static int |
LESS_THAN
|
static int |
LPAREN
|
static int |
MINUS
|
static int |
NULL
|
static int |
PERCENT
|
static int |
PLUS
|
static int |
POUND
|
static int |
QUESTION
|
static int |
QUOTE
|
static int |
R_CURLY
|
static int |
R_SQUARE_BRACKET
|
static int |
RPAREN
|
static int |
SEMICOLON
|
static int |
SLASH
|
static int |
SP
|
static int |
STAR
|
static int |
START
|
static int |
TILDE
|
static int |
UNDERSCORE
|
static int |
WHITESPACE
|
コンストラクタの概要 | |
---|---|
LexerCore(java.lang.String lexerName)
|
|
LexerCore(java.lang.String lexerName,
java.lang.String buffer)
Initialize the lexer with a buffer. |
メソッドの概要 | |
---|---|
java.lang.String |
byteStringNoComma()
Return a substring containing no commas |
java.lang.String |
byteStringNoSemicolon()
Return a substring containing no semicolons. |
static java.lang.String |
charAsString(char ch)
|
java.lang.String |
charAsString(int nchars)
Lookahead in the inputBuffer for n chars and return as a string. |
java.lang.String |
comment()
Parse a comment string cursor is at a "(". |
java.text.ParseException |
createParseException()
Create a parse exception. |
java.lang.String |
getBuffer()
Get the buffer. |
java.lang.String |
getNextId()
Get the next id. |
Token |
getNextToken()
|
int |
getPtr()
Get the read pointer. |
java.lang.String |
getRest()
Get the rest of the String |
java.lang.String |
getString(char c)
Get the sub-String until the character is encountered |
java.lang.String |
lookupToken(int value)
|
int |
markInputPosition()
Mark the position for backtracking. |
Token |
match(int tok)
Match the given token or throw an exception if no such token can be matched. |
java.lang.String |
number()
Get and consume the next number. |
java.lang.String |
peekNextId()
Peek the next id but dont move the buffer pointer forward. |
Token |
peekNextToken()
Look ahead for one token. |
java.util.Vector |
peekNextToken(int ntokens)
|
java.lang.String |
quotedString()
Parse a comment string cursor is at a ". |
void |
rewindInputPosition(int position)
Rewind the input ptr to the marked position. |
void |
selectLexer(java.lang.String lexerName)
|
void |
SPorHT()
|
boolean |
startsId()
|
java.lang.String |
ttoken()
|
java.lang.String |
ttokenAllowSpace()
|
クラス gov.nist.core.StringTokenizer から継承されたメソッド |
---|
consume, consume, getLine, getLines, getNextChar, getNextToken, getSDPFieldName, hasMoreChars, isAlpha, isDigit, isHexDigit, lookAhead, lookAhead, nextToken, peekLine |
クラス java.lang.Object から継承されたメソッド |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
public static final int START
public static final int END
public static final int ID
public static final int WHITESPACE
public static final int DIGIT
public static final int ALPHA
public static final int BACKSLASH
public static final int QUOTE
public static final int AT
public static final int SP
public static final int HT
public static final int COLON
public static final int STAR
public static final int DOLLAR
public static final int PLUS
public static final int POUND
public static final int MINUS
public static final int DOUBLEQUOTE
public static final int TILDE
public static final int BACK_QUOTE
public static final int NULL
public static final int EQUALS
public static final int SEMICOLON
public static final int SLASH
public static final int L_SQUARE_BRACKET
public static final int R_SQUARE_BRACKET
public static final int R_CURLY
public static final int L_CURLY
public static final int HAT
public static final int BAR
public static final int DOT
public static final int EXCLAMATION
public static final int LPAREN
public static final int RPAREN
public static final int GREATER_THAN
public static final int LESS_THAN
public static final int PERCENT
public static final int QUESTION
public static final int AND
public static final int UNDERSCORE
コンストラクタの詳細 |
---|
public LexerCore(java.lang.String lexerName)
public LexerCore(java.lang.String lexerName, java.lang.String buffer)
メソッドの詳細 |
---|
public java.lang.String lookupToken(int value)
public void selectLexer(java.lang.String lexerName)
public java.lang.String peekNextId()
public java.lang.String getNextId()
public Token getNextToken()
public Token peekNextToken() throws java.text.ParseException
java.text.ParseException
public java.util.Vector peekNextToken(int ntokens) throws java.text.ParseException
java.text.ParseException
public Token match(int tok) throws java.text.ParseException
java.text.ParseException
public void SPorHT()
public boolean startsId()
public java.lang.String ttoken()
public java.lang.String ttokenAllowSpace()
public java.lang.String quotedString() throws java.text.ParseException
java.text.ParseException
public java.lang.String comment() throws java.text.ParseException
java.text.ParseException
public java.lang.String byteStringNoSemicolon()
public java.lang.String byteStringNoComma()
public static java.lang.String charAsString(char ch)
public java.lang.String charAsString(int nchars)
public java.lang.String number() throws java.text.ParseException
java.text.ParseException
public int markInputPosition()
public void rewindInputPosition(int position)
position
- - the position to rewind the parser to.public java.lang.String getRest()
public java.lang.String getString(char c) throws java.text.ParseException
c
- the character to match
java.text.ParseException
public int getPtr()
public java.lang.String getBuffer()
public java.text.ParseException createParseException()
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |