@PublicEvolving public interface Token extends Serializable
This class provides methods for retrieving the wrapped value of token parsed as well the type of token the implementation of this interface represents.
It also provides method for providing the JsonElement of implementation
of this interface.
| Modifier and Type | Method and Description |
|---|---|
com.google.gson.JsonElement |
toJson()
The class implementing this interface will return the
JsonElement
instance including the values of the object. |
TokenType |
type()
Returns the
TokenType of the object represented by the
implementation of this interface. |
Object |
value()
Returns the
value of the object wrapped by the
implementation of this interface. |
Object value()
value of the object wrapped by the
implementation of this interface.value wrapped by the implementation of this interface.TokenType type()
TokenType of the object represented by the
implementation of this interface.TokenType of the implementation object.com.google.gson.JsonElement toJson()
JsonElement
instance including the values of the object.JsonElement object containing members of implementing class.Copyright © 2022 CDAP Licensed under the Apache License, Version 2.0.