org.jproggy.snippetory.engine.spi
Class XMLAlikeSyntax

java.lang.Object
  extended by org.jproggy.snippetory.engine.RegExSyntax
      extended by org.jproggy.snippetory.engine.spi.XMLAlikeSyntax
All Implemented Interfaces:
Syntax

public class XMLAlikeSyntax
extends RegExSyntax


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jproggy.snippetory.engine.RegExSyntax
RegExSyntax.RegexParser
 
Nested classes/interfaces inherited from interface org.jproggy.snippetory.spi.Syntax
Syntax.Registry, Syntax.Tokenizer
 
Field Summary
protected static String END_TOKEN
           
protected static String NAMED_LOC
           
protected static String NAMELESS_TOKEN
           
protected static String START_TOKEN
           
 
Fields inherited from class org.jproggy.snippetory.engine.RegExSyntax
ATTRIBUTE, ATTRIBUTES, CONTENT, ESCAPES, LINE_END, LINE_START, NAME, NAME_CHAR, NAME_START_CHAR, SYNTAX_SELECTOR
 
Fields inherited from interface org.jproggy.snippetory.spi.Syntax
REGISTRY
 
Constructor Summary
XMLAlikeSyntax()
           
 
Method Summary
protected static void addRegionPatterns(Map<Pattern,Token.TokenType> patterns)
           
 RegExSyntax.RegexParser parse(CharSequence data, TemplateContext ctx)
          transform input data to a stream of token.
 
Methods inherited from class org.jproggy.snippetory.engine.RegExSyntax
takeOver
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

START_TOKEN

protected static final String START_TOKEN
See Also:
Constant Field Values

END_TOKEN

protected static final String END_TOKEN
See Also:
Constant Field Values

NAMED_LOC

protected static final String NAMED_LOC
See Also:
Constant Field Values

NAMELESS_TOKEN

protected static final String NAMELESS_TOKEN
See Also:
Constant Field Values
Constructor Detail

XMLAlikeSyntax

public XMLAlikeSyntax()
Method Detail

parse

public RegExSyntax.RegexParser parse(CharSequence data,
                                     TemplateContext ctx)
Description copied from interface: Syntax
transform input data to a stream of token. Those tokens can be used by low level tools like the TemplateBuilder.

Specified by:
parse in interface Syntax
Specified by:
parse in class RegExSyntax
Parameters:
data - template to be parsed as character data.
Returns:
a tokenizer providing the token stream

addRegionPatterns

protected static void addRegionPatterns(Map<Pattern,Token.TokenType> patterns)


Copyright © 2013. All Rights Reserved.