V - VariableT - ValueC - Assignment Contextpublic interface CanInheritContext<V extends Variable<V,T>,T extends Value<V,T>,C extends AssignmentContext>
HasAssignmentContext class.
The inherited assignment context holder (see InheritedAssignmentContextHolder) can
than use this interface to inherit an assignment context from the parent assignment context.
If a HasAssignmentContext class implements this interface, InheritedAssignment
will use the inheritAssignmentContext(Assignment, AssignmentContext) method
instead of the HasAssignmentContext.createAssignmentContext(Assignment) method to create
a new context.HasAssignmentContext,
InheritedAssignment,
InheritedAssignmentContextHolder| Modifier and Type | Method and Description |
|---|---|
C |
inheritAssignmentContext(Assignment<V,T> assignment,
C parentContext)
Create a new assignment context for the given assignment.
|
C inheritAssignmentContext(Assignment<V,T> assignment, C parentContext)
assignment - an assignment for which there needs to be an assignment contextparentContext - context of the parent assignment