Package nz.org.riskscape.engine.output
Class StructFlattener.StructMapping
java.lang.Object
nz.org.riskscape.engine.output.StructFlattener.StructMapping
- Enclosing class:
- StructFlattener
A mapping from a possibly nested struct member to a flattened member. A list of struct mappings, conceptually, define a new struct type that contains no nested members.
-
Constructor Summary
ConstructorsConstructorDescriptionStructMapping(String key, nz.org.riskscape.engine.types.Type type, List<nz.org.riskscape.engine.types.Struct.StructMember> segments) -
Method Summary
Modifier and TypeMethodDescriptionAn expression that can access the source struct member - the realized type of this will matchtypegetKey()List<nz.org.riskscape.engine.types.Struct.StructMember>A list of members that can be "followed" to access the possibly nested struct member.nz.org.riskscape.engine.types.TypegetType()The type of the member
-
Constructor Details
-
StructMapping
-
-
Method Details
-
getType
public nz.org.riskscape.engine.types.Type getType()The type of the member
-
getSegments
A list of members that can be "followed" to access the possibly nested struct member.
-
getAccessExpression
An expression that can access the source struct member - the realized type of this will match
type -
getKey
-