|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.simantics.databoard.parser.DataParser
public class DataParser
Parser for data type definitions.
Field Summary | |
---|---|
Token |
jj_nt
Next token. |
Token |
token
Current token. |
DataParserTokenManager |
token_source
Generated Token Manager. |
Fields inherited from interface org.simantics.databoard.parser.DataParserConstants |
---|
COMMENT1, COMMENT2, DEFAULT, EOF, FLOAT, IDENT, INTEGER, LONG_STRING, POSITIVE_INTEGER, STRING, tokenImage, URI, WHITESPACE |
Constructor Summary | |
---|---|
DataParser(DataParserTokenManager tm)
Constructor with generated Token Manager. |
|
DataParser(java.io.InputStream stream)
Constructor with InputStream. |
|
DataParser(java.io.InputStream stream,
java.lang.String encoding)
Constructor with InputStream and supplied encoding |
|
DataParser(java.io.Reader stream)
Constructor. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public DataParserTokenManager token_source
public Token token
public Token jj_nt
Constructor Detail |
---|
public DataParser(java.io.InputStream stream)
public DataParser(java.io.InputStream stream, java.lang.String encoding)
public DataParser(java.io.Reader stream)
public DataParser(DataParserTokenManager tm)
Method Detail |
---|
public final java.util.List<AstTypeDefinition> typeDefinitions() throws ParseException
ParseException
public final AstTypeDefinition typeDefinition() throws ParseException
ParseException
public final AstType type() throws ParseException
ParseException
public final AstType unionType() throws ParseException
ParseException
public final AstType simpleType() throws ParseException
ParseException
public final AstType basicType() throws ParseException
ParseException
public final AstType typeReference() throws ParseException
ParseException
public final java.lang.String numericValue() throws ParseException
ParseException
public final java.lang.String range() throws ParseException
ParseException
public final java.lang.String attributeValue() throws ParseException
ParseException
public final AstType tupleType() throws ParseException
ParseException
public final AstType recordType(boolean referable) throws ParseException
ParseException
public final AstComponent component() throws ParseException
ParseException
public final java.util.List<AstValueDefinition> valueDefinitions() throws ParseException
ParseException
public final AstValueDefinition valueDefinition() throws ParseException
ParseException
public final AstValue value() throws ParseException
ParseException
public final AstValue basicValue() throws ParseException
ParseException
public final AstArray array() throws ParseException
ParseException
public final AstValue tuple() throws ParseException
ParseException
public final AstRecord record() throws ParseException
ParseException
public final AstMap map() throws ParseException
ParseException
public final AstComponentAssignment assignment() throws ParseException
ParseException
public final AstMapAssignment mapAssignment() throws ParseException
ParseException
public void ReInit(java.io.InputStream stream)
public void ReInit(java.io.InputStream stream, java.lang.String encoding)
public void ReInit(java.io.Reader stream)
public void ReInit(DataParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |