Cytoscape 2.8.0 API

org.cytoscape.equations
Class Tokeniser

java.lang.Object
  extended by org.cytoscape.equations.Tokeniser

public class Tokeniser
extends Object


Constructor Summary
Tokeniser(String equationAsString)
           
 
Method Summary
 boolean getBooleanConstant()
           
 String getErrorMsg()
           
 double getFloatConstant()
           
 String getIdent()
           
 long getIntConstant()
           
 int getStartPos()
           
 String getStringConstant()
           
 Token getToken()
           
 String getTokenAsString()
          Returns a representation of the next token as a string.
static void main(String[] args)
           
 void ungetToken(Token token)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tokeniser

public Tokeniser(String equationAsString)
Method Detail

getToken

public Token getToken()

ungetToken

public void ungetToken(Token token)
                throws IllegalStateException
Throws:
IllegalStateException

getStartPos

public int getStartPos()
Returns:
the position where the current token started. The position returned applies to the last token that was retrieved via the getToken() method.

getTokenAsString

public String getTokenAsString()
Returns a representation of the next token as a string. Used primarily for testing. You should stop calling this after it returned "EOS"!


getStringConstant

public String getStringConstant()

getFloatConstant

public double getFloatConstant()

getBooleanConstant

public boolean getBooleanConstant()

getIntConstant

public long getIntConstant()

getIdent

public String getIdent()

getErrorMsg

public String getErrorMsg()

main

public static void main(String[] args)

Cytoscape 2.8.0 API

Copyright 2010 Cytoscape Consortium. All rights reserved.