public class CompositeExpression extends java.lang.Object implements Expression
| Modifier and Type | Class and Description |
|---|---|
static class |
CompositeExpression.Helper
A class with static helper methods.
|
| Constructor and Description |
|---|
CompositeExpression(Expression expr)
Constructs a
CompositeExpression
with an underlying Expression. |
| Modifier and Type | Method and Description |
|---|---|
CompositeExpression |
and(Expression expr)
Adds another
Expression to CompositeExpression
using And logical expression. |
boolean |
interpret(java.lang.String version)
Interprets the expression.
|
boolean |
interpret(Version version)
Interprets the expression.
|
CompositeExpression |
or(Expression expr)
Adds another
Expression to CompositeExpression
using Or logical expression. |
public CompositeExpression(Expression expr)
CompositeExpression
with an underlying Expression.expr - the underlying expressionpublic CompositeExpression and(Expression expr)
Expression to CompositeExpression
using And logical expression.expr - an expression to addCompositeExpressionpublic CompositeExpression or(Expression expr)
Expression to CompositeExpression
using Or logical expression.expr - an expression to addCompositeExpressionpublic boolean interpret(java.lang.String version)
version - a Version string to interpret againstjava.lang.IllegalArgumentException - if the input string is NULL or emptyParseException - when invalid version string is providedUnexpectedCharacterException - is a special case of ParseExceptionpublic boolean interpret(Version version)
interpret in interface Expressionversion - the version to interpret against