Class FieldExpression
- java.lang.Object
- 
- software.amazon.smithy.jmespath.JmespathExpression
- 
- software.amazon.smithy.jmespath.ast.FieldExpression
 
 
- 
 public final class FieldExpression extends JmespathExpression Gets a field by name from an object.This AST node is created for identifiers. For example, foocreates aFieldExpression.- See Also:
- Identifiers
 
- 
- 
Constructor SummaryConstructors Constructor Description FieldExpression(java.lang.String name)FieldExpression(java.lang.String name, int line, int column)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Taccept(ExpressionVisitor<T> visitor)Visits a node using a double-dispatch visitor.booleanequals(java.lang.Object o)java.lang.StringgetName()Get the name of the field to retrieve.inthashCode()java.lang.StringtoString()
 
- 
- 
- 
Method Detail- 
acceptpublic <T> T accept(ExpressionVisitor<T> visitor) Description copied from class:JmespathExpressionVisits a node using a double-dispatch visitor.- Specified by:
- acceptin 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.
 
 - 
getNamepublic java.lang.String getName() Get the name of the field to retrieve.- Returns:
- Returns the name of the field.
 
 - 
equalspublic boolean equals(java.lang.Object o) - Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-