BuilderParameters

public class BuilderParameters

Class BuilderParameters. Provides builderparameters functionality for the Hytale server.

java.lang.Object > BuilderParameters

Field Summary

scope

protected StdScope scope

Field scope.

compileContext

protected CompileContext compileContext

Field compileContext.

p

final Parameter p

Field p.

parameterValue

final JsonElement parameterValue

Field parameterValue.

modify

final JsonObject modify

Field modify.

key

final String key

Field key.

schema

final ObjectSchema schema

Field schema.

instructionList

private List instructionList

Field instructionList.

props

final ObjectSchema props

Field props.

jsonObject

final JsonObject jsonObject

Field jsonObject.

type

final String type

Field type.

validate

final String validate

Field validate.

confine

final String confine

Field confine.

hasValidate

final boolean hasValidate

Field hasValidate.

code

final String code

Field code.

Method Detail

BuilderParameters

public protected BuilderParameters (final StdScope scope, final String fileName, final String interfaceCode)

Method BuilderParameters.

Parameters:
final StdScope scope
final String fileName
final String interfaceCode

IntOpenHashSet

public new IntOpenHashSet ()

Method IntOpenHashSet.

isEmpty

public boolean isEmpty ()

Method isEmpty.

addParametersToScope

public void addParametersToScope ()

Method addParametersToScope.

getParameterType

public ValueType getParameterType (final String name)

Method getParameterType.

Parameters:
final String name

readJSON

public void readJSON (@Nonnull final JsonObject jsonObject, @Nonnull final StateMappingHelper stateHelper)

Method readJSON.

Parameters:
@Nonnull final JsonObject jsonObject
@Nonnull final StateMappingHelper stateHelper

if

public else if (key.equals("_ImportStates")

Method if.

Parameters:
key.equals("_ImportStates" key.equals("_ImportStates"

createCompileContext

public void createCompileContext ()

Method createCompileContext.

disposeCompileContext

public void disposeCompileContext ()

Method disposeCompileContext.

getCompileContext

public CompileContext getCompileContext ()

Method getCompileContext.

compile

public ValueType compile (@Nonnull final String expression)

Method compile.

Parameters:
@Nonnull final String expression

getInstructions

public List getInstructions ()

Method getInstructions.

getConstantOperand

public ExecutionContext.Operand getConstantOperand ()

Method getConstantOperand.

getScope

public StdScope getScope ()

Method getScope.

createScope

public StdScope createScope ()

Method createScope.

validateNoDuplicateParameters

public void validateNoDuplicateParameters (@Nonnull final BuilderParameters other)

Method validateNoDuplicateParameters.

Parameters:
@Nonnull final BuilderParameters other

getFileName

public String getFileName ()

Method getFileName.

getDependencies

public IntSet getDependencies ()

Method getDependencies.

getInterfaceCode

public String getInterfaceCode ()

Method getInterfaceCode.

addDependency

public void addDependency (final int d)

Method addDependency.

Parameters:
final int d

toSchema

static ObjectSchema toSchema (@Nonnull final SchemaContext context)

Method toSchema.

Parameters:
@Nonnull final SchemaContext context

ArraySchema

public new ArraySchema (new StringSchema()

Method ArraySchema.

Parameters:
new StringSchema(

Parameter

public public Parameter (final BuilderExpression expression, final String description, final String code, final boolean isValidation, final boolean isPrivate)

Method Parameter.

Parameters:
final BuilderExpression expression
final String description
final String code
final boolean isValidation
final boolean isPrivate

getExpression

public BuilderExpression getExpression ()

Method getExpression.

getDescription

public String getDescription ()

Method getDescription.

isValidation

public boolean isValidation ()

Method isValidation.

isPrivate

public boolean isPrivate ()

Method isPrivate.

StringSchema

public new StringSchema ()

Method StringSchema.

BooleanSchema

public new BooleanSchema ()

Method BooleanSchema.

fromJSON

static Parameter fromJSON (@Nonnull final JsonElement element, @Nonnull final BuilderParameters builderParameters, final String parameterName)

Method fromJSON.

Parameters:
@Nonnull final JsonElement element
@Nonnull final BuilderParameters builderParameters
final String parameterName