Class Token

java.lang.Object
org.cytoscape.equations.Token

public final class Token extends Object
Represents the interpretation of a substring of an equation string. Provides the type of each token and its start/end location within the equation.
Since:
3.9

Module: equations-api

To use this in your app, include the following dependency in your POM:

<dependency>
    <groupId>org.cytoscape</groupId>
    <artifactId>equations-api</artifactId>
</dependency>

Cytoscape Backwards Compatibility (API Interface): We expect that this interface will be used but not implemented by developers using this interface. As such, we reserve the right to add methods to the interface as part of minor version upgrades. We will not remove methods for any changes other than major version upgrades.
  • Constructor Details

    • Token

      public Token(Token.Type type, int start, int end)
  • Method Details

    • getType

      public Token.Type getType()
    • getStart

      public int getStart()
    • getEnd

      public int getEnd()
    • getLength

      public int getLength()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object