Determining a resolution state of an anchor constant associated with an application programming interface (API) point
AssigneeOracle International Corporation
InventorsJohn Robert Rose, Brian Goetz
Life of this patent
Estimating the term…
Loading patent…
AssigneeOracle International Corporation
InventorsJohn Robert Rose, Brian Goetz
Estimating the term…
A parametric constant resolves to different values in different contexts, but a single value within a particular context. An anchor constant is a parametric constant that allows for a degree of parametricity for an API point. The context for the anchor constant is provided by a caller to the API point. The anchor constant resolves to an anchor value that records specialization decisions for the API point within the provided context. Specialization decisions may include type restrictions, memory layout, and/or memory size. The anchor value together with an unspecialized type of the API point result in a specialized type of the API point. A class object representing the specialized type is created. The class object may be accessible to the caller, but the full value of the anchor value is not accessible to the caller. The API point is executed based on the specialization decisions embodied in the anchor value.
One or more non-transitory computer readable media storing instructions which, when executed by one or more hardware processors, cause:
Dependencies are inferred from the claim text.