public class GrammarParser extends Object
Modifier and Type | Field and Description |
---|---|
static String |
NODE_ADDITIONAL_VALIDATOR |
static String |
NODE_AUTOCOMPLETE |
static String |
NODE_AUTOCOMPLETEGENERATOR |
static String |
NODE_COMMENT_BEGIN |
static String |
NODE_DSL_DOC |
static String |
NODE_INCLUDE |
static String |
NODE_LEXER |
static String |
NODE_LEXER_BLOCK |
static String |
NODE_LEXER_BLOCKS |
static String |
NODE_LEXER_END |
static String |
NODE_LEXER_MATCHER |
static String |
NODE_LEXER_MATCHERS |
static String |
NODE_LEXER_PROPERTY |
static String |
NODE_LEXER_START |
static String |
NODE_LEXER_TYPE |
static String |
NODE_MATCHER_AUTOCOMPLETES |
static String |
NODE_OBJECT_CREATOR |
static String |
NODE_PARSER_AUTOCOMPLETES |
static String |
NODE_ROOT |
static String |
NODE_ROOT_INC |
Constructor and Description |
---|
GrammarParser() |
Modifier and Type | Method and Description |
---|---|
Grammar |
read(InputSource is)
Parses grammar fron input source source.
|
Grammar |
read(InputStream is)
Parses grammar fron input stream source.
|
Grammar |
read(Node doc)
Parses grammar from xml node source.
|
Grammar |
read(Reader r)
Parses grammar fron reader source.
|
public static final String NODE_ROOT
public static final String NODE_ROOT_INC
public static final String NODE_INCLUDE
public static final String NODE_COMMENT_BEGIN
public static final String NODE_OBJECT_CREATOR
public static final String NODE_ADDITIONAL_VALIDATOR
public static final String NODE_MATCHER_AUTOCOMPLETES
public static final String NODE_PARSER_AUTOCOMPLETES
public static final String NODE_AUTOCOMPLETE
public static final String NODE_AUTOCOMPLETEGENERATOR
public static final String NODE_LEXER
public static final String NODE_LEXER_TYPE
public static final String NODE_LEXER_START
public static final String NODE_LEXER_MATCHERS
public static final String NODE_LEXER_MATCHER
public static final String NODE_LEXER_BLOCKS
public static final String NODE_LEXER_BLOCK
public static final String NODE_LEXER_END
public static final String NODE_LEXER_PROPERTY
public static final String NODE_DSL_DOC
public Grammar read(InputStream is) throws XMLUtilsException, DslException
XMLUtilsException
DslException
public Grammar read(Reader r) throws XMLUtilsException, DslException
XMLUtilsException
DslException
public Grammar read(InputSource is) throws XMLUtilsException, DslException
XMLUtilsException
DslException
public Grammar read(Node doc) throws XMLUtilsException, DslException
XMLUtilsException
DslException