Class FieldAccessNode

java.lang.Object
com.helix.core.parser.ast.FieldAccessNode
All Implemented Interfaces:
ExpressionNode

public class FieldAccessNode extends Object implements ExpressionNode
AST node representing context property and field navigation (e.g. user.age, ctx.amount).
  • Constructor Details

  • Method Details

    • getTarget

      public ExpressionNode getTarget()
    • getFieldName

      public String getFieldName()
    • getFullPath

      public String getFullPath()
      Resolves the full property path when the target chain consists of nested FieldAccessNodes or VariableNodes. E.g. "user.profile.age"
      Returns:
      dot-separated full property path
    • accept

      public <R> R accept(AstVisitor<R> visitor)
      Description copied from interface: ExpressionNode
      Accepts an AST visitor.
      Specified by:
      accept in interface ExpressionNode
      Type Parameters:
      R - return type
      Parameters:
      visitor - the visitor
      Returns:
      result from visitor
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object