public class CGIFParser extends Object implements CGIFParserConstants
Modifier and Type | Class and Description |
---|---|
(package private) static class |
CGIFParser.JJCalls |
private static class |
CGIFParser.LookaheadSuccess |
Modifier and Type | Field and Description |
---|---|
private CGIFParserHelper |
helper |
private CGIFParser.JJCalls[] |
jj_2_rtns |
private int |
jj_endpos |
private List<int[]> |
jj_expentries |
private int[] |
jj_expentry |
private int |
jj_gc |
private int |
jj_gen |
(package private) SimpleCharStream |
jj_input_stream |
private int |
jj_kind |
private int |
jj_la |
private int[] |
jj_la1 |
private static int[] |
jj_la1_0 |
private static int[] |
jj_la1_1 |
private Token |
jj_lastpos |
private int[] |
jj_lasttokens |
private CGIFParser.LookaheadSuccess |
jj_ls |
Token |
jj_nt
Next token.
|
private int |
jj_ntk |
private boolean |
jj_rescan |
private Token |
jj_scanpos |
Token |
token
Current token.
|
CGIFParserTokenManager |
token_source
Generated Token Manager.
|
private Graph |
topGraph |
private boolean |
trace_enabled |
private int |
trace_indent |
ATSIGN, BAR, CHARACTER_LITERAL, COLL, COLON, COMMA, DECIMAL_LITERAL, DEFAULT, DIST, DOUBLEQUOTE, EOF, EXPONENT, FLOATING_POINT_LITERAL, FORALL, GREATERTHAN, HEX_LITERAL, IDENTIFIER, IN_MULTI_LINE_COMMENT, INTEGER_LITERAL, LBRACE, LBRACKET, LESSTHAN, LETTER, LPAREN, MULTI_LINE_COMMENT, OCTAL_LITERAL, PART_LETTER, POUNDSIGN, QUESTIONMARK, QUOTED_STRING, RBRACE, RBRACKET, RPAREN, STAR, SUBTYPE, tokenImage, TYPE
Constructor and Description |
---|
CGIFParser(CGIFParserTokenManager tm)
Constructor with generated Token Manager.
|
CGIFParser(InputStream stream)
Constructor with InputStream.
|
CGIFParser(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding
|
CGIFParser(Reader stream)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
actor(Graph g) |
String |
cardinality() |
void |
cgifTerm(Graph g) |
void |
concept(Graph g) |
void |
disable_tracing()
Disable tracing.
|
void |
enable_tracing()
Enable tracing.
|
ParseException |
generateParseException()
Generate ParseException.
|
Graph |
getGraph() |
Token |
getNextToken()
Get the next Token.
|
Token |
getToken(int index)
Get the specific Token.
|
Graph |
graph(Graph enclosingGraph)
parses a graph and adds its elements to .
|
private boolean |
jj_2_1(int xla) |
private boolean |
jj_2_2(int xla) |
private boolean |
jj_2_3(int xla) |
private boolean |
jj_2_4(int xla) |
private boolean |
jj_2_5(int xla) |
private boolean |
jj_3_1() |
private boolean |
jj_3_2() |
private boolean |
jj_3_3() |
private boolean |
jj_3_4() |
private boolean |
jj_3_5() |
private boolean |
jj_3R_10() |
private boolean |
jj_3R_11() |
private boolean |
jj_3R_12() |
private boolean |
jj_3R_13() |
private boolean |
jj_3R_14() |
private boolean |
jj_3R_15() |
private boolean |
jj_3R_16() |
private boolean |
jj_3R_17() |
private boolean |
jj_3R_18() |
private boolean |
jj_3R_19() |
private boolean |
jj_3R_6() |
private boolean |
jj_3R_7() |
private boolean |
jj_3R_8() |
private boolean |
jj_3R_9() |
private void |
jj_add_error_token(int kind,
int pos) |
private Token |
jj_consume_token(int kind) |
private static void |
jj_la1_init_0() |
private static void |
jj_la1_init_1() |
private int |
jj_ntk_f() |
private void |
jj_rescan_token() |
private void |
jj_save(int index,
int xla) |
private boolean |
jj_scan_token(int kind) |
Graph |
parseCGIFString(String contents) |
String |
prefix() |
Referent |
referent() |
void |
ReInit(CGIFParserTokenManager tm)
Reinitialise.
|
void |
ReInit(InputStream stream)
Reinitialise.
|
void |
ReInit(InputStream stream,
String encoding)
Reinitialise.
|
void |
ReInit(Reader stream)
Reinitialise.
|
void |
relation(Graph g) |
void |
reset() |
Referent |
setReferent() |
void |
topLevelGraph()
Root production.
|
private void |
trace_call(String s) |
private void |
trace_return(String s) |
private void |
trace_scan(Token t1,
int t2) |
private void |
trace_token(Token t,
String where) |
Token |
typelabel() |
String |
variable() |
private CGIFParserHelper helper
private Graph topGraph
public CGIFParserTokenManager token_source
SimpleCharStream jj_input_stream
public Token token
public Token jj_nt
private int jj_ntk
private Token jj_scanpos
private Token jj_lastpos
private int jj_la
private int jj_gen
private final int[] jj_la1
private static int[] jj_la1_0
private static int[] jj_la1_1
private final CGIFParser.JJCalls[] jj_2_rtns
private boolean jj_rescan
private int jj_gc
private final CGIFParser.LookaheadSuccess jj_ls
private List<int[]> jj_expentries
private int[] jj_expentry
private int jj_kind
private int[] jj_lasttokens
private int jj_endpos
private int trace_indent
private boolean trace_enabled
public CGIFParser(InputStream stream)
public CGIFParser(InputStream stream, String encoding)
public CGIFParser(Reader stream)
public CGIFParser(CGIFParserTokenManager tm)
public Graph parseCGIFString(String contents) throws ParseException
ParseException
public void reset()
public Graph getGraph()
public final void topLevelGraph() throws ParseException
ParseException
public final Graph graph(Graph enclosingGraph) throws ParseException
ParseException
public final void cgifTerm(Graph g) throws ParseException
ParseException
public final void concept(Graph g) throws ParseException
ParseException
public final Token typelabel() throws ParseException
ParseException
public final Referent referent() throws ParseException
ParseException
public final void relation(Graph g) throws ParseException
ParseException
public final void actor(Graph g) throws ParseException
ParseException
public final String variable() throws ParseException
ParseException
public final String prefix() throws ParseException
ParseException
public final Referent setReferent() throws ParseException
ParseException
public final String cardinality() throws ParseException
ParseException
private boolean jj_2_1(int xla)
private boolean jj_2_2(int xla)
private boolean jj_2_3(int xla)
private boolean jj_2_4(int xla)
private boolean jj_2_5(int xla)
private boolean jj_3R_11()
private boolean jj_3R_13()
private boolean jj_3R_16()
private boolean jj_3R_7()
private boolean jj_3_1()
private boolean jj_3R_15()
private boolean jj_3R_10()
private boolean jj_3R_19()
private boolean jj_3R_6()
private boolean jj_3R_9()
private boolean jj_3_4()
private boolean jj_3_3()
private boolean jj_3R_18()
private boolean jj_3R_12()
private boolean jj_3R_17()
private boolean jj_3R_14()
private boolean jj_3_5()
private boolean jj_3_2()
private boolean jj_3R_8()
private static void jj_la1_init_0()
private static void jj_la1_init_1()
public void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(CGIFParserTokenManager tm)
private Token jj_consume_token(int kind) throws ParseException
ParseException
private boolean jj_scan_token(int kind)
public final Token getNextToken()
public final Token getToken(int index)
private int jj_ntk_f()
private void jj_add_error_token(int kind, int pos)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
private void trace_call(String s)
private void trace_return(String s)
private void trace_token(Token t, String where)
private void trace_scan(Token t1, int t2)
private void jj_rescan_token()
private void jj_save(int index, int xla)