java.lang.Object
com.adobe.fontengine.font.postscript.Token

public final class Token extends Object
A postscript token. Generally, this is what is a parsed unit according to the Tokenizer class.

Synchronization

This class is NOT threadsafe. Multiple instances can safely coexist without threadsafety issues, but each must only be accessed from one thread (or must be guarded by the client).
  • Field Details

    • tokenType

      public TokenType tokenType
    • buff

      public byte[] buff
    • tokenLength

      public int tokenLength
  • Method Details

    • matches

      public boolean matches(byte[] tokenToFind)
    • isEOL

      public boolean isEOL()
    • stringTokenToString

      public String stringTokenToString(int startPos, int endPos)
    • convertInteger

      public int convertInteger(int pos)
      convert an integer held in this token and return it.
      Parameters:
      pos - the position in this token to begin parsing.
      Returns:
      the parsed integer