public abstract class JmespathExpression
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
JmespathExpression(int line,
int column) |
Modifier and Type | Method and Description |
---|---|
abstract <T> T |
accept(ExpressionVisitor<T> visitor)
Visits a node using a double-dispatch visitor.
|
int |
getColumn()
Get the approximate column where the node was defined.
|
int |
getLine()
Get the approximate line where the node was defined.
|
LinterResult |
lint()
Lint the expression using static analysis using "any" as the
current node.
|
LinterResult |
lint(LiteralExpression currentNode)
Lint the expression using static analysis.
|
static JmespathExpression |
parse(java.lang.String text)
Parse a JMESPath expression.
|
public static JmespathExpression parse(java.lang.String text)
text
- Expression to parse.JmespathException
- if the expression is invalid.public final int getLine()
public final int getColumn()
public abstract <T> T accept(ExpressionVisitor<T> visitor)
T
- Type of value the visitor returns.visitor
- Visitor to accept on the node.public LinterResult lint()
public LinterResult lint(LiteralExpression currentNode)
currentNode
- The value to set as the current node.