zeus.concepts
Class OntologyParser

java.lang.Object
  extended byzeus.concepts.OntologyParser
All Implemented Interfaces:
OntologyParserConstants

public class OntologyParser
extends java.lang.Object
implements OntologyParserConstants


Field Summary
static int BEGIN_ATTRIBUTE_ITEM
           
static int BEGIN_ATTRIBUTE_LIST
           
static int BEGIN_FACT_ITEM
           
static int BEGIN_FACTS
           
static int BEGIN_ONTOLOGY
           
static int BEGIN_PREAMBLE
           
static int BEGIN_RESTRICTION_ITEM
           
static int BEGIN_RESTRICTIONS
           
static int DECIMAL
           
static int DEFAULT
           
static int DEFAULT_TAG
           
static int DIGIT
           
static int END_ATTRIBUTE_ITEM
           
static int END_ATTRIBUTE_LIST
           
static int END_FACT_ITEM
           
static int END_FACTS
           
static int END_ONTOLOGY
           
static int END_PREAMBLE
           
static int END_RESTRICTION_ITEM
           
static int END_RESTRICTIONS
           
static int EOF
           
static int EXPONENT
           
static int FORMAL_COMMENT
           
static int ID
           
static int IN_FORMAL_COMMENT
           
static int IN_MULTI_LINE_COMMENT
           
static int IN_SINGLE_LINE_COMMENT
           
static int INTEGER
           
private  java.util.Vector jj_expentries
           
private  int[] jj_expentry
           
private  int jj_gen
           
(package private)  ASCII_CharStream jj_input_stream
           
private  int jj_kind
           
private  int[] jj_la1
           
private  int[] jj_la1_0
           
private  int[] jj_la1_1
           
 Token jj_nt
           
private  int jj_ntk
           
static int LETTER
           
static int LITERAL
           
static int MULTI_LINE_COMMENT
           
static int NAME
           
static int PARENT
           
static int REAL
           
static int RESTRICTION
           
static int SINGLE_LINE_COMMENT
           
static int SYSTEM
           
static int SYSTEM_NAME
           
 Token token
           
 OntologyParserTokenManager token_source
           
static java.lang.String[] tokenImage
           
static int TYPE
           
static int VALUE
           
static int VERSION
           
 
Constructor Summary
OntologyParser(java.io.InputStream stream)
           
OntologyParser(OntologyParserTokenManager tm)
           
 
Method Summary
 void disable_tracing()
           
 void enable_tracing()
           
 ParseException generateParseException()
           
 Token getNextToken()
           
 Token getToken(int index)
           
private  Token jj_consume_token(int kind)
           
private  int jj_ntk()
           
 void parse(OntologyDb model)
           
 void ReInit(java.io.InputStream stream)
           
 void ReInit(OntologyParserTokenManager tm)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

token_source

public OntologyParserTokenManager token_source

jj_input_stream

ASCII_CharStream jj_input_stream

token

public Token token

jj_nt

public Token jj_nt

jj_ntk

private int jj_ntk

jj_gen

private int jj_gen

jj_la1

private final int[] jj_la1

jj_la1_0

private final int[] jj_la1_0

jj_la1_1

private final int[] jj_la1_1

jj_expentries

private java.util.Vector jj_expentries

jj_expentry

private int[] jj_expentry

jj_kind

private int jj_kind

EOF

public static final int EOF
See Also:
Constant Field Values

SINGLE_LINE_COMMENT

public static final int SINGLE_LINE_COMMENT
See Also:
Constant Field Values

FORMAL_COMMENT

public static final int FORMAL_COMMENT
See Also:
Constant Field Values

MULTI_LINE_COMMENT

public static final int MULTI_LINE_COMMENT
See Also:
Constant Field Values

BEGIN_ONTOLOGY

public static final int BEGIN_ONTOLOGY
See Also:
Constant Field Values

BEGIN_PREAMBLE

public static final int BEGIN_PREAMBLE
See Also:
Constant Field Values

BEGIN_RESTRICTIONS

public static final int BEGIN_RESTRICTIONS
See Also:
Constant Field Values

BEGIN_RESTRICTION_ITEM

public static final int BEGIN_RESTRICTION_ITEM
See Also:
Constant Field Values

BEGIN_FACTS

public static final int BEGIN_FACTS
See Also:
Constant Field Values

BEGIN_FACT_ITEM

public static final int BEGIN_FACT_ITEM
See Also:
Constant Field Values

BEGIN_ATTRIBUTE_LIST

public static final int BEGIN_ATTRIBUTE_LIST
See Also:
Constant Field Values

BEGIN_ATTRIBUTE_ITEM

public static final int BEGIN_ATTRIBUTE_ITEM
See Also:
Constant Field Values

END_PREAMBLE

public static final int END_PREAMBLE
See Also:
Constant Field Values

END_RESTRICTION_ITEM

public static final int END_RESTRICTION_ITEM
See Also:
Constant Field Values

END_RESTRICTIONS

public static final int END_RESTRICTIONS
See Also:
Constant Field Values

END_ATTRIBUTE_ITEM

public static final int END_ATTRIBUTE_ITEM
See Also:
Constant Field Values

END_ATTRIBUTE_LIST

public static final int END_ATTRIBUTE_LIST
See Also:
Constant Field Values

END_FACT_ITEM

public static final int END_FACT_ITEM
See Also:
Constant Field Values

END_FACTS

public static final int END_FACTS
See Also:
Constant Field Values

END_ONTOLOGY

public static final int END_ONTOLOGY
See Also:
Constant Field Values

SYSTEM_NAME

public static final int SYSTEM_NAME
See Also:
Constant Field Values

SYSTEM

public static final int SYSTEM
See Also:
Constant Field Values

VERSION

public static final int VERSION
See Also:
Constant Field Values

NAME

public static final int NAME
See Also:
Constant Field Values

PARENT

public static final int PARENT
See Also:
Constant Field Values

TYPE

public static final int TYPE
See Also:
Constant Field Values

VALUE

public static final int VALUE
See Also:
Constant Field Values

RESTRICTION

public static final int RESTRICTION
See Also:
Constant Field Values

DEFAULT_TAG

public static final int DEFAULT_TAG
See Also:
Constant Field Values

ID

public static final int ID
See Also:
Constant Field Values

INTEGER

public static final int INTEGER
See Also:
Constant Field Values

REAL

public static final int REAL
See Also:
Constant Field Values

LITERAL

public static final int LITERAL
See Also:
Constant Field Values

EXPONENT

public static final int EXPONENT
See Also:
Constant Field Values

LETTER

public static final int LETTER
See Also:
Constant Field Values

DIGIT

public static final int DIGIT
See Also:
Constant Field Values

DECIMAL

public static final int DECIMAL
See Also:
Constant Field Values

DEFAULT

public static final int DEFAULT
See Also:
Constant Field Values

IN_SINGLE_LINE_COMMENT

public static final int IN_SINGLE_LINE_COMMENT
See Also:
Constant Field Values

IN_FORMAL_COMMENT

public static final int IN_FORMAL_COMMENT
See Also:
Constant Field Values

IN_MULTI_LINE_COMMENT

public static final int IN_MULTI_LINE_COMMENT
See Also:
Constant Field Values

tokenImage

public static final java.lang.String[] tokenImage
Constructor Detail

OntologyParser

public OntologyParser(java.io.InputStream stream)

OntologyParser

public OntologyParser(OntologyParserTokenManager tm)
Method Detail

parse

public final void parse(OntologyDb model)
                 throws ParseException
Throws:
ParseException

ReInit

public void ReInit(java.io.InputStream stream)

ReInit

public void ReInit(OntologyParserTokenManager tm)

jj_consume_token

private final Token jj_consume_token(int kind)
                              throws ParseException
Throws:
ParseException

getNextToken

public final Token getNextToken()

getToken

public final Token getToken(int index)

jj_ntk

private final int jj_ntk()

generateParseException

public final ParseException generateParseException()

enable_tracing

public final void enable_tracing()

disable_tracing

public final void disable_tracing()


Copyright © 2000-2003 BT Exact Technologies. All Rights Reserved.