Class CompileContextImpl
- java.lang.Object
-
- net.officefloor.compile.impl.structure.CompileContextImpl
-
- All Implemented Interfaces:
CompileContext
public class CompileContextImpl extends java.lang.Object implements CompileContext
CompileContextimplementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description CompileContextImpl(OfficeFloorMBeanRegistrator officeFloorMBeanRegistrator)Instantiate.
-
Method Summary
-
-
-
Constructor Detail
-
CompileContextImpl
public CompileContextImpl(OfficeFloorMBeanRegistrator officeFloorMBeanRegistrator)
Instantiate.- Parameters:
officeFloorMBeanRegistrator-OfficeFloorMBeanRegistrator. May benull.
-
-
Method Detail
-
registerPossibleMBean
public <T,S extends T> void registerPossibleMBean(java.lang.Class<T> type, java.lang.String name, S mbean)Description copied from interface:CompileContextRegisters a possible MBean.- Specified by:
registerPossibleMBeanin interfaceCompileContext- Type Parameters:
T- Type of MBean.S- MBean type.- Parameters:
type- Type of MBean.name- Name of MBean.mbean- MBean.
-
getOrLoadManagedObjectType
public ManagedObjectType<?> getOrLoadManagedObjectType(ManagedObjectSourceNode managedObjectSourceNode)
Description copied from interface:CompileContextObtains the existing or loads theManagedObjectTypefor theManagedObjectSourceNode.- Specified by:
getOrLoadManagedObjectTypein interfaceCompileContext- Parameters:
managedObjectSourceNode-ManagedObjectSourceNodeto obtain theManagedObjectType.- Returns:
ManagedObjectTypeornullwith issue reported to theCompilerIssues.
-
getOrLoadManagedObjectPoolType
public ManagedObjectPoolType getOrLoadManagedObjectPoolType(ManagedObjectPoolNode managedObjectPoolNode)
Description copied from interface:CompileContextObtains the existing or loads theManagedObjectPoolTypefor theManagedObjectPoolNode- Specified by:
getOrLoadManagedObjectPoolTypein interfaceCompileContext- Parameters:
managedObjectPoolNode-ManagedObjectPoolTypeto obtain theManagedObjectType.- Returns:
ManagedObjectPoolTypeornullwith issue reported to theCompilerIssues.
-
getOrLoadFunctionNamespaceType
public FunctionNamespaceType getOrLoadFunctionNamespaceType(FunctionNamespaceNode namespaceNode)
Description copied from interface:CompileContextObtains the existing or loads theFunctionNamespaceTypefor theFunctionNamespaceNode.- Specified by:
getOrLoadFunctionNamespaceTypein interfaceCompileContext- Parameters:
namespaceNode-FunctionNamespaceNodeto obtain theFunctionNamespaceType.- Returns:
FunctionNamespaceTypeornullwith issue reported to theCompilerIssues.
-
getOrLoadSuppliedManagedObjectSourceType
public SuppliedManagedObjectSourceType getOrLoadSuppliedManagedObjectSourceType(SuppliedManagedObjectSourceNode suppliedManagedObjectSourceNode)
Description copied from interface:CompileContextObtains the existing or loads theSuppliedManagedObjectSourceTypefor theSuppliedManagedObjectSourceNode.- Specified by:
getOrLoadSuppliedManagedObjectSourceTypein interfaceCompileContext- Parameters:
suppliedManagedObjectSourceNode-SuppliedManagedObjectSourceNodeto obtain theSuppliedManagedObjectSourceType.- Returns:
SuppliedManagedObjectSourceTypeornullwith issue reported to theCompilerIssues.
-
getOrLoadInitialSupplierType
public InitialSupplierType getOrLoadInitialSupplierType(SupplierNode supplierNode)
Description copied from interface:CompileContextObtains the existing or loads theInitialSupplierTypefor theSupplierNode.- Specified by:
getOrLoadInitialSupplierTypein interfaceCompileContext- Parameters:
supplierNode-SupplierNodeto obtain theInitialSupplierType.- Returns:
InitialSupplierTypeornullwith issue reported to theCompilerIssues.
-
getOrLoadSupplierType
public SupplierType getOrLoadSupplierType(SupplierNode supplierNode)
Description copied from interface:CompileContextObtains the existing or loads theSupplierTypefor theSupplierNode.- Specified by:
getOrLoadSupplierTypein interfaceCompileContext- Parameters:
supplierNode-SupplierNodeto obtain theSupplierType.- Returns:
SupplierTypeornullwith issue reported to theCompilerIssues.
-
getOrLoadExecutiveType
public ExecutiveType getOrLoadExecutiveType(ExecutiveNode executiveNode)
Description copied from interface:CompileContextObtains the existing or loads theExecutiveTypefor theExecutiveNode.- Specified by:
getOrLoadExecutiveTypein interfaceCompileContext- Parameters:
executiveNode-ExecutiveNodeto obtain theExecutiveType.- Returns:
ExecutiveTypeornullwith issue reported to theCompilerIssues.
-
getOrLoadTeamType
public TeamType getOrLoadTeamType(TeamNode teamNode)
Description copied from interface:CompileContext- Specified by:
getOrLoadTeamTypein interfaceCompileContext- Parameters:
teamNode-TeamNodeto obtain theTeamType.- Returns:
TeamTypeornullwith issue reported to theCompilerIssues.
-
getOrLoadAdministrationType
public <E,F extends java.lang.Enum<F>,G extends java.lang.Enum<G>> AdministrationType<E,F,G> getOrLoadAdministrationType(AdministrationNode administrationNode)
Description copied from interface:CompileContextObtains the existing or loads theAdministrationTypefor theAdministrationNode.- Specified by:
getOrLoadAdministrationTypein interfaceCompileContext- Type Parameters:
E- Extension interface type.F-FlowkeyEnumtype.G-GovernancekeyEnumtype.- Parameters:
administrationNode-AdministrationNodeto obtain theAdministrationType.- Returns:
AdministrationTypeornullwith issue reported to theCompilerIssues.
-
getOrLoadGovernanceType
public <I,F extends java.lang.Enum<F>> GovernanceType<I,F> getOrLoadGovernanceType(GovernanceNode governanceNode)
Description copied from interface:CompileContextObtains the existing or loads theGovernanceTypefor theGovernanceNode.- Specified by:
getOrLoadGovernanceTypein interfaceCompileContext- Type Parameters:
I- Extension interface type.F- Flow keyEnumtype.- Parameters:
governanceNode-GovernanceNodeto obtain theGovernanceType.- Returns:
GovernanceTypeornullwith issue report to theCompilerIssues.
-
-