V - VariableT - Valuepublic class InheritedAssignmentContextHolder<V extends Variable<V,T>,T extends Value<V,T>> extends DefaultParallelAssignmentContextHolder<V,T>
AssignmentContextHolderMap that is used by the InheritedAssignment
class. If a HasAssignmentContext class implements the CanInheritContext interface,
this class will use the CanInheritContext.inheritAssignmentContext(Assignment, AssignmentContext) method
instead of the HasAssignmentContext.createAssignmentContext(Assignment) method to create
a new context.HasAssignmentContext,
InheritedAssignment,
CanInheritContext| Modifier and Type | Class and Description |
|---|---|
static class |
InheritedAssignmentContextHolder.VersionedContext<U extends AssignmentContext> |
iIndexiContexts| Constructor and Description |
|---|
InheritedAssignmentContextHolder(int index,
long version) |
| Modifier and Type | Method and Description |
|---|---|
<U extends AssignmentContext> |
getAssignmentContext(Assignment<V,T> assignment,
AssignmentContextReference<V,T,U> reference)
If the
AssignmentContextReference.getParent() implements the CanInheritContext interface, this
method will use the CanInheritContext.inheritAssignmentContext(Assignment, AssignmentContext) instead of the
HasAssignmentContext.createAssignmentContext(Assignment) to create a new context. |
clearContextpublic InheritedAssignmentContextHolder(int index, long version)
public <U extends AssignmentContext> U getAssignmentContext(Assignment<V,T> assignment, AssignmentContextReference<V,T,U> reference)
AssignmentContextReference.getParent() implements the CanInheritContext interface, this
method will use the CanInheritContext.inheritAssignmentContext(Assignment, AssignmentContext) instead of the
HasAssignmentContext.createAssignmentContext(Assignment) to create a new context.getAssignmentContext in interface AssignmentContextHolder<V extends Variable<V,T>,T extends Value<V,T>>getAssignmentContext in class DefaultParallelAssignmentContextHolder<V extends Variable<V,T>,T extends Value<V,T>>U - assignment context typeassignment - current assignment (must be InheritedAssignment)reference - assignment context reference