Class ManagedFunctionLoaderImpl
java.lang.Object
net.officefloor.compile.impl.managedfunction.ManagedFunctionLoaderImpl
- All Implemented Interfaces:
ManagedFunctionLoader,IssueTarget
ManagedFunctionLoader implementation.- Author:
- Daniel Sagenschneider
-
Constructor Summary
ConstructorsConstructorDescriptionManagedFunctionLoaderImpl(Node node, OfficeNode officeNode, NodeContext nodeContext, boolean isLoadingType) Initiate for building. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the issue.voidAdds the issue.<S extends ManagedFunctionSource>
FunctionNamespaceTypeloadManagedFunctionType(Class<S> managedFunctionSourceClass, PropertyList propertyList) Loads and returns theFunctionNamespaceTypefrom theManagedFunctionSourceclass.loadManagedFunctionType(ManagedFunctionSource managedFunctionSource, PropertyList propertyList) Loads and returns theFunctionNamespaceTypefrom theManagedFunctionSourceclass.<S extends ManagedFunctionSource>
PropertyListloadSpecification(Class<S> managedFunctionSourceClass) Loads and returns thePropertyListfrom theManagedFunctionSourceSpecificationfor theManagedFunctionSource.loadSpecification(ManagedFunctionSource managedFunctionSource) Loads and returns thePropertyListfrom theManagedFunctionSourceSpecificationfor theManagedFunctionSource.
-
Constructor Details
-
ManagedFunctionLoaderImpl
public ManagedFunctionLoaderImpl(Node node, OfficeNode officeNode, NodeContext nodeContext, boolean isLoadingType) Initiate for building.- Parameters:
node-Noderequiring theManagedFunctioninstances.officeNode-OfficeNode. May benullif not loading withinOfficeNode.nodeContext-NodeContext.isLoadingType- Indicates using to load type.
-
-
Method Details
-
loadSpecification
public <S extends ManagedFunctionSource> PropertyList loadSpecification(Class<S> managedFunctionSourceClass) Description copied from interface:ManagedFunctionLoaderLoads and returns thePropertyListfrom theManagedFunctionSourceSpecificationfor theManagedFunctionSource.- Specified by:
loadSpecificationin interfaceManagedFunctionLoader- Type Parameters:
S-ManagedFunctionSourcetype.- Parameters:
managedFunctionSourceClass- Class of theManagedFunctionSource.- Returns:
PropertyListof theManagedFunctionSourcePropertyinstances of theManagedFunctionSourceSpecificationornullif issue, which is reported to theCompilerIssues.
-
loadSpecification
Description copied from interface:ManagedFunctionLoaderLoads and returns thePropertyListfrom theManagedFunctionSourceSpecificationfor theManagedFunctionSource.- Specified by:
loadSpecificationin interfaceManagedFunctionLoader- Parameters:
managedFunctionSource-ManagedFunctionSourceinstance.- Returns:
PropertyListof theManagedFunctionSourcePropertyinstances of theManagedFunctionSourceSpecificationornullif issue, which is reported to theCompilerIssues.
-
loadManagedFunctionType
public <S extends ManagedFunctionSource> FunctionNamespaceType loadManagedFunctionType(Class<S> managedFunctionSourceClass, PropertyList propertyList) Description copied from interface:ManagedFunctionLoaderLoads and returns theFunctionNamespaceTypefrom theManagedFunctionSourceclass.- Specified by:
loadManagedFunctionTypein interfaceManagedFunctionLoader- Type Parameters:
S-ManagedFunctionSourcetype.- Parameters:
managedFunctionSourceClass- Class of theManagedFunctionSource.propertyList-PropertyListcontaining the properties to source theFunctionNamespaceType.- Returns:
FunctionNamespaceTypeornullif issues, which is reported to theCompilerIssues.
-
loadManagedFunctionType
public FunctionNamespaceType loadManagedFunctionType(ManagedFunctionSource managedFunctionSource, PropertyList propertyList) Description copied from interface:ManagedFunctionLoaderLoads and returns theFunctionNamespaceTypefrom theManagedFunctionSourceclass.- Specified by:
loadManagedFunctionTypein interfaceManagedFunctionLoader- Parameters:
managedFunctionSource-ManagedFunctionSourceinstance.propertyList-PropertyListcontaining the properties to source theFunctionNamespaceType.- Returns:
FunctionNamespaceTypeornullif issues, which is reported to theCompilerIssues.
-
addIssue
Description copied from interface:IssueTargetAdds the issue.- Specified by:
addIssuein interfaceIssueTarget- Parameters:
issueDescription- Description of the issue.
-
addIssue
Description copied from interface:IssueTargetAdds the issue.- Specified by:
addIssuein interfaceIssueTarget- Parameters:
issueDescription- Description of the issue.cause- Cause of the issue.
-