public class OBOParser extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CLOSE_SQUARE_BRACKET
RegularExpression Id.
|
static int |
COMMENT
RegularExpression Id.
|
static int |
COMMENT_END
RegularExpression Id.
|
static int |
COMMENT_START
RegularExpression Id.
|
static int |
DEFAULT
Lexical state.
|
static int |
EOF
End of File.
|
static int |
ERROR
RegularExpression Id.
|
static int |
IN_COMMENT
Lexical state.
|
static int |
IN_QUOTED_STRING
Lexical state.
|
static int |
IN_STANZA_HEADER
Lexical state.
|
static int |
IN_TAG_VALUE
Lexical state.
|
static int |
IN_TAG_VALUE_PAIR
Lexical state.
|
org.coode.owlapi.obo12.parser.Token |
jj_nt
Next token.
|
static int |
LINE_COMMENTED_OUT
RegularExpression Id.
|
static int |
OPEN_SQUARE_BRACKET
RegularExpression Id.
|
static int |
QUOTED_STRING
RegularExpression Id.
|
static int |
QUOTED_STRING_DBL_QUOTE_TERMINATOR
RegularExpression Id.
|
static int |
QUOTED_STRING_NEW_LINE_TERMINATOR
RegularExpression Id.
|
static int |
QUOTED_STRING_START
RegularExpression Id.
|
static int |
STANZA_TYPE
RegularExpression Id.
|
static int |
STRING
RegularExpression Id.
|
static int |
TAG_COLON
RegularExpression Id.
|
static int |
TAG_END
RegularExpression Id.
|
static int |
TAG_NAME
RegularExpression Id.
|
static int |
TAG_VALUE_WS
RegularExpression Id.
|
org.coode.owlapi.obo12.parser.Token |
token
Current token.
|
org.coode.owlapi.obo12.parser.OBOParserTokenManager |
token_source
Generated Token Manager.
|
static String[] |
tokenImage
Literal token values.
|
| Constructor and Description |
|---|
OBOParser(org.coode.owlapi.obo12.parser.OBOParserTokenManager tm)
Constructor with generated Token Manager.
|
OBOParser(org.coode.owlapi.obo12.parser.Provider stream)
Constructor.
|
OBOParser(String dsl)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
Comment() |
void |
disable_tracing()
Disable tracing.
|
void |
enable_tracing()
Enable tracing.
|
org.coode.owlapi.obo12.parser.ParseException |
generateParseException()
Generate ParseException.
|
org.coode.owlapi.obo12.parser.Token |
getNextToken()
Get the next Token.
|
org.coode.owlapi.obo12.parser.Token |
getToken(int index)
Get the specific Token.
|
void |
Header() |
void |
parse() |
void |
ReInit(org.coode.owlapi.obo12.parser.OBOParserTokenManager tm)
Reinitialise.
|
void |
ReInit(org.coode.owlapi.obo12.parser.Provider stream)
Reinitialise.
|
void |
ReInit(String s) |
void |
setHandler(OBOParserHandler handler) |
void |
Stanza() |
void |
TagValuePair() |
boolean |
trace_enabled()
Trace enabled.
|
public org.coode.owlapi.obo12.parser.OBOParserTokenManager token_source
public org.coode.owlapi.obo12.parser.Token token
public org.coode.owlapi.obo12.parser.Token jj_nt
public static final int EOF
public static final int LINE_COMMENTED_OUT
public static final int OPEN_SQUARE_BRACKET
public static final int STANZA_TYPE
public static final int CLOSE_SQUARE_BRACKET
public static final int TAG_NAME
public static final int TAG_COLON
public static final int QUOTED_STRING_START
public static final int QUOTED_STRING
public static final int QUOTED_STRING_DBL_QUOTE_TERMINATOR
public static final int QUOTED_STRING_NEW_LINE_TERMINATOR
public static final int STRING
public static final int TAG_VALUE_WS
public static final int TAG_END
public static final int COMMENT_START
public static final int COMMENT
public static final int COMMENT_END
public static final int ERROR
public static final int DEFAULT
public static final int IN_STANZA_HEADER
public static final int IN_TAG_VALUE_PAIR
public static final int IN_TAG_VALUE
public static final int IN_QUOTED_STRING
public static final int IN_COMMENT
public static final String[] tokenImage
public OBOParser(org.coode.owlapi.obo12.parser.Provider stream)
public OBOParser(String dsl) throws org.coode.owlapi.obo12.parser.ParseException, org.coode.owlapi.obo12.parser.TokenMgrException
org.coode.owlapi.obo12.parser.ParseExceptionorg.coode.owlapi.obo12.parser.TokenMgrExceptionpublic OBOParser(org.coode.owlapi.obo12.parser.OBOParserTokenManager tm)
public void setHandler(OBOParserHandler handler)
public final void parse()
throws org.coode.owlapi.obo12.parser.ParseException
org.coode.owlapi.obo12.parser.ParseExceptionpublic final void Header()
throws org.coode.owlapi.obo12.parser.ParseException
org.coode.owlapi.obo12.parser.ParseExceptionpublic final void Stanza()
throws org.coode.owlapi.obo12.parser.ParseException
org.coode.owlapi.obo12.parser.ParseExceptionpublic final void TagValuePair()
throws org.coode.owlapi.obo12.parser.ParseException
org.coode.owlapi.obo12.parser.ParseExceptionpublic final String Comment() throws org.coode.owlapi.obo12.parser.ParseException
org.coode.owlapi.obo12.parser.ParseExceptionpublic void ReInit(String s)
public void ReInit(org.coode.owlapi.obo12.parser.Provider stream)
public void ReInit(org.coode.owlapi.obo12.parser.OBOParserTokenManager tm)
public final org.coode.owlapi.obo12.parser.Token getNextToken()
public final org.coode.owlapi.obo12.parser.Token getToken(int index)
public org.coode.owlapi.obo12.parser.ParseException generateParseException()
public final boolean trace_enabled()
public final void enable_tracing()
public final void disable_tracing()
Copyright © 2021 The University of Manchester. All rights reserved.