Class BooleanOperationContributor
java.lang.Object
org.eclipse.epsilon.eol.execute.operations.contributors.OperationContributor
org.eclipse.epsilon.eol.execute.operations.contributors.BooleanOperationContributor
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
Fields inherited from class org.eclipse.epsilon.eol.execute.operations.contributors.OperationContributor
cachedMethodNames
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.eclipse.epsilon.eol.execute.operations.contributors.OperationContributor
close, findContributedMethodForEvaluatedParameters, findContributedMethodForEvaluatedParameters, findContributedMethodForUnevaluatedParameters, getContext, getReflectionTarget, includeInheritedMethods, setContext, setTarget
-
Constructor Details
-
BooleanOperationContributor
public BooleanOperationContributor()
-
-
Method Details
-
contributesTo
- Specified by:
contributesTo
in classOperationContributor
-
getTarget
- Overrides:
getTarget
in classOperationContributor
- Returns:
- The
OperationContributor.target
field.
-
or
public boolean or(boolean operand) -
and
public boolean and(boolean operand) -
not
public boolean not() -
xor
public boolean xor(boolean operand) -
asString
-
ternary
Lazy functional-style ternary operation.- Parameters:
sIfTrue
- Value getter if the target istrue
sIfFalse
- Value getter if the target isfalse
- Returns:
- The value given by the Supplier parameters based on whether the target is true or false.
- Since:
- 1.6
-