public class UGIReader extends Object implements UGIReaderConstants
Document.| Modifier and Type | Field and Description |
|---|---|
Token |
jj_nt
Next token.
|
Token |
token
Current token.
|
UGIReaderTokenManager |
token_source
Generated Token Manager.
|
ASSIGN, CLPAR, COLOR, COMMA, DEFAULT, DOT, ECOLOR, EOF, EXTERNALDECL, GLOBALDECL, GRAPHINFO, GUARD, ID, IMPORTS, INVARIANT, LCOLOR, LOCALDECL, LOCATION, LOCATIONNAME, NAT, OPPAR, PARAMLIST, PROCASSIGN, PROCESS, SELECT, SEMICOLON, SYNC, SYSTEMDEF, TEMPLATENAME, tokenImage, TRANS| Constructor and Description |
|---|
UGIReader(InputStream stream)
Constructor with InputStream.
|
UGIReader(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding
|
UGIReader(Reader stream)
Constructor.
|
UGIReader(UGIReaderTokenManager tm)
Constructor with generated Token Manager.
|
| Modifier and Type | Method and Description |
|---|---|
void |
color(Element element) |
void |
disable_tracing()
Disable tracing.
|
void |
enable_tracing()
Enable tracing.
|
ParseException |
generateParseException()
Generate ParseException.
|
Token |
getNextToken()
Get the next Token.
|
Token |
getToken(int index)
Get the specific Token.
|
void |
globalDeclGI() |
void |
graphInfo(Document document) |
void |
graphInfoItem() |
void |
importGI() |
int |
integer() |
void |
localDeclGraphInfo() |
Location |
locIdent() |
void |
nails(Edge edge) |
void |
nameGraphInfo() |
void |
paramListGraphInfo() |
void |
parse(Document document)
Parses the currently associated
java.io.InputStream
and modifies pos tags on elements in document . |
void |
procAssignGI() |
void |
PTGraphInfo(Document document) |
void |
ReInit(InputStream stream)
Reinitialise.
|
void |
ReInit(InputStream stream,
String encoding)
Reinitialise.
|
void |
ReInit(Reader stream)
Reinitialise.
|
void |
ReInit(UGIReaderTokenManager tm)
Reinitialise.
|
void |
singleCoord(Element element) |
void |
systemDefGI() |
Edge |
transIdent() |
public UGIReaderTokenManager token_source
public Token token
public Token jj_nt
public UGIReader(InputStream stream)
public UGIReader(InputStream stream, String encoding)
public UGIReader(Reader stream)
public UGIReader(UGIReaderTokenManager tm)
public void parse(Document document) throws Exception
java.io.InputStream
and modifies pos tags on elements in document .document - The DOM that the graphical info must modify.ParseException - If errors occur during parsing.Exceptionpublic final void graphInfo(Document document) throws ParseException, Exception
ParseExceptionExceptionpublic final void importGI()
throws ParseException
ParseExceptionpublic final void globalDeclGI()
throws ParseException
ParseExceptionpublic final void procAssignGI()
throws ParseException
ParseExceptionpublic final void systemDefGI()
throws ParseException
ParseExceptionpublic final void PTGraphInfo(Document document) throws ParseException, Exception
ParseExceptionExceptionpublic final void nameGraphInfo()
throws ParseException,
ParseException
ParseExceptionpublic final void paramListGraphInfo()
throws ParseException,
ParseException
ParseExceptionpublic final void localDeclGraphInfo()
throws ParseException
ParseExceptionpublic final void graphInfoItem()
throws ParseException,
ParseException
ParseExceptionpublic final Location locIdent() throws ParseException, ParseException
ParseExceptionpublic final Edge transIdent() throws ParseException, ParseException
ParseExceptionpublic final void color(Element element) throws ParseException
ParseExceptionpublic final void nails(Edge edge) throws ParseException
ParseExceptionpublic final void singleCoord(Element element) throws ParseException
ParseExceptionpublic final int integer()
throws ParseException
ParseExceptionpublic void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(UGIReaderTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
Copyright © 2012 Uppsala University and Aalborg University. All Rights Reserved.