IFacetContributions¶
-
public interface
IFacetContributions
¶ Interface representing language facet contributions. Facets are retrieved by type, multiple facets of the same type are allowed. Clients determine how multiple facets of the same type are handled.
Methods¶
facet¶
-
<T extends IFacet> T
facet
(Class<T> type)¶ Returns a facet of given type.
Parameters: - type – Facet type.
Throws: - MetaborgRuntimeException – When there are multiple facets of given type.
Returns: Facet of given type, or null if there is no facet of given type.
facetContribution¶
-
<T extends IFacet> FacetContribution<T>
facetContribution
(Class<T> type)¶ Returns a facet contribution of given type.
Parameters: - type – Facet type.
Throws: - MetaborgRuntimeException – When there are multiple facets of given type.
Returns: Facet contribution of given type.
facetContributions¶
-
<T extends IFacet> Iterable<FacetContribution<T>>
facetContributions
(Class<T> type)¶ Returns facet contributions of given type.
Parameters: - type – Facet type
Returns: Facet contributions of given type.
facetContributions¶
-
Iterable<FacetContribution<IFacet>>
facetContributions
()¶ Returns: All facet contributions.