Robot Framework
robot.parsing.model.statements.Comment Class Reference
Inheritance diagram for robot.parsing.model.statements.Comment:
robot.parsing.model.statements.Statement

Public Member Functions

def from_params (cls, comment, indent=FOUR_SPACES, eol=EOL)
 
- Public Member Functions inherited from robot.parsing.model.statements.Statement
def __getitem__ (self, item)
 
def __init__ (self, tokens, errors=())
 
def __iter__ (self)
 
def __len__ (self)
 
def __repr__ (self)
 
def from_params (cls, *args, **kwargs)
 Create statement from passed parameters. More...
 
def from_tokens (cls, tokens)
 
def get_token (self, *types)
 Return a token with the given type. More...
 
def get_tokens (self, *types)
 Return tokens having any of the given types. More...
 
def get_value (self, type, default=None)
 Return value of a token with the given type. More...
 
def get_values (self, *types)
 Return values of tokens having any of the given types. More...
 
def register (cls, subcls)
 
def validate (self, context)
 

Static Public Attributes

 type = Token.COMMENT
 
- Static Public Attributes inherited from robot.parsing.model.statements.Statement
tuple handles_types = ()
 
 type = None
 

Additional Inherited Members

- Public Attributes inherited from robot.parsing.model.statements.Statement
 errors
 
 tokens
 
- Properties inherited from robot.parsing.model.statements.Statement
 col_offset = property
 
 data_tokens = property
 
 end_col_offset = property
 
 end_lineno = property
 
 lineno = property
 
 lines = property
 

Detailed Description

Definition at line 1144 of file statements.py.

Member Function Documentation

◆ from_params()

def robot.parsing.model.statements.Comment.from_params (   cls,
  comment,
  indent = FOUR_SPACES,
  eol = EOL 
)

Definition at line 1148 of file statements.py.

Member Data Documentation

◆ type

robot.parsing.model.statements.Comment.type = Token.COMMENT
static

Definition at line 1145 of file statements.py.


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