Package org.coode.owlapi.obo12.parser
Class OBOParser
java.lang.Object
org.coode.owlapi.obo12.parser.OBOParser
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intRegularExpression Id.static final intRegularExpression Id.static final intRegularExpression Id.static final intRegularExpression Id.static final intLexical state.static final intEnd of File.static final intRegularExpression Id.static final intLexical state.static final intLexical state.static final intLexical state.static final intLexical state.static final intLexical state.org.coode.owlapi.obo12.parser.TokenNext token.static final intRegularExpression Id.static final intRegularExpression Id.static final intRegularExpression Id.static final intRegularExpression Id.static final intRegularExpression Id.static final intRegularExpression Id.static final intRegularExpression Id.static final intRegularExpression Id.static final intRegularExpression Id.static final intRegularExpression Id.static final intRegularExpression Id.static final intRegularExpression Id.org.coode.owlapi.obo12.parser.TokenCurrent token.org.coode.owlapi.obo12.parser.OBOParserTokenManagerGenerated Token Manager.static final String[]Literal token values. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal StringComment()final voidDisable tracing.final voidEnable tracing.org.coode.owlapi.obo12.parser.ParseExceptionGenerate ParseException.final org.coode.owlapi.obo12.parser.TokenGet the next Token.final org.coode.owlapi.obo12.parser.TokengetToken(int index) Get the specific Token.final voidHeader()final voidparse()voidvoidReInit(org.coode.owlapi.obo12.parser.OBOParserTokenManager tm) Reinitialise.voidReInit(org.coode.owlapi.obo12.parser.Provider stream) Reinitialise.voidsetHandler(OBOParserHandler handler) final voidStanza()final voidfinal booleanTrace enabled.
-
Field Details
-
token_source
public org.coode.owlapi.obo12.parser.OBOParserTokenManager token_sourceGenerated Token Manager. -
token
public org.coode.owlapi.obo12.parser.Token tokenCurrent token. -
jj_nt
public org.coode.owlapi.obo12.parser.Token jj_ntNext token. -
EOF
static final int EOFEnd of File.- See Also:
-
LINE_COMMENTED_OUT
static final int LINE_COMMENTED_OUTRegularExpression Id.- See Also:
-
OPEN_SQUARE_BRACKET
static final int OPEN_SQUARE_BRACKETRegularExpression Id.- See Also:
-
STANZA_TYPE
static final int STANZA_TYPERegularExpression Id.- See Also:
-
CLOSE_SQUARE_BRACKET
static final int CLOSE_SQUARE_BRACKETRegularExpression Id.- See Also:
-
TAG_NAME
static final int TAG_NAMERegularExpression Id.- See Also:
-
TAG_COLON
static final int TAG_COLONRegularExpression Id.- See Also:
-
QUOTED_STRING_START
static final int QUOTED_STRING_STARTRegularExpression Id.- See Also:
-
QUOTED_STRING
static final int QUOTED_STRINGRegularExpression Id.- See Also:
-
QUOTED_STRING_DBL_QUOTE_TERMINATOR
static final int QUOTED_STRING_DBL_QUOTE_TERMINATORRegularExpression Id.- See Also:
-
QUOTED_STRING_NEW_LINE_TERMINATOR
static final int QUOTED_STRING_NEW_LINE_TERMINATORRegularExpression Id.- See Also:
-
STRING
static final int STRINGRegularExpression Id.- See Also:
-
TAG_VALUE_WS
static final int TAG_VALUE_WSRegularExpression Id.- See Also:
-
TAG_END
static final int TAG_ENDRegularExpression Id.- See Also:
-
COMMENT_START
static final int COMMENT_STARTRegularExpression Id.- See Also:
-
COMMENT
static final int COMMENTRegularExpression Id.- See Also:
-
COMMENT_END
static final int COMMENT_ENDRegularExpression Id.- See Also:
-
ERROR
static final int ERRORRegularExpression Id.- See Also:
-
DEFAULT
static final int DEFAULTLexical state.- See Also:
-
IN_STANZA_HEADER
static final int IN_STANZA_HEADERLexical state.- See Also:
-
IN_TAG_VALUE_PAIR
static final int IN_TAG_VALUE_PAIRLexical state.- See Also:
-
IN_TAG_VALUE
static final int IN_TAG_VALUELexical state.- See Also:
-
IN_QUOTED_STRING
static final int IN_QUOTED_STRINGLexical state.- See Also:
-
IN_COMMENT
static final int IN_COMMENTLexical state.- See Also:
-
tokenImage
Literal token values.
-
-
Constructor Details
-
OBOParser
public OBOParser(org.coode.owlapi.obo12.parser.Provider stream) Constructor. -
OBOParser
public OBOParser(String dsl) throws org.coode.owlapi.obo12.parser.ParseException, org.coode.owlapi.obo12.parser.TokenMgrException Constructor.- Throws:
org.coode.owlapi.obo12.parser.ParseExceptionorg.coode.owlapi.obo12.parser.TokenMgrException
-
OBOParser
public OBOParser(org.coode.owlapi.obo12.parser.OBOParserTokenManager tm) Constructor with generated Token Manager.
-
-
Method Details
-
setHandler
-
parse
public final void parse() throws org.coode.owlapi.obo12.parser.ParseException- Throws:
org.coode.owlapi.obo12.parser.ParseException
-
Header
public final void Header() throws org.coode.owlapi.obo12.parser.ParseException- Throws:
org.coode.owlapi.obo12.parser.ParseException
-
Stanza
public final void Stanza() throws org.coode.owlapi.obo12.parser.ParseException- Throws:
org.coode.owlapi.obo12.parser.ParseException
-
TagValuePair
public final void TagValuePair() throws org.coode.owlapi.obo12.parser.ParseException- Throws:
org.coode.owlapi.obo12.parser.ParseException
-
Comment
- Throws:
org.coode.owlapi.obo12.parser.ParseException
-
ReInit
-
ReInit
public void ReInit(org.coode.owlapi.obo12.parser.Provider stream) Reinitialise. -
ReInit
public void ReInit(org.coode.owlapi.obo12.parser.OBOParserTokenManager tm) Reinitialise. -
getNextToken
public final org.coode.owlapi.obo12.parser.Token getNextToken()Get the next Token. -
getToken
public final org.coode.owlapi.obo12.parser.Token getToken(int index) Get the specific Token. -
generateParseException
public org.coode.owlapi.obo12.parser.ParseException generateParseException()Generate ParseException. -
trace_enabled
public final boolean trace_enabled()Trace enabled. -
enable_tracing
public final void enable_tracing()Enable tracing. -
disable_tracing
public final void disable_tracing()Disable tracing.
-