Class FieldExpression


  • public final class FieldExpression
    extends JmespathExpression
    Gets a field by name from an object.

    This AST node is created for identifiers. For example, foo creates a FieldExpression.

    See Also:
    Identifiers
    • Constructor Detail

      • FieldExpression

        public FieldExpression​(java.lang.String name)
      • FieldExpression

        public FieldExpression​(java.lang.String name,
                               int line,
                               int column)
    • Method Detail

      • accept

        public <T> T accept​(ExpressionVisitor<T> visitor)
        Description copied from class: JmespathExpression
        Visits a node using a double-dispatch visitor.
        Specified by:
        accept in class JmespathExpression
        Type Parameters:
        T - Type of value the visitor returns.
        Parameters:
        visitor - Visitor to accept on the node.
        Returns:
        Returns the result of applying the visitor.
      • getName

        public java.lang.String getName()
        Get the name of the field to retrieve.
        Returns:
        Returns the name of the field.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object