Package dev.vortex.api.expressions
Class Unknown
java.lang.Object
dev.vortex.api.expressions.Unknown
- All Implemented Interfaces:
Expression
Represents a generic expression deserialized from a Vortex expression without a concrete Java type.
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.vortex.api.Expression
Expression.Visitor<T> -
Constructor Summary
ConstructorsConstructorDescriptionUnknown(String id, List<Expression> children, byte[] metadata) Creates a new Unknown expression with the specified identifier, children, and metadata. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.vortex.api.Expression
accept
-
Constructor Details
-
Unknown
Creates a new Unknown expression with the specified identifier, children, and metadata. This constructor is typically used when deserializing expressions that don't have a specific Java implementation, allowing them to be preserved as generic expressions.- Parameters:
id- the unique identifier for this expression typechildren- the list of child expressionsmetadata- the serialized metadata associated with this expression
-
-
Method Details
-
id
Description copied from interface:ExpressionThe globally unique identifier for this type of expression.- Specified by:
idin interfaceExpression
-
children
Description copied from interface:ExpressionReturns the children of this expression.- Specified by:
childrenin interfaceExpression
-
metadata
Description copied from interface:ExpressionReturns the serialized metadata for this expression, or empty if serialization is not supported.- Specified by:
metadatain interfaceExpression
-