APIStringToValueVisitor#
- class APIStringToValueVisitor(source: str, fscope: ansys.tools.variableinterop.file_scope.FileScope | None = None, save_context: ansys.tools.variableinterop.isave_context.ILoadContext | None = None)#
Bases: ansys.tools.variableinterop.ivariable_type_pseudovisitor.IVariableTypePseudoVisitor
Visits variable type enumeration values, producing a variable value from a
Overview#
Visit the |
Produce an |
|
Produce a |
|
Produce a |
|
Produce a |
|
Produce a |
|
Produce an |
|
Produce a |
|
Produce a |
|
Produce a |
|
Produce a |
Import detail#
from ansys.tools.variableinterop.api_string_to_value_visitor import APIStringToValueVisitor
Method detail#
- abstract APIStringToValueVisitor.visit_unknown() None#
Visit the
UNKNOWNvariable type.Given that variables of the
UNKNOWNtype cannot actually be produced, this method always raisesNotImplementedError.- Returns:
NoneNever returns; always raises
NotImplementedError.
- Raises:
NotImplementedErrorAlways.
- APIStringToValueVisitor.visit_int() ansys.tools.variableinterop.scalar_values.IntegerValue#
Produce an
IntegerValuetype from the API string format.- Returns:
IntegerValueIntegerValuetype with a value determined by the specified string.
- APIStringToValueVisitor.visit_real() ansys.tools.variableinterop.scalar_values.RealValue#
Produce a
RealValuetype from the API string format.- Returns:
RealValueRealValuetype with a value determined by the specified string.
- APIStringToValueVisitor.visit_boolean() ansys.tools.variableinterop.scalar_values.BooleanValue#
Produce a
BooleanValuetype from the API string format.- Returns:
BooleanValueBooleanValuetype with a value determined by the specified string.
- APIStringToValueVisitor.visit_string() ansys.tools.variableinterop.scalar_values.StringValue#
Produce a
StringValuetype from the API string format.- Returns:
StringValueStringValuetype with a value determined by the specified string.
- APIStringToValueVisitor.visit_file() ansys.tools.variableinterop.file_value.FileValue#
Produce a
FileValuetype from the API string format.- Returns:
FileValueFileValuetype with a value determined by the specified string.
- APIStringToValueVisitor.visit_int_array() ansys.tools.variableinterop.array_values.IntegerArrayValue#
Produce an
IntegerArrayValuetype from the API string format.- Returns:
IntegerArrayValueIntegerArrayValuetype with a value determined by the specified string.
- APIStringToValueVisitor.visit_real_array() ansys.tools.variableinterop.array_values.RealArrayValue#
Produce a
RealArrayValuetype from the API string format.- Returns:
RealArrayValueRealArrayValuetype with a value determined by the specified string.
- APIStringToValueVisitor.visit_bool_array() ansys.tools.variableinterop.array_values.BooleanArrayValue#
Produce a
BooleanArrayValuefrom the API string format.- Returns:
BooleanArrayValueBooleanArrayValuetype with a value determined by the specified string.
- APIStringToValueVisitor.visit_string_array() ansys.tools.variableinterop.array_values.StringArrayValue#
Produce a
StringArrayValuetype from the API string format.- Returns:
StringArrayValueStringArrayValuetype with a value determined by the specified string.
- APIStringToValueVisitor.visit_file_array() ansys.tools.variableinterop.file_array_value.FileArrayValue#
Produce a
FileArrayValuetype from the API string format.- Returns:
FileArrayValueFileArrayValuetype with a value determined by the specified string.