Jacson

de.spieleck.app.jacson.select
Class TokenSelect

java.lang.Object
  extended byde.spieleck.app.jacson.select.TokenSelect
All Implemented Interfaces:
ConfigVerify.Acceptor, JacsonRegistrable, JacsonSelect

public class TokenSelect
extends java.lang.Object
implements JacsonSelect, ConfigVerify.Acceptor

Select ranges delimited by two delimiters. Delimiters can be chosen. They default "@" on boths ends, which resembles what the Ant people call a token.

Author:
fsn

Field Summary
protected  java.lang.String curChunk
           
static java.lang.String DEFAULT_DELIMITER
           
protected  int lastMatch
           
static java.lang.String LEFT_NODE
           
protected  java.lang.String leftDelim
           
protected  SimpleResult result
           
static java.lang.String RIGHT_NODE
           
protected  java.lang.String rightDelim
           
 
Constructor Summary
TokenSelect()
           
 
Method Summary
 boolean accept(ConfigNode cn)
           
 SelectionResult getNextSelection()
           
 void init(ConfigNode config, JacsonRegistry registry)
           
 void setChunk(java.lang.String chunk)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LEFT_NODE

public static final java.lang.String LEFT_NODE
See Also:
Constant Field Values

RIGHT_NODE

public static final java.lang.String RIGHT_NODE
See Also:
Constant Field Values

DEFAULT_DELIMITER

public static final java.lang.String DEFAULT_DELIMITER
See Also:
Constant Field Values

leftDelim

protected java.lang.String leftDelim

rightDelim

protected java.lang.String rightDelim

curChunk

protected java.lang.String curChunk

lastMatch

protected int lastMatch

result

protected SimpleResult result
Constructor Detail

TokenSelect

public TokenSelect()
Method Detail

init

public void init(ConfigNode config,
                 JacsonRegistry registry)
          throws JacsonConfigException
Specified by:
init in interface JacsonRegistrable
Throws:
JacsonConfigException

accept

public boolean accept(ConfigNode cn)
Specified by:
accept in interface ConfigVerify.Acceptor

setChunk

public void setChunk(java.lang.String chunk)
Specified by:
setChunk in interface JacsonSelect

getNextSelection

public SelectionResult getNextSelection()
Specified by:
getNextSelection in interface JacsonSelect

Spieleck

Copyleft 2002 spieleck.de.