VariableValueToJsonVisitor#
- class ansys.tools.variableinterop.variable_value_json_visitors.VariableValueToJsonVisitor#
Bases:
ansys.tools.variableinterop.IVariableValueVisitorVisitor that returns a JSON serializable representation of an IVariableValue.
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 :meth:`IVariableValue.accept() method is called |
|
Method that is called if the |
|
Method that is called if the |
Import detail#
from ansys.tools.variableinterop.variable_value_json_visitors import VariableValueToJsonVisitor
Method detail#
- VariableValueToJsonVisitor.visit_integer(value: ansys.tools.variableinterop.IntegerValue) Any#
Method that is called if the
IVariableValue.accept()method is called on anIntegerValuetype.- Parameters:
- value
IntegerValue IntegerValuetype to visit.
- value
- Returns:
TResult.
- VariableValueToJsonVisitor.visit_real(value: ansys.tools.variableinterop.RealValue) Any#
Method that is called if the
IVariableValue.accept()method is called on aRealValuetype.- Parameters:
- value
RealValue RealValuetype to visit.
- value
- Returns:
TResult.
- VariableValueToJsonVisitor.visit_boolean(value: ansys.tools.variableinterop.BooleanValue) Any#
Method that is called if the
IVariableValue.accept()method is called on aBooleanValuetype.- Parameters:
- value
BooleanValue BooleanValuetype to visit.
- value
- Returns:
TResult.
- VariableValueToJsonVisitor.visit_string(value: ansys.tools.variableinterop.StringValue) Any#
Method that is called if the
IVariableValue.accept()method is called on aStringValuetype.- Parameters:
- value
StringValue StringValuetype to visit.
- value
- Returns:
TResult.
- VariableValueToJsonVisitor.visit_integer_array(value: ansys.tools.variableinterop.IntegerArrayValue) Any#
Method that is called if the
IVariableValue.accept()method is called on anIntegerArrayValuetype.- Parameters:
- value
IntegerArrayValue IntegerArrayValuetype to visit.
- value
- Returns:
TResult.
- abstractmethod VariableValueToJsonVisitor.visit_file(value: ansys.tools.variableinterop.FileValue) Any#
Method that is called if the
IVariableValue.accept()method is called on aFileValuetype.- Parameters:
- value
FileValue FileValuetype to visit.
- value
- Returns:
TResult
- VariableValueToJsonVisitor.visit_real_array(value: ansys.tools.variableinterop.RealArrayValue) Any#
Method that is called if the :meth:`IVariableValue.accept() method is called on a
RealArrayValuetype.- Parameters:
- value
RealArrayValue RealArrayValuetype to visit.
- value
- Returns:
TResult.
- VariableValueToJsonVisitor.visit_boolean_array(value: ansys.tools.variableinterop.BooleanArrayValue) Any#
Method that is called if the
IVariableValue.accept()method is called on aBooleanArrayValuetype.- Parameters:
- value
BooleanArrayValue BooleanArrayValuetype to visit.
- value
- Returns:
TResult.
- VariableValueToJsonVisitor.visit_string_array(value: ansys.tools.variableinterop.StringArrayValue) Any#
Method that is called if the
IVariableValue.accept()method is called on aStringArrayValuetype.- Parameters:
- value
StringArrayValue StringArrayValuetype to visit.
- value
- Returns:
TResult.
- abstractmethod VariableValueToJsonVisitor.visit_file_array(value: ansys.tools.variableinterop.FileArrayValue) Any#
Method that is called if the
IVariableValue.accept()method is called on aFileArrayValuetype.- Parameters:
- value
FileArrayValue FileArrayValuetype to visit.
- value
- Returns:
TResult.