org.cytoscape.equations
Class Tokeniser
java.lang.Object
org.cytoscape.equations.Tokeniser
public class Tokeniser
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Tokeniser
public Tokeniser(String equationAsString)
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)
Copyright 2010 Cytoscape Consortium. All rights reserved.