BaseExpression, FilterExpressionpublic interface Expression
Find command.| Modifier and Type | Method | Description |
|---|---|---|
void |
addArguments(java.util.Deque<java.lang.String> args) |
Adds arguments to this expression.
|
void |
addChildren(java.util.Deque<Expression> expressions) |
Adds children to this expression.
|
Result |
apply(PathData item,
int depth) |
Apply the expression to the specified item, called once for each item.
|
void |
finish() |
Finishes the expression, called once after processing all items.
|
java.lang.String[] |
getHelp() |
Returns a description of the expression for use in help.
|
int |
getPrecedence() |
Returns the precedence of this expression
(only applicable to operators).
|
java.lang.String[] |
getUsage() |
Returns brief usage instructions for this expression.
|
boolean |
isAction() |
Indicates whether this expression performs an action, i.e.
|
boolean |
isOperator() |
Identifies the expression as an operator rather than a primary.
|
void |
prepare() |
Prepares the expression for execution, called once after setting options
and before processing any options.
|
void |
setOptions(FindOptions options) |
Set the options for this expression, called once before processing any
items.
|
void setOptions(FindOptions options) throws java.io.IOException
options - options.java.io.IOException - raised on errors performing I/O.void prepare()
throws java.io.IOException
java.io.IOException - raised on errors performing I/O.Result apply(PathData item, int depth) throws java.io.IOException
void finish()
throws java.io.IOException
java.io.IOException - raised on errors performing I/O.java.lang.String[] getUsage()
java.lang.String[] getHelp()
boolean isAction()
boolean isOperator()
int getPrecedence()
void addChildren(java.util.Deque<Expression> expressions)
expressions - deque of expressions from which to take the childrenvoid addArguments(java.util.Deque<java.lang.String> args)
args - deque of arguments from which to take expression argumentsCopyright © 2008–2025 Apache Software Foundation. All rights reserved.