OpenStructure
Public Types | Public Member Functions
PythonToken Class Reference

#include <python_tokenizer.hh>

Public Types

enum  Type {
  KEYWORD , STRING_LITERAL , STRING_DELIM , IDENTIFIER ,
  NUMBER , OPERATOR , GROUPING , COMMENT ,
  END
}
 

Public Member Functions

 PythonToken ()
 
 PythonToken (Type type, const Range &range, const QString &value)
 
Type GetType () const
 
QString GetTypeAsString () const
 
const QString & GetValue () const
 
const RangeGetRange () const
 

Detailed Description

Definition at line 54 of file python_tokenizer.hh.

Member Enumeration Documentation

◆ Type

enum Type
Enumerator
KEYWORD 
STRING_LITERAL 
STRING_DELIM 
IDENTIFIER 
NUMBER 
OPERATOR 
GROUPING 
COMMENT 
END 

Definition at line 57 of file python_tokenizer.hh.

Constructor & Destructor Documentation

◆ PythonToken() [1/2]

◆ PythonToken() [2/2]

PythonToken ( Type  type,
const Range range,
const QString &  value 
)

Member Function Documentation

◆ GetRange()

const Range& GetRange ( ) const

◆ GetType()

Type GetType ( ) const

◆ GetTypeAsString()

QString GetTypeAsString ( ) const

◆ GetValue()

const QString& GetValue ( ) const

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