class GUIStyleSheetToken

Token generated by scanning style sheet code through GUIStyleSheetLexer.

Public

Constructors

GUIStyleSheetToken

GUIStyleSheetToken() noexcept = default

GUIStyleSheetToken

GUIStyleSheetToken(const SourceCodePosition &sourceCodePosition, GUIStyleSheetTokenTypes type)

GUIStyleSheetToken

GUIStyleSheetToken(const SourceCodePosition &sourceCodePosition, GUIStyleSheetTokenTypes type, const String &spelling)

GUIStyleSheetToken

GUIStyleSheetToken(const SourceCodePosition &sourceCodePosition, GUIStyleSheetTokenTypes type, String &&spelling)

GUIStyleSheetToken

GUIStyleSheetToken(const GUIStyleSheetToken &other)

GUIStyleSheetToken

GUIStyleSheetToken(GUIStyleSheetToken &&other)

Methods

staticTypeToString

static String TypeToString(GUIStyleSheetTokenTypes type)

Returns a descriptive string for the specified token type.

SpellContent

String SpellContent() const

Returns the token spelling of the content (e.g. only the content of a string literal within the quotes).

GetType

GUIStyleSheetTokenTypes GetType() const

Returns the token type.

GetSourceCodePosition

const SourceCodePosition &GetSourceCodePosition() const

Returns the token source position.

GetSpelling

const String &GetSpelling() const

Returns the token spelling.

Operators

operator=

operator=

GUIStyleSheetToken &operator=(const GUIStyleSheetToken &other)

Private

Fields

mPosition

mSpelling

String mSpelling