IVariableMetadataVisitor#
- class IVariableMetadataVisitor#
Bases: abc.ABC
, Generic
[T
]
Defines the interface to be implemented for using the visitor pattern with variable
Overview#
Method that is called if the |
|
Method that is called if the |
|
Method that is called if the |
|
Method that is called if the |
|
Method that is called if the |
|
Method that is called if the |
|
Method that is called if the |
|
Method that is called if the |
|
Method that is called if the |
|
Method that is called if the |
Import detail#
from ansys.tools.variableinterop.ivariablemetadata_visitor import IVariableMetadataVisitor
Method detail#
- abstract IVariableMetadataVisitor.visit_integer(metadata: ansys.tools.variableinterop.scalar_metadata.IntegerMetadata) T #
Method that is called if the
IVariableValue.accept()
method is called on anIntegerMetadata
type.- Parameters:
- metadata
IntegerMetadata
IntegerMetadata
type to visit.
- metadata
- Returns:
T
Result.
- abstract IVariableMetadataVisitor.visit_real(metadata: ansys.tools.variableinterop.scalar_metadata.RealMetadata) T #
Method that is called if the
IVariableValue.accept()
method is called on aRealMetadata
type.- Parameters:
- metadata
RealMetadata
RealMetadata
type to visit.
- metadata
- Returns:
T
Result.
- abstract IVariableMetadataVisitor.visit_boolean(metadata: ansys.tools.variableinterop.scalar_metadata.BooleanMetadata) T #
Method that is called if the
IVariableValue.accept()
method is called on aBooleanMetadata
type.- Parameters:
- metadata
BooleanMetadata
BooleanMetadata
type to visit.
- metadata
- Returns:
T
Result.
- abstract IVariableMetadataVisitor.visit_string(metadata: ansys.tools.variableinterop.scalar_metadata.StringMetadata) T #
Method that is called if the
IVariableValue.accept()
method is called on aStringMetadata
type.- Parameters:
- metadata
StringMetadata
StringMetadata
type to visit.
- metadata
- Returns:
T
Result.
- abstract IVariableMetadataVisitor.visit_file(metadata: ansys.tools.variableinterop.file_metadata.FileMetadata) T #
Method that is called if the
IVariableValue.accept()
method is called on aFileMetadata
type.- Parameters:
- metadata
FileMetadata
FileMetadata
type to visit.
- metadata
- Returns:
T
Result.
- abstract IVariableMetadataVisitor.visit_integer_array(metadata: ansys.tools.variableinterop.array_metadata.IntegerArrayMetadata) T #
Method that is called if the
IVariableValue.accept()
method is called on anIntegerArrayMetaData
type.- Parameters:
- metadata
IntegerArrayMetadata
IntegerArrayMetadata
type to visit.
- metadata
- Returns:
T
Result.
- abstract IVariableMetadataVisitor.visit_real_array(metadata: ansys.tools.variableinterop.array_metadata.RealArrayMetadata) T #
Method that is called if the
IVariableValue.accept()
method is called on aRealArrayMetaData
type.- Parameters:
- metadata
RealArrayMetadata
RealArrayMetaData
type to visit.
- metadata
- Returns:
T
Result.
- abstract IVariableMetadataVisitor.visit_boolean_array(metadata: ansys.tools.variableinterop.array_metadata.BooleanArrayMetadata) T #
Method that is called if the
IVariableValue.accept()
method is called on aBooleanArrayMetaData
type.- Parameters:
- metadata
BooleanArrayMetadata
BooleanArrayMetaData
type to visit.
- metadata
- Returns:
T
Result.
- abstract IVariableMetadataVisitor.visit_string_array(metadata: ansys.tools.variableinterop.array_metadata.StringArrayMetadata) T #
Method that is called if the
IVariableValue.accept()
method is called on aStringArrayMetaData
type.- Parameters:
- metadata
StringArrayMetadata
StringArrayMetaData
type to visit.
- metadata
- Returns:
T
Result.
- abstract IVariableMetadataVisitor.visit_file_array(metadata: ansys.tools.variableinterop.file_array_metadata.FileArrayMetadata) T #
Method that is called if the
IVariableValue.accept()
method is called on aFileArrayMetadata`
type.- Parameters:
- metadata
FileArrayMetadata
FileArrayMetadata
type to visit.
- metadata
- Returns:
T
Result.