ToAPIStringVisitor#
- class ToAPIStringVisitor(save_context: ansys.tools.variableinterop.isave_context.ISaveContext | None)#
Bases: ansys.tools.variableinterop.ivariable_visitor.IVariableValueVisitor
[str
]
Visits values and converts them to an API string.
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 :meth:`IVariableValue.accept() method is called |
|
Method that is called if the |
|
Method that is called if the |
|
Method that is called if the |
Import detail#
from ansys.tools.variableinterop.api_serialization import ToAPIStringVisitor
Method detail#
- ToAPIStringVisitor.visit_integer(value: ansys.tools.variableinterop.scalar_values.IntegerValue) str #
Method that is called if the
IVariableValue.accept()
method is called on anIntegerValue
type.- Parameters:
- value
IntegerValue
IntegerValue
type to visit.
- value
- Returns:
T
Result.
- ToAPIStringVisitor.visit_real(value: ansys.tools.variableinterop.scalar_values.RealValue) str #
Method that is called if the
IVariableValue.accept()
method is called on aRealValue
type.- Parameters:
- value
RealValue
RealValue
type to visit.
- value
- Returns:
T
Result.
- ToAPIStringVisitor.visit_boolean(value: ansys.tools.variableinterop.scalar_values.BooleanValue) str #
Method that is called if the
IVariableValue.accept()
method is called on aBooleanValue
type.- Parameters:
- value
BooleanValue
BooleanValue
type to visit.
- value
- Returns:
T
Result.
- ToAPIStringVisitor.visit_string(value: ansys.tools.variableinterop.scalar_values.StringValue) str #
Method that is called if the
IVariableValue.accept()
method is called on aStringValue
type.- Parameters:
- value
StringValue
StringValue
type to visit.
- value
- Returns:
T
Result.
- ToAPIStringVisitor.visit_integer_array(value: ansys.tools.variableinterop.array_values.IntegerArrayValue) str #
Method that is called if the
IVariableValue.accept()
method is called on anIntegerArrayValue
type.- Parameters:
- value
IntegerArrayValue
IntegerArrayValue
type to visit.
- value
- Returns:
T
Result.
- ToAPIStringVisitor.visit_file(value: ansys.tools.variableinterop.file_value.FileValue) str #
Method that is called if the
IVariableValue.accept()
method is called on aFileValue
type.- Parameters:
- value
FileValue
FileValue
type to visit.
- value
- Returns:
T
Result
- ToAPIStringVisitor.visit_real_array(value: ansys.tools.variableinterop.array_values.RealArrayValue) str #
Method that is called if the :meth:`IVariableValue.accept() method is called on a
RealArrayValue
type.- Parameters:
- value
RealArrayValue
RealArrayValue
type to visit.
- value
- Returns:
T
Result.
- ToAPIStringVisitor.visit_boolean_array(value: ansys.tools.variableinterop.array_values.BooleanArrayValue) str #
Method that is called if the
IVariableValue.accept()
method is called on aBooleanArrayValue
type.- Parameters:
- value
BooleanArrayValue
BooleanArrayValue
type to visit.
- value
- Returns:
T
Result.
- ToAPIStringVisitor.visit_string_array(value: ansys.tools.variableinterop.array_values.StringArrayValue) str #
Method that is called if the
IVariableValue.accept()
method is called on aStringArrayValue
type.- Parameters:
- value
StringArrayValue
StringArrayValue
type to visit.
- value
- Returns:
T
Result.
- ToAPIStringVisitor.visit_file_array(value: ansys.tools.variableinterop.file_array_value.FileArrayValue) str #
Method that is called if the
IVariableValue.accept()
method is called on aFileArrayValue
type.- Parameters:
- value
FileArrayValue
FileArrayValue
type to visit.
- value
- Returns:
T
Result.