LLVM 22.0.0git
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
llvm::mustache::Token Class Reference

Public Types

enum class  Type {
  Text , Variable , Partial , SectionOpen ,
  SectionClose , InvertSectionOpen , UnescapeVariable , Comment
}
 

Public Member Functions

 Token (std::string Str)
 
 Token (std::string RawBody, std::string TokenBody, char Identifier)
 
Accessor getAccessor () const
 
Type getType () const
 
void setIndentation (size_t NewIndentation)
 
size_t getIndentation () const
 

Static Public Member Functions

static Type getTokenType (char Identifier)
 

Public Attributes

Type TokenType
 
std::string RawBody
 
std::string TokenBody
 
Accessor AccessorValue
 
size_t Indentation
 

Detailed Description

Definition at line 54 of file Mustache.cpp.

Member Enumeration Documentation

◆ Type

enum class llvm::mustache::Token::Type
strong
Enumerator
Text 
Variable 
Partial 
SectionOpen 
SectionClose 
InvertSectionOpen 
UnescapeVariable 
Comment 

Definition at line 56 of file Mustache.cpp.

Constructor & Destructor Documentation

◆ Token() [1/2]

llvm::mustache::Token::Token ( std::string  Str)
inline

Definition at line 67 of file Mustache.cpp.

◆ Token() [2/2]

llvm::mustache::Token::Token ( std::string  RawBody,
std::string  TokenBody,
char  Identifier 
)
inline

Member Function Documentation

◆ getAccessor()

Accessor llvm::mustache::Token::getAccessor ( ) const
inline

Definition at line 83 of file Mustache.cpp.

References AccessorValue.

◆ getIndentation()

size_t llvm::mustache::Token::getIndentation ( ) const
inline

Definition at line 89 of file Mustache.cpp.

References Indentation.

◆ getTokenType()

static Type llvm::mustache::Token::getTokenType ( char  Identifier)
inlinestatic

Definition at line 91 of file Mustache.cpp.

References Comment, InvertSectionOpen, Partial, SectionClose, SectionOpen, UnescapeVariable, and Variable.

Referenced by Token().

◆ getType()

Type llvm::mustache::Token::getType ( ) const
inline

Definition at line 85 of file Mustache.cpp.

References TokenType.

Referenced by llvm::mustache::tokenize().

◆ setIndentation()

void llvm::mustache::Token::setIndentation ( size_t  NewIndentation)
inline

Definition at line 87 of file Mustache.cpp.

References Indentation.

Referenced by llvm::mustache::stripTokenBefore().

Member Data Documentation

◆ AccessorValue

Accessor llvm::mustache::Token::AccessorValue

Definition at line 115 of file Mustache.cpp.

Referenced by getAccessor(), and Token().

◆ Indentation

size_t llvm::mustache::Token::Indentation

Definition at line 116 of file Mustache.cpp.

Referenced by getIndentation(), and setIndentation().

◆ RawBody

std::string llvm::mustache::Token::RawBody

Definition at line 112 of file Mustache.cpp.

Referenced by llvm::mustache::hasTextAhead(), and llvm::mustache::hasTextBehind().

◆ TokenBody

std::string llvm::mustache::Token::TokenBody

◆ TokenType

Type llvm::mustache::Token::TokenType

Definition at line 110 of file Mustache.cpp.

Referenced by getType(), and Token().


The documentation for this class was generated from the following file: