Class FunctionExpression
- java.lang.Object
-
- software.amazon.smithy.jmespath.JmespathExpression
-
- software.amazon.smithy.jmespath.ast.FunctionExpression
-
public final class FunctionExpression extends JmespathExpression
Executes a function by name using a list of argument expressions.- See Also:
- Function Expressions
-
-
Field Summary
Fields Modifier and Type Field Description java.util.List<JmespathExpression>
arguments
java.lang.String
name
-
Constructor Summary
Constructors Constructor Description FunctionExpression(java.lang.String name, java.util.List<JmespathExpression> arguments)
FunctionExpression(java.lang.String name, java.util.List<JmespathExpression> arguments, int line, int column)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
accept(ExpressionVisitor<T> visitor)
Visits a node using a double-dispatch visitor.boolean
equals(java.lang.Object o)
java.util.List<JmespathExpression>
getArguments()
Gets the function arguments.java.lang.String
getName()
Gets the function name.int
hashCode()
java.lang.String
toString()
-
-
-
Field Detail
-
name
public java.lang.String name
-
arguments
public java.util.List<JmespathExpression> arguments
-
-
Constructor Detail
-
FunctionExpression
public FunctionExpression(java.lang.String name, java.util.List<JmespathExpression> arguments)
-
FunctionExpression
public FunctionExpression(java.lang.String name, java.util.List<JmespathExpression> arguments, 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 classJmespathExpression
- 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()
Gets the function name.- Returns:
- Returns the name.
-
getArguments
public java.util.List<JmespathExpression> getArguments()
Gets the function arguments.- Returns:
- Returns the argument expressions.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-