Package com.google.googlejavaformat.java
Class JavacTokens.RawTok
- java.lang.Object
-
- com.google.googlejavaformat.java.JavacTokens.RawTok
-
- Enclosing class:
- JavacTokens
static class JavacTokens.RawTok extends java.lang.ObjectAn unprocessed input token, including whitespace and comments.
-
-
Constructor Summary
Constructors Constructor Description RawTok(java.lang.String stringVal, com.sun.tools.javac.parser.Tokens.TokenKind kind, int pos, int endPos)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intendPos()The end position.com.sun.tools.javac.parser.Tokens.TokenKindkind()The token kind, ornullfor whitespace and comments.intpos()The start position.java.lang.StringstringVal()The escaped string value of a literal, ornullfor other tokens.
-
-
-
Method Detail
-
kind
public com.sun.tools.javac.parser.Tokens.TokenKind kind()
The token kind, ornullfor whitespace and comments.
-
pos
public int pos()
The start position.
-
endPos
public int endPos()
The end position.
-
stringVal
public java.lang.String stringVal()
The escaped string value of a literal, ornullfor other tokens.
-
-