InvalidOperand

class InvalidOperand : ValidationIssue


The expression uses an invalid operand.

Summary

Public constructors

InvalidOperand(
    node: Node,
    severity: ValidationIssueSeverity,
    expression: Expression?,
    operator: String,
    operandIndex: Int,
    operandType: String,
    validOperandTypes: List<String>
)

Create an InvalidOperand instance.

Public properties

Expression?

The expression.

Int

The index of the operand in the expression.

String

The operand type.

String

The operator.

List<String>

A list of valid operand types.

Inherited properties

From com.google.home.automation.ValidationIssue
ValidationIssueType

The type of the validation issue.

Node

The node for which validation is failing.

ValidationIssueSeverity

The severity of the validation issue.

Public constructors

InvalidOperand

InvalidOperand(
    node: Node,
    severity: ValidationIssueSeverity,
    expression: Expression?,
    operator: String,
    operandIndex: Int,
    operandType: String,
    validOperandTypes: List<String>
)

Create an InvalidOperand instance.

Public properties

expression

val expressionExpression?

The expression.

operandIndex

val operandIndexInt

The index of the operand in the expression.

operandType

val operandTypeString

The operand type.

operator

val operatorString

The operator.

validOperandTypes

val validOperandTypesList<String>

A list of valid operand types.