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 expression: Expression?

The expression.

operandIndex

val operandIndex: Int

The index of the operand in the expression.

operandType

val operandType: String

The operand type.

operator

val operator: String

The operator.

validOperandTypes

val validOperandTypes: List<String>

A list of valid operand types.