TokenList

public class
feathers.core.TokenList

Description

A list of space-delimited tokens.

API overview

Constructor

TokenList ()
Constructor.

Attributes

Public attributes

length: Number read-only

The number of tokens in the list

value: String

The tokens formated with space delimiters

Functions

Public functions

add ( name: String ): Void

Adds a token to the list

contains ( name: String ): Boolean

Determines if the specified token is in the list

item ( index: Number ): String

Returns the token at the specified index, or null, if there is no token at that index

remove ( name: String ): Void

Removes a token from the list, if the token is in the list

toggle ( name: String ): Void

The token is added to the list if it doesn't appear in the list, or it is removed from the list if it is already in the list

Constructor

TokenList ()

Constructor.

Attributes

length: Number

read-only

The number of tokens in the list.

value: String

The tokens formated with space delimiters.

Functions

add ( name: String ): Void

Adds a token to the list. If the token already appears in the list, it will not be added again.

Parameters

name: String


contains ( name: String ): Boolean

Determines if the specified token is in the list.

Parameters

name: String


getFullTypeName (): String
Inherited from Object

native

Gets the fully qualified type name of the Object. The fully qualified type name includes the package of the type.


Returns

String fully qualified type name of the Object.

getType (): Type
Inherited from Object

native

Gets the Type that describes the Object.


Returns

Type The Type that describes the object.

getTypeName (): String
Inherited from Object

native

Gets the type name of the Object.


Returns

String type name of the Object.

item ( index: Number ): String

Returns the token at the specified index, or null, if there is no token at that index.

Parameters

index: Number


remove ( name: String ): Void

Removes a token from the list, if the token is in the list. If the token doesn't appear in the list, this call does nothing.

Parameters

name: String


toString (): String
Inherited from Object

native

Returns a String that describes the Object. This can be overriden to provide extra details when printing objects using trace().


Returns

String String that described the Object.

toggle ( name: String ): Void

The token is added to the list if it doesn't appear in the list, or it is removed from the list if it is already in the list.

Parameters

name: String


: