Package com.myscript.iink
Class MathVariableInfo
java.lang.Object
com.myscript.iink.MathVariableInfo
Represents a math variable information relative to a block.
- Since:
- 4.1
-
Field Summary
FieldsModifier and TypeFieldDescription@NotNull String
The name of the variable.int
The number of times the variable appears in the block expression.The identifier of the block where the variable was defined, or an empty string if not applicable.The source from which the variable was defined, orMathVariableSourceType.UNDEFINED
. -
Constructor Summary
ConstructorsConstructorDescriptionMathVariableInfo
(@NotNull MathVariableInfo other) Copy constructor.MathVariableInfo
(@NotNull String name, MathVariableSourceType sourceType, @NotNull String sourceId, int occurrenceCount) Constructs a MathVariableInfo -
Method Summary
-
Field Details
-
name
The name of the variable. -
sourceType
The source from which the variable was defined, orMathVariableSourceType.UNDEFINED
. -
sourceId
The identifier of the block where the variable was defined, or an empty string if not applicable. -
occurrenceCount
public int occurrenceCountThe number of times the variable appears in the block expression.
-
-
Constructor Details
-
MathVariableInfo
Copy constructor.- Parameters:
other
- the math variable info to copy.
-
MathVariableInfo
public MathVariableInfo(@NotNull @NotNull String name, MathVariableSourceType sourceType, @NotNull @NotNull String sourceId, int occurrenceCount) Constructs a MathVariableInfo- Parameters:
name
- the variable name.sourceType
- the source from which the variable was defined, orMathVariableSourceType.UNDEFINED
.sourceId
- the identifier of the block where the variable was defined, or an empty string if not applicable.occurrenceCount
- the number of times the variable appears in the block expression.
-
-
Method Details