Use flyweight EffectiveStatement implementations (YANGTOOLS-1067)

[YANGTOOLS-1213] Allow substatement-derived state to be inherited Created: 26/Jan/21  Updated: 27/Jan/21  Resolved: 27/Jan/21

Status: Resolved
Project: yangtools
Component/s: parser
Affects Version/s: None
Fix Version/s: 7.0.0

Type: Sub-task Priority: Medium
Reporter: Robert Varga Assignee: Robert Varga
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to YANGTOOLS-1208 Migrate users of StatementPolicy.lega... Resolved

 Description   
{Data,Schema}

TreeAwareEffectiveStatements are deriving QName->EffectiveStatement maps from substatements of a particular statement.

With YANGTOOLS-1212 we get to reuse the substatement file, but that is not enough – we need to pass the previous effective instance to StatementFactory, so that its implementation can extract derived state – i.e. those maps.

Also update all implementations to pass this derived state around.

 



 Comments   
Comment by Robert Varga [ 27/Jan/21 ]

State reuse requires a proper policy

Comment by Robert Varga [ 27/Jan/21 ]

The infrastructure and initial conversion is in. The rest of the statements will be covered as part of YANTOOLS-1208.

Generated at Wed Feb 07 20:55:30 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.