org.nnsoft.guice.rocoto.variables
Class AntStyleParser

java.lang.Object
  extended by org.nnsoft.guice.rocoto.variables.AntStyleParser
All Implemented Interfaces:
Parser

public class AntStyleParser
extends Object
implements Parser

Parser implementation to resolve ant-style variables.

Grammar

 expression := (variable|text)*
 variable := '${' expression '|' expression '}'
 text := // any characters except '${'
 

Examples

Note

The parser trim variable key and default value thus ${ foo | default } is equals to ${foo|default}.

Since:
6.2

Constructor Summary
AntStyleParser()
           
 
Method Summary
 org.nnsoft.guice.rocoto.variables.Appender parse(String pattern)
          FIXME: Refactor!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AntStyleParser

public AntStyleParser()
Method Detail

parse

public org.nnsoft.guice.rocoto.variables.Appender parse(String pattern)
FIXME: Refactor!

Specified by:
parse in interface Parser


Copyright © 2010-2012 99 Software Foundation. All Rights Reserved.