Package com.uppaal.model.io2
Class XTAReader
java.lang.Object
com.uppaal.model.io2.XTAReader
- All Implemented Interfaces:
XTAReaderConstants
public class XTAReader extends Object implements XTAReaderConstants
-
Field Summary
Fields Modifier and Type Field Description Token
jj_nt
Next token.Token
token
Current token.XTAReaderTokenManager
token_source
Generated Token Manager.Fields inherited from interface com.uppaal.model.io2.XTAReaderConstants
ASSIGN, BECOMES, BODY, BRANCHPOINT, CHAN, CLBR, CLBRACE, CLOCK, CLOSE, COLON, COMMA, COMMIT, CONST, DEFAULT, DOT, DOUBLE, EOF, EQUAL, ERROR, EXCLMARK, EXTERNAL, FROM, GEQ, GRT, GUARD, ID, IMPLIES, IMPORT, INIT, INT, IS, ISNOT, LEQ, LESS, LOCAL, MINUS, MLCOMMENT, NAT, OPBR, OPBRACE, OPEN, PLUS, PROBABILITY, PROCESS, QM, SELECT, SEMICOLON, SLASH, SLCOMMENT, STATE, SYNC, SYSTEM, TIMES, tokenImage, TRANS, UNCONTROLLABLETRANS, URGENT, WS
-
Constructor Summary
Constructors Constructor Description XTAReader(XTAReaderTokenManager tm)
Constructor with generated Token Manager.XTAReader(InputStream stream)
Constructor with InputStream.XTAReader(InputStream stream, String encoding)
Constructor with InputStream and supplied encodingXTAReader(Reader stream)
Constructor. -
Method Summary
Modifier and Type Method Description void
body(Template template)
void
bodyBranchPoint(Template template, Map locations)
void
bodyBranchPoints(Template template, Map locations)
void
bodyCommitted(Map locations)
void
bodyInit(Template template, Map locations)
void
bodyState(Template template, Map locations)
void
bodyStates(Template template, Map locations)
void
bodyTransitions(Template template, Map locations)
boolean
bodyTransitionSymbol()
void
bodyUrgent(Map locations)
void
declaration(Document document)
void
destination(Template template, Map locations, AbstractLocation src, boolean controllable)
void
disable_tracing()
Disable tracing.void
enable_tracing()
Enable tracing.ParseException
generateParseException()
Generate ParseException.String
getErrors()
Token
getNextToken()
Get the next Token.Token
getToken(int index)
Get the specific Token.AbstractLocation
location(Map locations)
Document
parse(Element prototype)
void
processdecl(Document document)
void
PTBody(Template template)
void
PTHead(Template template)
void
PTParamList(Template template)
void
ReInit(XTAReaderTokenManager tm)
Reinitialise.void
ReInit(InputStream stream)
Reinitialise.void
ReInit(InputStream stream, String encoding)
Reinitialise.void
ReInit(Reader stream)
Reinitialise.void
systemSpec(Document document)
-
Field Details
-
token_source
Generated Token Manager. -
token
Current token. -
jj_nt
Next token.
-
-
Constructor Details
-
Method Details
-
parse
- Throws:
ParseException
-
getErrors
-
systemSpec
- Throws:
ParseException
-
declaration
- Throws:
ParseException
-
processdecl
- Throws:
ParseException
-
PTHead
- Throws:
ParseException
-
PTParamList
- Throws:
ParseException
-
PTBody
- Throws:
ParseException
-
body
- Throws:
ParseException
-
bodyStates
- Throws:
ParseException
-
bodyBranchPoints
- Throws:
ParseException
-
bodyState
- Throws:
ParseException
-
bodyBranchPoint
- Throws:
ParseException
-
bodyCommitted
- Throws:
ParseException
-
bodyUrgent
- Throws:
ParseException
-
bodyInit
- Throws:
ParseException
-
bodyTransitions
- Throws:
ParseException
-
bodyTransitionSymbol
- Throws:
ParseException
-
location
- Throws:
ParseException
-
destination
public final void destination(Template template, Map locations, AbstractLocation src, boolean controllable) throws ParseException- Throws:
ParseException
-
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
getNextToken
Get the next Token. -
getToken
Get the specific Token. -
generateParseException
Generate ParseException. -
enable_tracing
public final void enable_tracing()Enable tracing. -
disable_tracing
public final void disable_tracing()Disable tracing.
-