abstract class BuilderExpression
Class BuilderExpression. Provides builderexpression functionality for the Hytale server.
java.lang.Object > BuilderExpression
Field Summary
builderExpression
final
BuilderExpression
builderExpression
Field builderExpression.
jsonPrimitive
final
BuilderExpression
jsonPrimitive
Field jsonPrimitive.
result
final
BuilderExpression
result
Field result.
jsonArray
final
JsonArray
jsonArray
Field jsonArray.
firstElement
final
JsonElement
firstElement
Field firstElement.
s
final
Schema
s
Field s.
Method Detail
updateScope
public
void
updateScope
(final StdScope scope, final String name, final ExecutionContext executionContext)
Method updateScope.
- Parameters:
final StdScopescopefinal Stringnamefinal ExecutionContextexecutionContext
getExpression
public
String
getExpression
()
Method getExpression.
fromOperand
Method fromOperand.
- Parameters:
@Nonnull final ExecutionContext.Operandoperand
switch
public
return
switch
(operand.type)
Method switch.
- Parameters:
operand.typeoperand.type
fromJSON
static
BuilderExpression
fromJSON
(@Nonnull final JsonElement jsonElement, @Nonnull final BuilderParameters builderParameters, final boolean constantsOnly)
Method fromJSON.
- Parameters:
@Nonnull final JsonElementjsonElement@Nonnull final BuilderParametersbuilderParametersfinal booleanconstantsOnly
IllegalArgumentException
public
new
IllegalArgumentException
("Only constant string, number or boolean or arrays allowed, found: " + String.valueOf(jsonElement)
Method IllegalArgumentException.
- Parameters:
"Only constantstringnumber or boolean or arraysallowedfound: " +String.valueOf(jsonElement
if
public
else
if
(jsonElement.isJsonArray()
Method if.
- Parameters:
jsonElement.isJsonArray(jsonElement.isJsonArray(
readJSONPrimitive
Method readJSONPrimitive.
- Parameters:
@Nonnull final JsonElementjsonElement
readStaticArray
Method readStaticArray.
- Parameters:
@Nonnull final JsonElementjsonElement
getSchemaName
public
String
getSchemaName
()
Method getSchemaName.
ArraySchema
public
new
ArraySchema
()
Method ArraySchema.
NumberSchema
public
new
NumberSchema
()
Method NumberSchema.
StringSchema
public
new
StringSchema
()
Method StringSchema.
BooleanSchema
public
new
BooleanSchema
()
Method BooleanSchema.