public abstract class Condition extends Object implements Serializable
Constructor and Description |
---|
Condition() |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
doEval(TreeLogger logger,
DeferredBindingQuery query) |
protected abstract String |
getEvalAfterMessage(String testType,
boolean result) |
protected abstract String |
getEvalBeforeMessage(String testType) |
Set<String> |
getRequiredProperties()
Returns the set of property names that the Condition requires in order to
be evaluated.
|
boolean |
isTrue(TreeLogger logger,
DeferredBindingQuery query)
Test the condition with the given parameters.
|
abstract String |
toSource()
Returns the Java source String to runtime check the condition being encapsulated here.
|
public Set<String> getRequiredProperties()
public final boolean isTrue(TreeLogger logger, DeferredBindingQuery query) throws UnableToCompleteException
testType
is
null
, then this condition isn't being used to remap a type,
and typeOracle
can also be null
.UnableToCompleteException
public abstract String toSource()
protected abstract boolean doEval(TreeLogger logger, DeferredBindingQuery query) throws UnableToCompleteException
UnableToCompleteException
Copyright © 2018. All rights reserved.