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. |
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 addCompositeExpression
public CompositeExpression or(Expression expr)
Expression
to CompositeExpression
using Or
logical expression.expr
- an expression to addCompositeExpression
public 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 ParseException
public boolean interpret(Version version)
interpret
in interface Expression
version
- the version to interpret againstCopyright © 2017. All rights reserved.