Class PrettyToken

  • All Implemented Interfaces:
    java.lang.CharSequence, java.lang.Comparable<net.morimekta.util.CharSlice>, net.morimekta.util.Stringable

    public class PrettyToken
    extends net.morimekta.util.lexer.Token<PrettyTokenType>
    Pretty token.
    • Constructor Summary

      Constructors 
      Constructor Description
      PrettyToken​(char[] fb, int off, int len, PrettyTokenType type, int lineNo, int linePos)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isIdentifier()  
      boolean isInteger()  
      boolean isQualifiedIdentifier()  
      boolean isReal()  
      boolean isReferenceIdentifier()  
      boolean isStringLiteral()  
      boolean isSymbol​(char symbol)  
      • Methods inherited from class net.morimekta.util.lexer.Token

        decodeString, equals, hashCode, line, lineNo, linePos, type
      • Methods inherited from class net.morimekta.util.CharSlice

        asString, charAt, compareTo, contains, contains, containsAny, length, offset, parseDouble, parseInteger, strEquals, strEquals, subSequence, substring, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.CharSequence

        chars, codePoints
    • Constructor Detail

      • PrettyToken

        public PrettyToken​(char[] fb,
                           int off,
                           int len,
                           PrettyTokenType type,
                           int lineNo,
                           int linePos)
    • Method Detail

      • isSymbol

        public boolean isSymbol​(char symbol)
        Overrides:
        isSymbol in class net.morimekta.util.lexer.Token<PrettyTokenType>
      • isStringLiteral

        public boolean isStringLiteral()
      • isIdentifier

        public boolean isIdentifier()
      • isQualifiedIdentifier

        public boolean isQualifiedIdentifier()
      • isReferenceIdentifier

        public boolean isReferenceIdentifier()
      • isInteger

        public boolean isInteger()
      • isReal

        public boolean isReal()