Class SingleValueStructRule

java.lang.Object
nz.org.riskscape.engine.types.eqrule.SingleValueStructRule
All Implemented Interfaces:
Identified, EquivalenceRule

public class SingleValueStructRule extends Object implements EquivalenceRule

Allows assignment between structs and simple values if the struct has a single member who's type matches the single value. Allows recursive equivalence between the member of the struct and the simple value.

NB need to consider how to open up the non-struct type to be not just a simple type...