Class BuilderExpression
java.lang.Object
com.hypixel.hytale.server.npc.asset.builder.expression.BuilderExpression
- Direct Known Subclasses:
BuilderExpressionDynamic,BuilderExpressionStaticBoolean,BuilderExpressionStaticBooleanArray,BuilderExpressionStaticEmptyArray,BuilderExpressionStaticNumber,BuilderExpressionStaticNumberArray,BuilderExpressionStaticString,BuilderExpressionStaticStringArray
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToScope(String name, StdScope scope) voidcompile(BuilderParameters builderParameters) static BuilderExpressionfromJSON(com.google.gson.JsonElement jsonElement, BuilderParameters builderParameters) static BuilderExpressionfromJSON(com.google.gson.JsonElement jsonElement, BuilderParameters builderParameters, boolean constantsOnly) static BuilderExpressionfromJSON(com.google.gson.JsonElement jsonElement, BuilderParameters builderParameters, ValueType expectedType) static BuilderExpressionfromOperand(ExecutionContext.Operand operand) booleangetBoolean(ExecutionContext executionContext) boolean[]getBooleanArray(ExecutionContext executionContext) int[]getIntegerArray(ExecutionContext executionContext) doublegetNumber(ExecutionContext executionContext) double[]getNumberArray(ExecutionContext executionContext) getString(ExecutionContext executionContext) String[]getStringArray(ExecutionContext executionContext) abstract ValueTypegetType()abstract booleanisStatic()private static BuilderExpressionreadJSONPrimitive(com.google.gson.JsonElement jsonElement) private static BuilderExpressionreadStaticArray(com.google.gson.JsonElement jsonElement) static SchematoSchema(SchemaContext context) voidupdateScope(StdScope scope, String name, ExecutionContext executionContext)
-
Field Details
-
STATIC
- See Also:
-
-
Constructor Details
-
BuilderExpression
public BuilderExpression()
-
-
Method Details
-
getType
-
isStatic
public abstract boolean isStatic() -
getNumber
-
getString
-
getBoolean
-
getNumberArray
-
getIntegerArray
-
getStringArray
-
getBooleanArray
-
addToScope
-
updateScope
-
getExpression
-
fromOperand
-
fromJSON
@Nonnull public static BuilderExpression fromJSON(@Nonnull com.google.gson.JsonElement jsonElement, @Nonnull BuilderParameters builderParameters, boolean constantsOnly) -
fromJSON
@Nonnull public static BuilderExpression fromJSON(@Nonnull com.google.gson.JsonElement jsonElement, @Nonnull BuilderParameters builderParameters, ValueType expectedType) -
fromJSON
@Nonnull public static BuilderExpression fromJSON(@Nonnull com.google.gson.JsonElement jsonElement, @Nonnull BuilderParameters builderParameters) -
readJSONPrimitive
@Nullable private static BuilderExpression readJSONPrimitive(@Nonnull com.google.gson.JsonElement jsonElement) -
readStaticArray
@Nullable private static BuilderExpression readStaticArray(@Nonnull com.google.gson.JsonElement jsonElement) -
compile
-
toSchema
-