# Print output for @column tags ?> AbstractMessageParser.Token - Android SDK | Android Developers

Most visited

Recently visited

AbstractMessageParser.Token

public static abstract class AbstractMessageParser.Token
extends Object

java.lang.Object
   ↳ com.google.android.util.AbstractMessageParser.Token


Represents a unit of parsed output.

Summary

Nested classes

enum AbstractMessageParser.Token.Type

 

Fields

protected String text

protected AbstractMessageParser.Token.Type type

Protected constructors

Token(AbstractMessageParser.Token.Type type, String text)

Public methods

boolean controlCaps()
List<String> getInfo()

Get the relevant information about a token

String getRawText()

Returns the raw text of the token.

AbstractMessageParser.Token.Type getType()

Returns the type of the token.

boolean isArray()
abstract boolean isHtml()
boolean isMedia()
boolean setCaps()
String toHtml(boolean caps)

Inherited methods

Fields

text

protected String text

type

protected AbstractMessageParser.Token.Type type

Protected constructors

Token

protected Token (AbstractMessageParser.Token.Type type, 
                String text)

Parameters
type AbstractMessageParser.Token.Type

text String

Public methods

controlCaps

public boolean controlCaps ()

Returns
boolean

getInfo

public List<String> getInfo ()

Get the relevant information about a token

Returns
List<String> a list of strings representing the token, not null The first item is always a string representation of the type

getRawText

public String getRawText ()

Returns the raw text of the token.

Returns
String

getType

public AbstractMessageParser.Token.Type getType ()

Returns the type of the token.

Returns
AbstractMessageParser.Token.Type

isArray

public boolean isArray ()

Returns
boolean

isHtml

public abstract boolean isHtml ()

Returns
boolean

isMedia

public boolean isMedia ()

Returns
boolean

setCaps

public boolean setCaps ()

Returns
boolean

toHtml

public String toHtml (boolean caps)

Parameters
caps boolean

Returns
String