|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jdo.tck.util.signature.SignatureVerifier.Parser
For parsing of signature descriptor files.
Constructor Summary | |
protected |
SignatureVerifier.Parser()
|
Method Summary | |
protected java.lang.String |
demandIdentifier()
Parses the next token(s) and validates that it is an identifier. |
protected java.lang.String[] |
demandIdentifierList()
Parses a comma-separated list of identifiers. |
protected java.lang.String |
demandLiteral()
Parses the next token and validates that it is a literal. |
protected java.lang.String |
demandToken(java.lang.String token)
Parses the next token and validates it against an expected one. |
protected java.lang.String |
demandType()
Parses the next token and validates that it is a type expression. |
protected java.lang.String |
getLookAhead()
Retrieves the look-ahead token to be parsed next. |
protected java.lang.String |
msgUnexpectedEOF()
Returns an error message reporting an unextected end of file. |
protected java.lang.String |
msgUnexpectedToken(java.lang.String t)
Returns an error message reporting an unextected token. |
void |
parse(java.util.List descrFileNames)
Parses a list of signature descriptor files and processes the class definitions. |
protected java.lang.String |
parseClass()
Parses a class definition and provides the information to a handler. |
protected java.lang.String |
parseIdentifier()
Parses a (qualified) identifier. |
protected java.lang.String |
parseLiteral()
Parses a literal. |
protected java.lang.String |
parseMember()
Parses a class member declaration and provides the information to a field, constructor, or method handler. |
protected int |
parseModifiers()
Parses any available Java modifiers. |
protected java.lang.String[] |
parseParameterList()
Parses a comma-separated parameter list. |
protected java.lang.String |
parseToken()
Returns the next token to be parsed. |
protected java.lang.String |
parseType()
Parses a type expression. |
protected java.lang.String |
scanCharacterLiteral()
Scans for a character literal. |
protected java.lang.String |
scanIdentifier()
Scans for an (unqualified) identifier. |
protected java.lang.String |
scanNumberLiteral()
Scans for a number literal. |
protected java.lang.String |
scanStringLiteral()
Scans for a string literal. |
protected void |
setLookAhead(java.lang.String t)
Sets the look-ahead token to be parsed next. |
protected boolean |
skip()
Skips any "white space" and returns whether there are more characters to be parsed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected SignatureVerifier.Parser()
Method Detail |
protected java.lang.String msgUnexpectedEOF()
protected java.lang.String msgUnexpectedToken(java.lang.String t)
protected java.lang.String getLookAhead()
protected void setLookAhead(java.lang.String t)
protected boolean skip() throws java.io.IOException
java.io.IOException
protected java.lang.String scanIdentifier() throws java.io.IOException, java.text.ParseException
null
if the next token is not an identifier
java.io.IOException
java.text.ParseException
protected java.lang.String scanNumberLiteral() throws java.io.IOException, java.text.ParseException
null
if the next token is not a number
java.io.IOException
java.text.ParseException
protected java.lang.String scanCharacterLiteral() throws java.io.IOException, java.text.ParseException
null
if the next token is not a character
java.io.IOException
java.text.ParseException
protected java.lang.String scanStringLiteral() throws java.io.IOException, java.text.ParseException
null
if the next token is not a string
java.io.IOException
java.text.ParseException
protected java.lang.String parseToken() throws java.io.IOException, java.text.ParseException
null
java.io.IOException
java.text.ParseException
protected java.lang.String demandToken(java.lang.String token) throws java.io.IOException, java.text.ParseException
null
java.io.IOException
java.text.ParseException
protected java.lang.String parseLiteral() throws java.io.IOException, java.text.ParseException
null
if the next token is not a literal
java.io.IOException
java.text.ParseException
protected java.lang.String demandLiteral() throws java.io.IOException, java.text.ParseException
null
java.io.IOException
java.text.ParseException
protected int parseModifiers() throws java.io.IOException, java.text.ParseException
java.io.IOException
java.text.ParseException
protected java.lang.String parseIdentifier() throws java.io.IOException, java.text.ParseException
null
if the next token is not an identifier
java.io.IOException
java.text.ParseException
protected java.lang.String demandIdentifier() throws java.io.IOException, java.text.ParseException
null
java.io.IOException
java.text.ParseException
protected java.lang.String[] demandIdentifierList() throws java.io.IOException, java.text.ParseException
null
java.io.IOException
java.text.ParseException
protected java.lang.String parseType() throws java.io.IOException, java.text.ParseException
null
if the next token is not a type
java.io.IOException
java.text.ParseException
protected java.lang.String demandType() throws java.io.IOException, java.text.ParseException
null
java.io.IOException
java.text.ParseException
protected java.lang.String[] parseParameterList() throws java.io.IOException, java.text.ParseException
null
java.io.IOException
java.text.ParseException
protected java.lang.String parseMember() throws java.io.IOException, java.text.ParseException
null
if there's no member declaration
java.io.IOException
java.text.ParseException
protected java.lang.String parseClass() throws java.io.IOException, java.text.ParseException
null
if there's no class definition
java.io.IOException
java.text.ParseException
public void parse(java.util.List descrFileNames) throws java.io.IOException, java.text.ParseException
descrFileNames
- list of signature descriptor file names
java.io.IOException
java.text.ParseException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |