Class Unknown

java.lang.Object
dev.vortex.api.expressions.Unknown
All Implemented Interfaces:
Expression

public final class Unknown extends Object implements Expression
Represents a generic expression deserialized from a Vortex expression without a concrete Java type.
  • Constructor Details

    • Unknown

      public Unknown(String id, List<Expression> children, byte[] metadata)
      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 type
      children - the list of child expressions
      metadata - the serialized metadata associated with this expression
  • Method Details

    • id

      public String id()
      Description copied from interface: Expression
      The globally unique identifier for this type of expression.
      Specified by:
      id in interface Expression
    • children

      public List<Expression> children()
      Description copied from interface: Expression
      Returns the children of this expression.
      Specified by:
      children in interface Expression
    • metadata

      public Optional<byte[]> metadata()
      Description copied from interface: Expression
      Returns the serialized metadata for this expression, or empty if serialization is not supported.
      Specified by:
      metadata in interface Expression