public class BuilderParameters
Class BuilderParameters. Provides builderparameters functionality for the Hytale server.
java.lang.Object > BuilderParameters
Field Summary
scope
Field scope.
compileContext
Field compileContext.
p
Field p.
parameterValue
Field parameterValue.
modify
Field modify.
key
Field key.
schema
Field schema.
instructionList
Field instructionList.
props
Field props.
jsonObject
Field jsonObject.
type
Field type.
validate
Field validate.
confine
Field confine.
hasValidate
Field hasValidate.
code
Field code.
Method Detail
BuilderParameters
protected
BuilderParameters
(final StdScope scope, final String fileName, final String interfaceCode)
Method BuilderParameters.
- Parameters:
final StdScopescopefinal StringfileNamefinal StringinterfaceCode
IntOpenHashSet
new
IntOpenHashSet
()
Method IntOpenHashSet.
isEmpty
boolean
isEmpty
()
Method isEmpty.
addParametersToScope
void
addParametersToScope
()
Method addParametersToScope.
getParameterType
Method getParameterType.
- Parameters:
final Stringname
readJSON
void
readJSON
(@Nonnull final JsonObject jsonObject, @Nonnull final StateMappingHelper stateHelper)
Method readJSON.
- Parameters:
@Nonnull final JsonObjectjsonObject@Nonnull final StateMappingHelperstateHelper
if
else
if
(key.equals("_ImportStates")
Method if.
- Parameters:
key.equals("_ImportStates"key.equals("_ImportStates"
createCompileContext
void
createCompileContext
()
Method createCompileContext.
disposeCompileContext
void
disposeCompileContext
()
Method disposeCompileContext.
compile
Method compile.
- Parameters:
@Nonnull final Stringexpression
getInstructions
List
getInstructions
()
Method getInstructions.
getConstantOperand
ExecutionContext.Operand
getConstantOperand
()
Method getConstantOperand.
validateNoDuplicateParameters
Method validateNoDuplicateParameters.
- Parameters:
@Nonnull final BuilderParametersother
getFileName
String
getFileName
()
Method getFileName.
getDependencies
IntSet
getDependencies
()
Method getDependencies.
getInterfaceCode
String
getInterfaceCode
()
Method getInterfaceCode.
addDependency
void
addDependency
(final int d)
Method addDependency.
- Parameters:
final intd
ArraySchema
new
ArraySchema
(new StringSchema()
Method ArraySchema.
- Parameters:
newStringSchema(
Parameter
public
Parameter
(final BuilderExpression expression, final String description, final String code, final boolean isValidation, final boolean isPrivate)
Method Parameter.
- Parameters:
final BuilderExpressionexpressionfinal Stringdescriptionfinal Stringcodefinal booleanisValidationfinal booleanisPrivate
getDescription
String
getDescription
()
Method getDescription.
isValidation
boolean
isValidation
()
Method isValidation.
isPrivate
boolean
isPrivate
()
Method isPrivate.
StringSchema
new
StringSchema
()
Method StringSchema.
BooleanSchema
new
BooleanSchema
()
Method BooleanSchema.
fromJSON
Parameter
fromJSON
(@Nonnull final JsonElement element, @Nonnull final BuilderParameters builderParameters, final String parameterName)
Method fromJSON.
- Parameters:
@Nonnull final JsonElementelement@Nonnull final BuilderParametersbuilderParametersfinal StringparameterName