Interface Expression
- All Superinterfaces:
Logical
- All Known Subinterfaces:
Value
- All Known Implementing Classes:
Constant, Entity, Proposition, Variable
- Author:
- Stephen G. Ware
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidconfigure(com.google.gson.GsonBuilder builder) Configures aGsonBuilderto encode and decodeExpressionobjects as JSON.Returns the value of this logical expression in the given state.substitute(Function<Object, Object> substitution) Returns a logical object identical to this one, except that its logical elements have been replaced according to the given substitution.
-
Method Details
-
configure
static void configure(com.google.gson.GsonBuilder builder) Configures aGsonBuilderto encode and decodeExpressionobjects as JSON.- Parameters:
builder- the GSON builder to configure
-
substitute
Description copied from interface:LogicalReturns a logical object identical to this one, except that its logical elements have been replaced according to the given substitution. A substitution defines how some logical formula (the input to the function) should be replaced with a different formula (the output of the function).- Specified by:
substitutein interfaceLogical- Parameters:
substitution- a function which maps logical formula that should be replaced to the formula they should be replaced with- Returns:
- an identical object, except that its logical formula have been replaced according to the substitution
-
evaluate
-