Class ObjectAccessExpression

java.lang.Object
dev.frostlake.executor.expressions.ObjectAccessExpression
All Implemented Interfaces:
Expression

public class ObjectAccessExpression extends Object implements Expression
Represents object property access (e.g., data:name, json:address:city). The property path is kept as its ordered segments straight from the parse tree — [address, city] — so navigation never re-splits a flattened string.
  • Constructor Details

  • Method Details

    • getBase

      public Expression getBase()
    • getPathParts

      public List<String> getPathParts()
      The property-path segments in order, e.g. [address, city] for data:address.city.
    • accept

      public <T> T accept(ExpressionVisitor<T> visitor)
      Description copied from interface: Expression
      Accept a visitor for the visitor pattern
      Specified by:
      accept in interface Expression
    • toString

      public String toString()
      Overrides:
      toString in class Object