Class Token
- java.lang.Object
-
- com.google.googlejavaformat.java.javadoc.Token
-
final class Token extends java.lang.ObjectJavadoc token. Our idea of what constitutes a token is often larger or smaller than what you'd naturally expect. The decision is usually pragmatic rather than theoretical. Most of the details are inJavadocLexer.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classToken.TypeJavadoc token type.
-
Field Summary
Fields Modifier and Type Field Description private Token.Typetypeprivate java.lang.Stringvalue
-
Constructor Summary
Constructors Constructor Description Token(Token.Type type, java.lang.String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) Token.TypegetType()(package private) java.lang.StringgetValue()(package private) intlength()java.lang.StringtoString()
-
-
-
Field Detail
-
type
private final Token.Type type
-
value
private final java.lang.String value
-
-
Constructor Detail
-
Token
Token(Token.Type type, java.lang.String value)
-
-
Method Detail
-
getType
Token.Type getType()
-
getValue
java.lang.String getValue()
-
length
int length()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-