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, wait
Methods 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:Expression
The globally unique identifier for this type of expression.- Specified by:
id
in interfaceExpression
-
children
Description copied from interface:Expression
Returns the children of this expression.- Specified by:
children
in interfaceExpression
-
metadata
Description copied from interface:Expression
Returns the serialized metadata for this expression, or empty if serialization is not supported.- Specified by:
metadata
in interfaceExpression
-