Class ManagedFunctionLoaderImpl
- java.lang.Object
-
- net.officefloor.compile.impl.managedfunction.ManagedFunctionLoaderImpl
-
- All Implemented Interfaces:
ManagedFunctionLoader,IssueTarget
public class ManagedFunctionLoaderImpl extends java.lang.Object implements ManagedFunctionLoader, IssueTarget
ManagedFunctionLoaderimplementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ManagedFunctionLoaderImpl(Node node, OfficeNode officeNode, NodeContext nodeContext, boolean isLoadingType)Initiate for building.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddIssue(java.lang.String issueDescription)Adds the issue.voidaddIssue(java.lang.String issueDescription, java.lang.Throwable cause)Adds the issue.<S extends ManagedFunctionSource>
FunctionNamespaceTypeloadManagedFunctionType(java.lang.Class<S> managedFunctionSourceClass, PropertyList propertyList)Loads and returns theFunctionNamespaceTypefrom theManagedFunctionSourceclass.FunctionNamespaceTypeloadManagedFunctionType(ManagedFunctionSource managedFunctionSource, PropertyList propertyList)Loads and returns theFunctionNamespaceTypefrom theManagedFunctionSourceclass.<S extends ManagedFunctionSource>
PropertyListloadSpecification(java.lang.Class<S> managedFunctionSourceClass)Loads and returns thePropertyListfrom theManagedFunctionSourceSpecificationfor theManagedFunctionSource.PropertyListloadSpecification(ManagedFunctionSource managedFunctionSource)Loads and returns thePropertyListfrom theManagedFunctionSourceSpecificationfor theManagedFunctionSource.
-
-
-
Constructor Detail
-
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 Detail
-
loadSpecification
public <S extends ManagedFunctionSource> PropertyList loadSpecification(java.lang.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
public PropertyList loadSpecification(ManagedFunctionSource managedFunctionSource)
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(java.lang.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
public void addIssue(java.lang.String issueDescription)
Description copied from interface:IssueTargetAdds the issue.- Specified by:
addIssuein interfaceIssueTarget- Parameters:
issueDescription- Description of the issue.
-
addIssue
public void addIssue(java.lang.String issueDescription, java.lang.Throwable cause)Description copied from interface:IssueTargetAdds the issue.- Specified by:
addIssuein interfaceIssueTarget- Parameters:
issueDescription- Description of the issue.cause- Cause of the issue.
-
-