public class CompositeExpression extends 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(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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittestpublic 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(String version)
version - a Version string to interpret againstIllegalArgumentException - 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 againstCopyright © 2024. All rights reserved.