ExpressionRoot Class

public final class ExpressionRoot
extends Expression

The expression root.

Constructor Summary

Constructor Description
ExpressionRoot()

Creates an instance of ExpressionRoot class.

Method Summary

Modifier and Type Method and Description
static ExpressionRoot fromJson(JsonReader jsonReader)

Reads an instance of ExpressionRoot from the JsonReader.

String path()

Get the path property: The path.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ExpressionRoot withError(AzureResourceErrorInfo error)

Set the error property: The azure resource error info.

ExpressionRoot withPath(String path)

Set the path property: The path.

ExpressionRoot withSubexpressions(List<Expression> subexpressions)

Set the subexpressions property: The sub expressions.

ExpressionRoot withText(String text)

Set the text property: The text.

ExpressionRoot withValue(Object value)

Set the value property: Anything.

Methods inherited from Expression

Methods inherited from java.lang.Object

Constructor Details

ExpressionRoot

public ExpressionRoot()

Creates an instance of ExpressionRoot class.

Method Details

fromJson

public static ExpressionRoot fromJson(JsonReader jsonReader)

Reads an instance of ExpressionRoot from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ExpressionRoot if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the ExpressionRoot.

path

public String path()

Get the path property: The path.

Returns:

the path value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ExpressionRoot.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

ExpressionRoot.validate()

withError

public ExpressionRoot withError(AzureResourceErrorInfo error)

Set the error property: The azure resource error info.

Overrides:

ExpressionRoot.withError(AzureResourceErrorInfo error)

Parameters:

error

withPath

public ExpressionRoot withPath(String path)

Set the path property: The path.

Parameters:

path - the path value to set.

Returns:

the ExpressionRoot object itself.

withSubexpressions

public ExpressionRoot withSubexpressions(List subexpressions)

Set the subexpressions property: The sub expressions.

Overrides:

ExpressionRoot.withSubexpressions(List<Expression> subexpressions)

Parameters:

subexpressions

withText

public ExpressionRoot withText(String text)

Set the text property: The text.

Overrides:

ExpressionRoot.withText(String text)

Parameters:

text

withValue

public ExpressionRoot withValue(Object value)

Set the value property: Anything.

Overrides:

ExpressionRoot.withValue(Object value)

Parameters:

value

Applies to