public class Idl extends Object implements Closeable, IdlConstants
| Modifier and Type | Field and Description |
|---|---|
Token |
jj_nt
Next token.
|
Token |
token
Current token.
|
IdlTokenManager |
token_source
Generated Token Manager.
|
ARRAY, AT, BOOLEAN, BYTES, CHARACTER_LITERAL, COLON, COMMA, DECIMAL_EXPONENT, DECIMAL_FLOATING_POINT_LITERAL, DECIMAL_LITERAL, DEFAULT, DOC_COMMENT, DOT, DOUBLE, ENUM, EOF, EQUALS, ERROR, FALSE, FIXED, FLOAT, FLOATING_POINT_LITERAL, GT, HEX_LITERAL, HEXADECIMAL_EXPONENT, HEXADECIMAL_FLOATING_POINT_LITERAL, IDENTIFIER, IDL, IMPORT, INT, INTEGER_LITERAL, LBRACE, LBRACK, LETTER, LONG, LPAREN, LT, MAP, MULTI_LINE_COMMENT, NULL, OCTAL_LITERAL, ONEWAY, PART_LETTER, PROTOCOL, RBRACE, RBRACK, RECORD, RPAREN, SCHEMA, SEMICOLON, SINGLE_LINE_COMMENT, STRING, STRING_LITERAL, STUFF_TO_IGNORE, THROWS, TICK, tokenImage, TRUE, UNION, VOID| Constructor and Description |
|---|
Idl(File inputFile) |
Idl(File inputFile,
ClassLoader resourceLoader) |
Idl(IdlTokenManager tm)
Constructor with generated Token Manager.
|
Idl(InputStream stream)
Constructor with InputStream.
|
Idl(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding
|
Idl(Reader stream)
Constructor.
|
public IdlTokenManager token_source
public Token token
public Token jj_nt
public Idl(File inputFile) throws IOException
IOExceptionpublic Idl(File inputFile, ClassLoader resourceLoader) throws IOException
IOExceptionpublic Idl(InputStream stream)
public Idl(InputStream stream, String encoding)
public Idl(Reader stream)
public Idl(IdlTokenManager tm)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic final Protocol CompilationUnit() throws ParseException
ParseExceptionpublic final Schema NamedSchemaDeclaration(Map<String,JsonNode> props) throws ParseException
ParseExceptionpublic final Schema UnionDefinition() throws ParseException
ParseExceptionpublic final Protocol ProtocolDeclaration() throws ParseException
ParseExceptionpublic final Schema EnumDeclaration() throws ParseException
ParseExceptionpublic final List<String> EnumBody() throws ParseException
ParseExceptionpublic final void EnumConstant(List<String> symbols) throws ParseException
ParseExceptionpublic final void ProtocolBody(Protocol p) throws ParseException
ParseExceptionpublic final Protocol ImportIdl() throws ParseException
ParseExceptionpublic final Protocol ImportProtocol() throws ParseException
ParseExceptionpublic final Schema ImportSchema() throws ParseException
ParseExceptionpublic final Schema FixedDeclaration() throws ParseException
ParseExceptionpublic final Schema RecordDeclaration() throws ParseException
ParseExceptionpublic final void SchemaProperty(Map<String,JsonNode> properties) throws ParseException
ParseExceptionpublic final void FieldDeclaration(List<Schema.Field> fields) throws ParseException
ParseExceptionpublic final void VariableDeclarator(Schema type, List<Schema.Field> fields) throws ParseException
ParseExceptionpublic final String MessageDocumentation() throws ParseException
ParseExceptionpublic final Protocol.Message MessageDeclaration(Protocol p, Map<String,JsonNode> props) throws ParseException
ParseExceptionpublic final void ErrorList(List<Schema> errors) throws ParseException
ParseExceptionpublic final Schema FormalParameters() throws ParseException
ParseExceptionpublic final void FormalParameter(List<Schema.Field> fields) throws ParseException
ParseExceptionpublic final Schema Type() throws ParseException
ParseExceptionpublic final Schema ArrayType() throws ParseException
ParseExceptionpublic final Schema MapType() throws ParseException
ParseExceptionpublic final Schema ReferenceType() throws ParseException
ParseExceptionpublic final Schema PrimitiveType() throws ParseException
ParseExceptionpublic final Schema ResultType() throws ParseException
ParseExceptionpublic final String Identifier() throws ParseException
ParseExceptionpublic final Token AnyIdentifier() throws ParseException
ParseExceptionpublic final JsonNode Json() throws ParseException
ParseExceptionpublic final String JsonString() throws ParseException
ParseExceptionpublic final JsonNode JsonObject() throws ParseException
ParseExceptionpublic final void JsonFields(ObjectNode o) throws ParseException
ParseExceptionpublic final void JsonPair(ObjectNode o) throws ParseException
ParseExceptionpublic final JsonNode JsonArray() throws ParseException
ParseExceptionpublic final void JsonElements(ArrayNode a) throws ParseException
ParseExceptionpublic void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(IdlTokenManager 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 © 2009-2012 The Apache Software Foundation. All Rights Reserved.