BuilderExpressionDynamic

abstract class BuilderExpressionDynamic extends BuilderExpression

Class BuilderExpressionDynamic. Provides builderexpressiondynamic functionality for the Hytale server.

java.lang.Object > BuilderExpression > BuilderExpressionDynamic

Field Summary

jsonObject

final JsonObject jsonObject

Field jsonObject.

computeValue

final JsonElement computeValue

Field computeValue.

expression

final String expression

Field expression.

type

final ValueType type

Field type.

operand

final ExecutionContext.Operand operand

Field operand.

instructionSequence

final ExecutionContext.Instruction[] instructionSequence

Field instructionSequence.

s

final ObjectSchema s

Field s.

Method Detail

BuilderExpressionDynamic

public public BuilderExpressionDynamic (final String expression, final ExecutionContext.Instruction[] instructionSequence)

Method BuilderExpressionDynamic.

Parameters:
final String expression
final ExecutionContext.Instruction[] instructionSequence

isStatic

public boolean isStatic ()

Method isStatic.

getExpression

public String getExpression ()

Method getExpression.

execute

protected void execute (@Nonnull final ExecutionContext executionContext)

Method execute.

Parameters:
@Nonnull final ExecutionContext executionContext

IllegalStateException

public new IllegalStateException ("Expression returned wrong type " + String.valueOf(executionContext.getType()

Method IllegalStateException.

Parameters:
"Expression returned wrong type " + String.valueOf(executionContext.getType(

fromJSON

static BuilderExpression fromJSON (@Nonnull final JsonElement jsonElement, @Nonnull final BuilderParameters builderParameters)

Method fromJSON.

Parameters:
@Nonnull final JsonElement jsonElement
@Nonnull final BuilderParameters builderParameters

IllegalArgumentException

public new IllegalArgumentException ("JSON expression missing 'Compute' member: " + String.valueOf(jsonElement)

Method IllegalArgumentException.

Parameters:
"JSON expression missing 'Compute' member: " + String.valueOf(jsonElement

switch

public return switch (type)

Method switch.

Parameters:
type type

toSchema

static Schema toSchema ()

Method toSchema.

StringSchema

public new StringSchema ()

Method StringSchema.

computableSchema

static Schema computableSchema (final Schema toWrap)

Method computableSchema.

Parameters:
final Schema toWrap