Bases: Node
, ABC
Bases: Container
Save model to the given output
or to the original source file.
The output
can be a path to a file or an already opened file object. If output
is not given, the original source file will be overwritten.
Bases: Container
, ABC
Bases: Block
Bases: Section
Bases: Section
Bases: Section
Bases: Section
Bases: Section
Bases: CommentSection
Bases: Section
Bases: Block
Bases: Block
Bases: Block
Bases: NestedBlock
Represents IF structures in the model.
Used with IF, Inline IF, ELSE IF and ELSE nodes. The type
attribute specifies the type.
Bases: NestedBlock
Bases: NestedBlock
Bases: NestedBlock
Bases: NestedBlock
Bases: ModelVisitor
Bases: ModelVisitor
Bases: object
Bases: ModelVisitor
Called if no explicit visitor function exists for a node.
Bases: ModelVisitor
Bases: ModelVisitor
Bases: AST
, ABC
Bases: Node
, ABC
Register a virtual subclass of an ABC.
Returns the subclass, to allow usage as a class decorator.
Create a statement from given tokens.
Statement type is got automatically from token types.
This classmethod should be called from Statement
, not from its subclasses. If you know the subclass to use, simply create an instance of it directly.
Create a statement from passed parameters.
Required and optional arguments in general match class properties. Values are used to create matching tokens.
Most implementations support following general properties:
separator
whitespace inserted between each token. Default is four spaces.
indent
whitespace inserted before first token. Default is four spaces.
eol
end of line sign. Default is '\n'
.
This classmethod should be called from the Statement
subclass to create, not from the Statement
class itself.
Return a token with any of the given types
.
If there are no matches, return None
. If there are multiple matches, return the first match.
Return tokens having any of the given types
.
Return value of a token with the given type
.
If there are no matches, return default
. If there are multiple matches, return the value of the first match.
Return values of tokens having any of the given types
.
Return value of a configuration option with the given name
.
If the option has not been used, return default
.
If the option has been used multiple times, values are joined together. This is typically an error situation and validated elsewhere.
New in Robot Framework 6.1.
Bases: Statement
, ABC
Bases: Statement
, ABC
Bases: Statement
, ABC
Bases: Statement
, ABC
Bases: Statement
Create a statement from passed parameters.
Required and optional arguments in general match class properties. Values are used to create matching tokens.
Most implementations support following general properties:
separator
whitespace inserted between each token. Default is four spaces.
indent
whitespace inserted before first token. Default is four spaces.
eol
end of line sign. Default is '\n'
.
This classmethod should be called from the Statement
subclass to create, not from the Statement
class itself.
Bases: Statement
Create a statement from passed parameters.
Required and optional arguments in general match class properties. Values are used to create matching tokens.
Most implementations support following general properties:
separator
whitespace inserted between each token. Default is four spaces.
indent
whitespace inserted before first token. Default is four spaces.
eol
end of line sign. Default is '\n'
.
This classmethod should be called from the Statement
subclass to create, not from the Statement
class itself.
Bases: Statement
Create a statement from passed parameters.
Required and optional arguments in general match class properties. Values are used to create matching tokens.
Most implementations support following general properties:
separator
whitespace inserted between each token. Default is four spaces.
indent
whitespace inserted before first token. Default is four spaces.
eol
end of line sign. Default is '\n'
.
This classmethod should be called from the Statement
subclass to create, not from the Statement
class itself.
Bases: Statement
Create a statement from passed parameters.
Required and optional arguments in general match class properties. Values are used to create matching tokens.
Most implementations support following general properties:
separator
whitespace inserted between each token. Default is four spaces.
indent
whitespace inserted before first token. Default is four spaces.
eol
end of line sign. Default is '\n'
.
This classmethod should be called from the Statement
subclass to create, not from the Statement
class itself.
Bases: DocumentationOrMetadata
Create a statement from passed parameters.
Required and optional arguments in general match class properties. Values are used to create matching tokens.
Most implementations support following general properties:
separator
whitespace inserted between each token. Default is four spaces.
indent
whitespace inserted before first token. Default is four spaces.
eol
end of line sign. Default is '\n'
.
This classmethod should be called from the Statement
subclass to create, not from the Statement
class itself.
Bases: DocumentationOrMetadata
Create a statement from passed parameters.
Required and optional arguments in general match class properties. Values are used to create matching tokens.
Most implementations support following general properties:
separator
whitespace inserted between each token. Default is four spaces.
indent
whitespace inserted before first token. Default is four spaces.
eol
end of line sign. Default is '\n'
.
This classmethod should be called from the Statement
subclass to create, not from the Statement
class itself.
Bases: MultiValue
Create a statement from passed parameters.
Required and optional arguments in general match class properties. Values are used to create matching tokens.
Most implementations support following general properties:
separator
whitespace inserted between each token. Default is four spaces.
indent
whitespace inserted before first token. Default is four spaces.
eol
end of line sign. Default is '\n'
.
This classmethod should be called from the Statement
subclass to create, not from the Statement
class itself.
Bases: MultiValue
Create a statement from passed parameters.
Required and optional arguments in general match class properties. Values are used to create matching tokens.
Most implementations support following general properties:
separator
whitespace inserted between each token. Default is four spaces.
indent
whitespace inserted before first token. Default is four spaces.
eol
end of line sign. Default is '\n'
.
This classmethod should be called from the Statement
subclass to create, not from the Statement
class itself.
Bases: MultiValue
Create a statement from passed parameters.
Required and optional arguments in general match class properties. Values are used to create matching tokens.
Most implementations support following general properties:
separator
whitespace inserted between each token. Default is four spaces.
indent
whitespace inserted before first token. Default is four spaces.
eol
end of line sign. Default is '\n'
.
This classmethod should be called from the Statement
subclass to create, not from the Statement
class itself.
Bases: SingleValue
Create a statement from passed parameters.
Required and optional arguments in general match class properties. Values are used to create matching tokens.
Most implementations support following general properties:
separator
whitespace inserted between each token. Default is four spaces.
indent
whitespace inserted before first token. Default is four spaces.
eol
end of line sign. Default is '\n'
.
This classmethod should be called from the Statement
subclass to create, not from the Statement
class itself.
Bases: Fixture
Create a statement from passed parameters.
Required and optional arguments in general match class properties. Values are used to create matching tokens.
Most implementations support following general properties:
separator
whitespace inserted between each token. Default is four spaces.
indent
whitespace inserted before first token. Default is four spaces.
eol
end of line sign. Default is '\n'
.
This classmethod should be called from the Statement
subclass to create, not from the Statement
class itself.
Bases: Fixture
Create a statement from passed parameters.
Required and optional arguments in general match class properties. Values are used to create matching tokens.
Most implementations support following general properties:
separator
whitespace inserted between each token. Default is four spaces.
indent
whitespace inserted before first token. Default is four spaces.
eol
end of line sign. Default is '\n'
.
This classmethod should be called from the Statement
subclass to create, not from the Statement
class itself.
Bases: Fixture
Create a statement from passed parameters.
Required and optional arguments in general match class properties. Values are used to create matching tokens.
Most implementations support following general properties:
separator
whitespace inserted between each token. Default is four spaces.
indent
whitespace inserted before first token. Default is four spaces.
eol
end of line sign. Default is '\n'
.
This classmethod should be called from the Statement
subclass to create, not from the Statement
class itself.
Bases: Fixture
Create a statement from passed parameters.
Required and optional arguments in general match class properties. Values are used to create matching tokens.
Most implementations support following general properties:
separator
whitespace inserted between each token. Default is four spaces.
indent
whitespace inserted before first token. Default is four spaces.
eol
end of line sign. Default is '\n'
.
This classmethod should be called from the Statement
subclass to create, not from the Statement
class itself.
Bases: SingleValue
Create a statement from passed parameters.
Required and optional arguments in general match class properties. Values are used to create matching tokens.
Most implementations support following general properties:
separator
whitespace inserted between each token. Default is four spaces.
indent
whitespace inserted before first token. Default is four spaces.
eol
end of line sign. Default is '\n'
.
This classmethod should be called from the Statement
subclass to create, not from the Statement
class itself.
Bases: SingleValue
Create a statement from passed parameters.
Required and optional arguments in general match class properties. Values are used to create matching tokens.
Most implementations support following general properties:
separator
whitespace inserted between each token. Default is four spaces.
indent
whitespace inserted before first token. Default is four spaces.
eol
end of line sign. Default is '\n'
.
This classmethod should be called from the Statement
subclass to create, not from the Statement
class itself.
Bases: Statement
Create a statement from passed parameters.
Required and optional arguments in general match class properties. Values are used to create matching tokens.
Most implementations support following general properties:
separator
whitespace inserted between each token. Default is four spaces.
indent
whitespace inserted before first token. Default is four spaces.
eol
end of line sign. Default is '\n'
.
This classmethod should be called from the Statement
subclass to create, not from the Statement
class itself.
Bases: Statement
Create a statement from passed parameters.
Required and optional arguments in general match class properties. Values are used to create matching tokens.
Most implementations support following general properties:
separator
whitespace inserted between each token. Default is four spaces.
indent
whitespace inserted before first token. Default is four spaces.
eol
end of line sign. Default is '\n'
.
This classmethod should be called from the Statement
subclass to create, not from the Statement
class itself.
Bases: Statement
Create a statement from passed parameters.
Required and optional arguments in general match class properties. Values are used to create matching tokens.
Most implementations support following general properties:
separator
whitespace inserted between each token. Default is four spaces.
indent
whitespace inserted before first token. Default is four spaces.
eol
end of line sign. Default is '\n'
.
This classmethod should be called from the Statement
subclass to create, not from the Statement
class itself.
Bases: Fixture
Create a statement from passed parameters.
Required and optional arguments in general match class properties. Values are used to create matching tokens.
Most implementations support following general properties:
separator
whitespace inserted between each token. Default is four spaces.
indent
whitespace inserted before first token. Default is four spaces.
eol
end of line sign. Default is '\n'
.
This classmethod should be called from the Statement
subclass to create, not from the Statement
class itself.
Bases: Fixture
Create a statement from passed parameters.
Required and optional arguments in general match class properties. Values are used to create matching tokens.
Most implementations support following general properties:
separator
whitespace inserted between each token. Default is four spaces.
indent
whitespace inserted before first token. Default is four spaces.
eol
end of line sign. Default is '\n'
.
This classmethod should be called from the Statement
subclass to create, not from the Statement
class itself.
Bases: MultiValue
Create a statement from passed parameters.
Required and optional arguments in general match class properties. Values are used to create matching tokens.
Most implementations support following general properties:
separator
whitespace inserted between each token. Default is four spaces.
indent
whitespace inserted before first token. Default is four spaces.
eol
end of line sign. Default is '\n'
.
This classmethod should be called from the Statement
subclass to create, not from the Statement
class itself.
Bases: SingleValue
Create a statement from passed parameters.
Required and optional arguments in general match class properties. Values are used to create matching tokens.
Most implementations support following general properties:
separator
whitespace inserted between each token. Default is four spaces.
indent
whitespace inserted before first token. Default is four spaces.
eol
end of line sign. Default is '\n'
.
This classmethod should be called from the Statement
subclass to create, not from the Statement
class itself.
Bases: SingleValue
Create a statement from passed parameters.
Required and optional arguments in general match class properties. Values are used to create matching tokens.
Most implementations support following general properties:
separator
whitespace inserted between each token. Default is four spaces.
indent
whitespace inserted before first token. Default is four spaces.
eol
end of line sign. Default is '\n'
.
This classmethod should be called from the Statement
subclass to create, not from the Statement
class itself.
Bases: MultiValue
Create a statement from passed parameters.
Required and optional arguments in general match class properties. Values are used to create matching tokens.
Most implementations support following general properties:
separator
whitespace inserted between each token. Default is four spaces.
indent
whitespace inserted before first token. Default is four spaces.
eol
end of line sign. Default is '\n'
.
This classmethod should be called from the Statement
subclass to create, not from the Statement
class itself.
Bases: MultiValue
Represents the deprecated [Return]
setting.
This class was named Return
prior to Robot Framework 7.0. A forward compatible ReturnSetting
alias existed already in Robot Framework 6.1.
Create a statement from passed parameters.
Required and optional arguments in general match class properties. Values are used to create matching tokens.
Most implementations support following general properties:
separator
whitespace inserted between each token. Default is four spaces.
indent
whitespace inserted before first token. Default is four spaces.
eol
end of line sign. Default is '\n'
.
This classmethod should be called from the Statement
subclass to create, not from the Statement
class itself.
Bases: Statement
Create a statement from passed parameters.
Required and optional arguments in general match class properties. Values are used to create matching tokens.
Most implementations support following general properties:
separator
whitespace inserted between each token. Default is four spaces.
indent
whitespace inserted before first token. Default is four spaces.
eol
end of line sign. Default is '\n'
.
This classmethod should be called from the Statement
subclass to create, not from the Statement
class itself.
Bases: Statement
Create a statement from passed parameters.
Required and optional arguments in general match class properties. Values are used to create matching tokens.
Most implementations support following general properties:
separator
whitespace inserted between each token. Default is four spaces.
indent
whitespace inserted before first token. Default is four spaces.
eol
end of line sign. Default is '\n'
.
This classmethod should be called from the Statement
subclass to create, not from the Statement
class itself.
Bases: Statement
Create a statement from passed parameters.
Required and optional arguments in general match class properties. Values are used to create matching tokens.
Most implementations support following general properties:
separator
whitespace inserted between each token. Default is four spaces.
indent
whitespace inserted before first token. Default is four spaces.
eol
end of line sign. Default is '\n'
.
This classmethod should be called from the Statement
subclass to create, not from the Statement
class itself.
Bases: Statement
, ABC
Bases: IfElseHeader
Create a statement from passed parameters.
Required and optional arguments in general match class properties. Values are used to create matching tokens.
Most implementations support following general properties:
separator
whitespace inserted between each token. Default is four spaces.
indent
whitespace inserted before first token. Default is four spaces.
eol
end of line sign. Default is '\n'
.
This classmethod should be called from the Statement
subclass to create, not from the Statement
class itself.
Bases: IfElseHeader
Create a statement from passed parameters.
Required and optional arguments in general match class properties. Values are used to create matching tokens.
Most implementations support following general properties:
separator
whitespace inserted between each token. Default is four spaces.
indent
whitespace inserted before first token. Default is four spaces.
eol
end of line sign. Default is '\n'
.
This classmethod should be called from the Statement
subclass to create, not from the Statement
class itself.
Bases: IfElseHeader
Create a statement from passed parameters.
Required and optional arguments in general match class properties. Values are used to create matching tokens.
Most implementations support following general properties:
separator
whitespace inserted between each token. Default is four spaces.
indent
whitespace inserted before first token. Default is four spaces.
eol
end of line sign. Default is '\n'
.
This classmethod should be called from the Statement
subclass to create, not from the Statement
class itself.
Bases: IfElseHeader
Create a statement from passed parameters.
Required and optional arguments in general match class properties. Values are used to create matching tokens.
Most implementations support following general properties:
separator
whitespace inserted between each token. Default is four spaces.
indent
whitespace inserted before first token. Default is four spaces.
eol
end of line sign. Default is '\n'
.
This classmethod should be called from the Statement
subclass to create, not from the Statement
class itself.
Bases: Statement
, ABC
Create a statement from passed parameters.
Required and optional arguments in general match class properties. Values are used to create matching tokens.
Most implementations support following general properties:
separator
whitespace inserted between each token. Default is four spaces.
indent
whitespace inserted before first token. Default is four spaces.
eol
end of line sign. Default is '\n'
.
This classmethod should be called from the Statement
subclass to create, not from the Statement
class itself.
Bases: NoArgumentHeader
Bases: Statement
Create a statement from passed parameters.
Required and optional arguments in general match class properties. Values are used to create matching tokens.
Most implementations support following general properties:
separator
whitespace inserted between each token. Default is four spaces.
indent
whitespace inserted before first token. Default is four spaces.
eol
end of line sign. Default is '\n'
.
This classmethod should be called from the Statement
subclass to create, not from the Statement
class itself.
Bases: NoArgumentHeader
Bases: NoArgumentHeader
Bases: Statement
Create a statement from passed parameters.
Required and optional arguments in general match class properties. Values are used to create matching tokens.
Most implementations support following general properties:
separator
whitespace inserted between each token. Default is four spaces.
indent
whitespace inserted before first token. Default is four spaces.
eol
end of line sign. Default is '\n'
.
This classmethod should be called from the Statement
subclass to create, not from the Statement
class itself.
Bases: Statement
Create a statement from passed parameters.
Required and optional arguments in general match class properties. Values are used to create matching tokens.
Most implementations support following general properties:
separator
whitespace inserted between each token. Default is four spaces.
indent
whitespace inserted before first token. Default is four spaces.
eol
end of line sign. Default is '\n'
.
This classmethod should be called from the Statement
subclass to create, not from the Statement
class itself.
Bases: Statement
Create a statement from passed parameters.
Required and optional arguments in general match class properties. Values are used to create matching tokens.
Most implementations support following general properties:
separator
whitespace inserted between each token. Default is four spaces.
indent
whitespace inserted before first token. Default is four spaces.
eol
end of line sign. Default is '\n'
.
This classmethod should be called from the Statement
subclass to create, not from the Statement
class itself.
Bases: Statement
Represents the RETURN statement.
This class named ReturnStatement
prior to Robot Framework 7.0. The old name still exists as a backwards compatible alias.
Create a statement from passed parameters.
Required and optional arguments in general match class properties. Values are used to create matching tokens.
Most implementations support following general properties:
separator
whitespace inserted between each token. Default is four spaces.
indent
whitespace inserted before first token. Default is four spaces.
eol
end of line sign. Default is '\n'
.
This classmethod should be called from the Statement
subclass to create, not from the Statement
class itself.
alias of Return
Bases: NoArgumentHeader
, ABC
Bases: LoopControl
Bases: LoopControl
Bases: Statement
Create a statement from passed parameters.
Required and optional arguments in general match class properties. Values are used to create matching tokens.
Most implementations support following general properties:
separator
whitespace inserted between each token. Default is four spaces.
indent
whitespace inserted before first token. Default is four spaces.
eol
end of line sign. Default is '\n'
.
This classmethod should be called from the Statement
subclass to create, not from the Statement
class itself.
Bases: Statement
Create a statement from passed parameters.
Required and optional arguments in general match class properties. Values are used to create matching tokens.
Most implementations support following general properties:
separator
whitespace inserted between each token. Default is four spaces.
indent
whitespace inserted before first token. Default is four spaces.
eol
end of line sign. Default is '\n'
.
This classmethod should be called from the Statement
subclass to create, not from the Statement
class itself.
Bases: Statement
Create a statement from passed parameters.
Required and optional arguments in general match class properties. Values are used to create matching tokens.
Most implementations support following general properties:
separator
whitespace inserted between each token. Default is four spaces.
indent
whitespace inserted before first token. Default is four spaces.
eol
end of line sign. Default is '\n'
.
This classmethod should be called from the Statement
subclass to create, not from the Statement
class itself.
Errors got from the underlying ``ERROR``token.
Errors can be set also explicitly. When accessing errors, they are returned along with errors got from tokens.
Bases: Statement
Create a statement from passed parameters.
Required and optional arguments in general match class properties. Values are used to create matching tokens.
Most implementations support following general properties:
separator
whitespace inserted between each token. Default is four spaces.
indent
whitespace inserted before first token. Default is four spaces.
eol
end of line sign. Default is '\n'
.
This classmethod should be called from the Statement
subclass to create, not from the Statement
class itself.
Bases: object
Bases: object
Bases: object
Bases: NodeVisitor
, VisitorFinder
NodeVisitor that supports matching nodes based on their base classes.
The biggest difference compared to the standard ast.NodeVisitor, is that this class allows creating visit_ClassName
methods so that the ClassName
is one of the base classes of the node. For example, the following visitor method matches all node classes that extend Statement
:
def visit_Statement(self, node): ...
Another difference is that visitor methods are cached for performance reasons. This means that dynamically adding visit_Something
methods does not work.
Visit a node.
Bases: NodeTransformer
, VisitorFinder
NodeTransformer that supports matching nodes based on their base classes.
See ModelVisitor
for explanation how this is different compared to the standard ast.NodeTransformer.
Visit a node.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4