Modifier and Type | Method and Description |
---|---|
static LexerParser |
DslUtils.identify(LexerParser parentParser,
Collection<Lexer> candidates,
boolean safeMode)
Identifies the lexer to use between provided candidates to handle the following source part.
|
Modifier and Type | Method and Description |
---|---|
static LexerParser |
DslUtils.identify(LexerParser parentParser,
Collection<Lexer> candidates,
boolean safeMode)
Identifies the lexer to use between provided candidates to handle the following source part.
|
static void |
DslUtils.matchEnd(LexerParser parser)
Calls
DslUtils.matchEnd(LexerParser) without safe mode. |
static boolean |
DslUtils.matchEnd(LexerParser parser,
boolean safeMode)
Identifies the lexer to use between provided candidates to handle the following source part.
|
Modifier and Type | Method and Description |
---|---|
List<AutoComplete> |
AutoCompleteGenerator.getAutoCompletes(LexerParser parser)
Generates autoComplete options if auto complete is requested by a parser.
|
Modifier and Type | Field and Description |
---|---|
(package private) LexerParser |
AndLexerBlock.AndBlockResolver.parser |
Modifier and Type | Method and Description |
---|---|
LexerParser |
AbstractLexerBlockResolver.identify(LexerParser parentParser) |
LexerParser |
LexerBlockResolver.identify(LexerParser parentParser)
Should Calls
LexerBlockResolver.identify(LexerParser, boolean)
with safe mode computed from unicity, mandatory flag min/max occur and already consumed parsers. |
LexerParser |
LexerBlockResolverWrapper.identify(LexerParser parentParser) |
LexerParser |
AbstractLexerBlockResolver.identify(LexerParser parentParser,
boolean safeMode) |
LexerParser |
LexerBlockResolver.identify(LexerParser parentParser,
boolean safeMode)
Identifies the lexer to use between candidates identified by
LexerBlockResolver.resolveLexers(Grammar) to handle the following source part. |
LexerParser |
LexerBlockResolverWrapper.identify(LexerParser parentParser,
boolean safeMode) |
LexerParser |
AbstractLexerBlockResolver.identifyAndConsume(LexerParser parentParser) |
LexerParser |
LexerBlockResolver.identifyAndConsume(LexerParser parentParser)
Short cut to call both identity and consume
|
LexerParser |
LexerBlockResolverWrapper.identifyAndConsume(LexerParser parentParser) |
LexerParser |
AbstractLexerBlockResolver.identifyAndConsume(LexerParser parentParser,
boolean safeMode) |
LexerParser |
LexerBlockResolver.identifyAndConsume(LexerParser parentParser,
boolean safeMode)
Short cut to call both identity and consume
|
LexerParser |
LexerBlockResolverWrapper.identifyAndConsume(LexerParser parentParser,
boolean safeMode) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractLexerBlockResolver.consume(LexerParser parser) |
void |
LexerBlockResolver.consume(LexerParser parser)
Indicates that this parser has been consumed.
|
void |
AndLexerBlock.AndBlockResolver.consume(LexerParser p) |
void |
LexerBlockResolverWrapper.consume(LexerParser parser) |
void |
OrLexerBlock.OrBlockResolver.consume(LexerParser parser) |
LexerParser |
AbstractLexerBlockResolver.identify(LexerParser parentParser) |
LexerParser |
LexerBlockResolver.identify(LexerParser parentParser)
Should Calls
LexerBlockResolver.identify(LexerParser, boolean)
with safe mode computed from unicity, mandatory flag min/max occur and already consumed parsers. |
LexerParser |
LexerBlockResolverWrapper.identify(LexerParser parentParser) |
LexerParser |
AbstractLexerBlockResolver.identify(LexerParser parentParser,
boolean safeMode) |
LexerParser |
LexerBlockResolver.identify(LexerParser parentParser,
boolean safeMode)
Identifies the lexer to use between candidates identified by
LexerBlockResolver.resolveLexers(Grammar) to handle the following source part. |
LexerParser |
LexerBlockResolverWrapper.identify(LexerParser parentParser,
boolean safeMode) |
LexerParser |
AbstractLexerBlockResolver.identifyAndConsume(LexerParser parentParser) |
LexerParser |
LexerBlockResolver.identifyAndConsume(LexerParser parentParser)
Short cut to call both identity and consume
|
LexerParser |
LexerBlockResolverWrapper.identifyAndConsume(LexerParser parentParser) |
LexerParser |
AbstractLexerBlockResolver.identifyAndConsume(LexerParser parentParser,
boolean safeMode) |
LexerParser |
LexerBlockResolver.identifyAndConsume(LexerParser parentParser,
boolean safeMode)
Short cut to call both identity and consume
|
LexerParser |
LexerBlockResolverWrapper.identifyAndConsume(LexerParser parentParser,
boolean safeMode) |
void |
AbstractInjectableLexerBlock.AbstractInjectableLexerBlockResolver.inject(Object target,
LexerParser value) |
void |
LexerBlockResolver.inject(Object target,
LexerParser value)
Method used to inject result.
|
void |
AndLexerBlock.AndBlockResolver.inject(Object target,
LexerParser value) |
void |
LexerBlockResolverWrapper.inject(Object target,
LexerParser value) |
void |
OrLexerBlock.OrBlockResolver.inject(Object target,
LexerParser value) |
Modifier and Type | Method and Description |
---|---|
Object |
RenderingDataBuilder.buildRenderingData(Grammar grammar,
LexerBlock block,
LexerParser lexerParser)
Builds information to render a block
|
Object |
RenderingDataBuilder.buildRenderingData(Grammar grammar,
Lexer lexer,
LexerParser lexerParser,
boolean anonymous)
Builds information to render a lexer
|
Object |
RenderingDataBuilder.buildRenderingData(Grammar grammar,
LexerMatcher matcher,
LexerParser lexerParser,
LexerMatcherHandler.Mode mode)
Builds information to render a matcher
|
Modifier and Type | Method and Description |
---|---|
ObjectLexerHandler.ObjectLexerHandlerBean |
ObjectLexerHandler.handle(RenderingDataBuilder renderingDataBuilder,
Grammar grammar,
Lexer lexer,
LexerParser lexerParser,
boolean anonymous) |
SubParseLexerHandler.SubParseLexerHandlerBean |
SubParseLexerHandler.handle(RenderingDataBuilder renderingDataBuilder,
Grammar grammar,
Lexer lexer,
LexerParser lexerParser,
boolean anonymous) |
TransformLexerHandler.TransformLexerHandlerBean |
TransformLexerHandler.handle(RenderingDataBuilder renderingDataBuilder,
Grammar grammar,
Lexer lexer,
LexerParser lexerParser,
boolean anonymous) |
LexerHandlerBean |
DefaultLexerHandler.handle(RenderingDataBuilder renderingDataBuilder,
Grammar grammar,
Lexer lexer,
LexerParser lexerParser,
boolean anonymous) |
RegexLexerHandler.RegexLexerHandlerBean |
RegexLexerHandler.handle(RenderingDataBuilder renderingDataBuilder,
Grammar grammar,
Lexer lexer,
LexerParser lexerParser,
boolean anonymous) |
ValueLexerHandler.ValueLexerHandlerBean |
ValueLexerHandler.handle(RenderingDataBuilder renderingDataBuilder,
Grammar grammar,
Lexer lexer,
LexerParser lexerParser,
boolean anonymous) |
StartEndLexerHandler.StartEndLexerHandlerBean |
StartEndLexerHandler.handle(RenderingDataBuilder renderingDataBuilder,
Grammar grammar,
Lexer lexer,
LexerParser lexerParser,
boolean anonymous) |
NextCharLexerHandler.NextCharLexerHandlerBean |
NextCharLexerHandler.handle(RenderingDataBuilder renderingDataBuilder,
Grammar grammar,
Lexer lexer,
LexerParser lexerParser,
boolean anonymous) |
LexerHandlerBean |
LexerHandler.handle(RenderingDataBuilder renderingDataBuilder,
Grammar g,
Lexer lexer,
LexerParser lexerParser,
boolean anonymous)
Updates bean with lexer block informations
|
ValueLexerHandler.ValueLexerHandlerBean |
ValuesLexerHandler.handle(RenderingDataBuilder renderingDataBuilder,
Grammar grammar,
Lexer lexer,
LexerParser lexerParser,
boolean anonymous) |
Modifier and Type | Method and Description |
---|---|
<L extends LexerParser> |
ParsingContext.getEquivalentParseResult(L parser)
Allows to retrieve a result pushed by a previous equivalent parser on the same source part.
|
<L extends LexerParser> |
ParsingContext.pushParseResult(L parser)
Pushes a parsed result in this context's buffer.
|
Modifier and Type | Method and Description |
---|---|
void |
DefaultObjectCreator.endOfParse(Object result,
LexerParser instanciatedBy) |
void |
ObjectCreator.endOfParse(Object result,
LexerParser instanciatedBy)
Allows to add action on resulting objects after parsing process is done.
|
<C> C |
DefaultObjectCreator.newInstance(Class<C> type,
LexerParser instanciatedBy) |
<C> C |
ObjectCreator.newInstance(Class<C> type,
LexerParser instanciatedBy)
Allows to override result objects instantiation during parse process.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractLexerParser
Base convenience implementation
|
protected class |
ObjectLexer.ObjectLexerParser
Parser for the ObjectLexer.
|
Modifier and Type | Method and Description |
---|---|
void |
ObjectLexer.ObjectLexerListener.afterBlock(LexerParser parser,
LexerBlock block,
Object result)
Called after each parsing block is performed and result is injected.
|
void |
ObjectLexer.DefaultObjectLexerListener.afterBlock(LexerParser parser,
LexerBlock block,
Object result) |
void |
ObjectLexer.ObjectLexerListener.afterEndMatch(LexerParser parser,
Matcher endMatcher,
Object result)
Performed after successful end match and eventual match result is injected into parsing result.
|
void |
ObjectLexer.DefaultObjectLexerListener.afterEndMatch(LexerParser parser,
Matcher endMatcher,
Object result) |
void |
DefaultLexerParserListener.afterParse(LexerParser parser) |
void |
LexerParserListener.afterParse(LexerParser parser) |
void |
ObjectLexer.ObjectLexerListener.afterStartMatch(LexerParser parser,
Matcher startMatcher,
Object result)
Performed after successful start match and eventual match result is injected into parsing result.
|
void |
ObjectLexer.DefaultObjectLexerListener.afterStartMatch(LexerParser parser,
Matcher startMatcher,
Object result) |
void |
ObjectLexer.ObjectLexerListener.atEnd(LexerParser parser,
Object result)
Performed at end, with or without end matcher.
|
void |
ObjectLexer.DefaultObjectLexerListener.atEnd(LexerParser parser,
Object result) |
void |
DefaultLexerParserListener.beforeParse(LexerParser parser) |
void |
LexerParserListener.beforeParse(LexerParser parser) |
void |
DefaultLexerParserListener.beginParse(LexerParser parser) |
void |
LexerParserListener.beginParse(LexerParser parser) |
void |
DefaultLexerParserListener.endParse(LexerParser parser) |
void |
LexerParserListener.endParse(LexerParser parser) |
LexerParser |
CharacterLexer.getParser(LexerParser parent) |
LexerParser |
MatcherLexer.getParser(LexerParser parent) |
LexerParser |
ValueLexer.getParser(LexerParser parent) |
LexerParser |
BooleanLexer.getParser(LexerParser parent) |
LexerParser |
StringLexer.getParser(LexerParser parent) |
LexerParser |
IntegerLexer.getParser(LexerParser parent) |
LexerParser |
NextCharLexer.getParser(LexerParser parent) |
LexerParser |
HardCodedLexer.getParser(LexerParser parent) |
LexerParser |
SubParseLexer.getParser(LexerParser parent) |
LexerParser |
EnumLexer.getParser(LexerParser parent) |
LexerParser |
NullLexer.getParser(LexerParser parent) |
LexerParser |
RegexLexer.getParser(LexerParser parent) |
LexerParser |
ObjectLexer.getParser(LexerParser parent) |
LexerParser |
TransformLexer.getParser(LexerParser parent) |
LexerParser |
Lexer.getParser(LexerParser parent)
Returns a parser which is able to handles the text relative to this lexer
|
LexerParser |
ValuesLexer.getParser(LexerParser parent) |
LexerParser |
ActionLexer.getParser(LexerParser parent) |
LexerParser |
MappedPropertyLexer.getParser(LexerParser parent) |
LexerParser |
NextSpaceLexer.getParser(LexerParser parent) |
LexerParser |
TextLexer.getParser(LexerParser parent) |
LexerMatcher |
AbstractLexer.resolveEnd(LexerParser lexerParser) |
LexerMatcher |
Lexer.resolveEnd(LexerParser lexerParser)
Resolves the end matcher for this lexer.
|
LexerMatcher |
BooleanLexer.resolveStart(LexerParser lexerParser) |
LexerMatcher |
EnumLexer.resolveStart(LexerParser lexerParser) |
LexerMatcher |
NullLexer.resolveStart(LexerParser lexerParser) |
LexerMatcher |
AbstractLexer.resolveStart(LexerParser lexerParser) |
LexerMatcher |
TransformLexer.resolveStart(LexerParser lexerParser) |
LexerMatcher |
Lexer.resolveStart(LexerParser lexerParser)
Resolves the start matcher for this lexer.
|
Constructor and Description |
---|
AbstractLexerParser(LexerParser parent) |
ObjectLexerParser(LexerParser parent) |
Modifier and Type | Field and Description |
---|---|
protected LexerParser |
AbstractMatcher.parser |
Modifier and Type | Method and Description |
---|---|
LexerParser |
AbstractMatcher.getLexerParser() |
LexerParser |
AbstractMatcherWrapper.getLexerParser() |
LexerParser |
Matcher.getLexerParser() |
Modifier and Type | Method and Description |
---|---|
Matcher |
MultipleFixedLexerMatcher.getMatcher(LexerParser parser) |
Matcher |
DynamicLexerMatcher.getMatcher(LexerParser parser) |
Matcher |
NoopLexerMatcher.getMatcher(LexerParser parser) |
Matcher |
AbstractLexerMatcherWrapper.getMatcher(LexerParser parser) |
Matcher |
LexerMatcher.getMatcher(LexerParser parser) |
Matcher |
AndLexerMatcher.getMatcher(LexerParser parser) |
Matcher |
OrLexerMatcher.getMatcher(LexerParser parser) |
Matcher |
EofMatcher.getMatcher(LexerParser parser) |
Matcher |
RegexLexerMatcher.getMatcher(LexerParser parser) |
Matcher |
LexerBlockMatcher.getMatcher(LexerParser parser) |
Matcher |
ChangeWeightLexerMatcher.getMatcher(LexerParser parser) |
Matcher |
FixedLexerMatcher.getMatcher(LexerParser parser) |
Constructor and Description |
---|
AbstractCombineMatcher(LexerParser parser) |
AbstractGenericMatcher(LexerParser parser) |
AbstractGenericTextMatcher(LexerParser parser) |
AbstractMatcher(LexerParser parser) |
AndMatcher(LexerParser parser) |
BlockMatcher(LexerParser parser) |
FixedMatcher(LexerParser parser) |
MultipleFixedMatcher(LexerParser parser) |
OrMatcher(LexerParser parser) |
RegexMatcher(LexerParser parser) |
Modifier and Type | Method and Description |
---|---|
Object |
DslHtmlDocGen.buildRenderingData(Grammar grammar,
LexerBlock block,
LexerParser lexerParser) |
Object |
DslHtmlDocGen.buildRenderingData(Grammar grammar,
Lexer lexer,
LexerParser lexerParser,
boolean anonymous) |
Object |
DslHtmlDocGen.buildRenderingData(Grammar grammar,
LexerMatcher matcher,
LexerParser lexerParser,
LexerMatcherHandler.Mode mode) |
Modifier and Type | Method and Description |
---|---|
void |
LocalVariableListener.afterBlock(LexerParser parser,
LexerBlock block,
Object result) |
void |
RulesetListener.afterStartMatch(LexerParser parser,
Matcher startMatcher,
Object result) |
void |
LocalVariableListener.afterStartMatch(LexerParser parser,
Matcher startMatcher,
Object result) |
void |
MRulesObjectCreator.endOfParse(Object result,
LexerParser instanciatedBy) |
void |
PackageImportLexerParserListener.endParse(LexerParser parser) |
void |
ClassImportLexerParserListener.endParse(LexerParser parser) |
void |
ContextFactoryLexerParserListener.endParse(LexerParser parser) |
List<AutoComplete> |
ImportAutoCompleteGenerator.getAutoCompletes(LexerParser parser) |
List<AutoComplete> |
PropertyAutoCompleteGenerator.getAutoCompletes(LexerParser parser) |
Matcher |
PropertyLexerMatcher.getMatcher(LexerParser parser) |