edu.swri.swiftvis.sources
Class SpecialFormatReader.BracketToken

java.lang.Object
  extended by edu.swri.swiftvis.sources.SpecialFormatReader.BracketToken
All Implemented Interfaces:
SpecialFormatReader.Token, java.io.Serializable
Enclosing class:
SpecialFormatReader

private class SpecialFormatReader.BracketToken
extends java.lang.Object
implements SpecialFormatReader.Token


Field Summary
private  java.util.Vector<SpecialFormatReader.Token> childTokens
           
private  int CONST_STOP
           
private  int currentChild
           
private  int NO_STOP
           
private  int numReads
           
private  SpecialFormatReader.BracketToken parent
           
private static long serialVersionUID
           
private  int stopData
           
private  SpecialFormatReader.Store stopStore
           
private  int stopType
           
private  int STORE_STOP
           
 
Constructor Summary
SpecialFormatReader.BracketToken(SpecialFormatReader.BracketToken p, java.lang.String str)
           
SpecialFormatReader.BracketToken(java.lang.String str)
           
 
Method Summary
private  void checkForNextToRead()
           
private  SpecialFormatReader.Store findVariableStore(java.lang.String name)
           
 SpecialFormatReader.Store getStore()
          Returns the store used by this token.
private  void parseString(java.lang.String str)
           
 void process()
          This function will start at the token it is called on processing it in whatever way is needed.
 void reset()
          This can be used to make sure that a token starts "processing" at the beginning.
private  int stopCount()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parent

private SpecialFormatReader.BracketToken parent

childTokens

private java.util.Vector<SpecialFormatReader.Token> childTokens

stopType

private int stopType

stopData

private int stopData

stopStore

private SpecialFormatReader.Store stopStore

numReads

private int numReads

currentChild

private int currentChild

NO_STOP

private final int NO_STOP
See Also:
Constant Field Values

CONST_STOP

private final int CONST_STOP
See Also:
Constant Field Values

STORE_STOP

private final int STORE_STOP
See Also:
Constant Field Values

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

SpecialFormatReader.BracketToken

public SpecialFormatReader.BracketToken(java.lang.String str)

SpecialFormatReader.BracketToken

public SpecialFormatReader.BracketToken(SpecialFormatReader.BracketToken p,
                                        java.lang.String str)
Method Detail

process

public void process()
             throws java.io.IOException
Description copied from interface: SpecialFormatReader.Token
This function will start at the token it is called on processing it in whatever way is needed. When this function returns, a full element has been read and nextToRead is set to the

Specified by:
process in interface SpecialFormatReader.Token
Throws:
java.io.IOException

getStore

public SpecialFormatReader.Store getStore()
Description copied from interface: SpecialFormatReader.Token
Returns the store used by this token.

Specified by:
getStore in interface SpecialFormatReader.Token
Returns:
The store that things should go in for this token.

reset

public void reset()
Description copied from interface: SpecialFormatReader.Token
This can be used to make sure that a token starts "processing" at the beginning. Currently this is only really needed for the BracketToken.

Specified by:
reset in interface SpecialFormatReader.Token

parseString

private void parseString(java.lang.String str)

findVariableStore

private SpecialFormatReader.Store findVariableStore(java.lang.String name)

stopCount

private int stopCount()

checkForNextToRead

private void checkForNextToRead()