Record Class ExpressionValue
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.common.expressions.ExpressionValue
- Record Components:
data
- String used when creating an expressiontype
-ExpressionValue.Type
of the field
Represents a field that can be either a static string or standard expression. For fields that support expressions,
this eliminates the need for users to always quote static Strings.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionExpressionValue
(String data, ExpressionValue.Type type) Creates an instance of aExpressionValue
record class. -
Method Summary
Modifier and TypeMethodDescriptiondata()
Returns the value of thedata
record component.final boolean
Indicates whether some other object is "equal to" this one.static ExpressionValue
expressionField
(String data) static ExpressionValue
final int
hashCode()
Returns a hash code value for this object.boolean
isBlank()
boolean
static ExpressionValue
staticField
(String data) com.inductiveautomation.ignition.common.gson.JsonObject
toJson()
final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.
-
Constructor Details
-
Method Details
-
fromJson
public static ExpressionValue fromJson(@Nullable com.inductiveautomation.ignition.common.gson.JsonElement json, String key) -
staticField
-
expressionField
-
isBlank
public boolean isBlank() -
isNotBlank
public boolean isNotBlank() -
toJson
public com.inductiveautomation.ignition.common.gson.JsonObject toJson() -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
data
Returns the value of thedata
record component.- Returns:
- the value of the
data
record component
-
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-