Class FunctionObjectNodeImpl
java.lang.Object
net.officefloor.compile.impl.structure.FunctionObjectNodeImpl
- All Implemented Interfaces:
FunctionObjectNode,LinkObjectNode,Node,AugmentedFunctionObject,FunctionObject,SectionDependencyRequireNode
FunctionObjectNode implementation.- Author:
- Daniel Sagenschneider
-
Field Summary
Fields inherited from interface net.officefloor.compile.internal.structure.FunctionObjectNode
TYPE -
Constructor Summary
ConstructorsConstructorDescriptionFunctionObjectNodeImpl(String objectName, ManagedFunctionNode functionNode, NodeContext context) Initiate. -
Method Summary
Modifier and TypeMethodDescriptionvoidFlags thisFunctionObjectas a parameter for theManagedFunction.Node[]Obtains the childNodeinstances.Obtains the name of thisFunctionObject.Obtains theLinkObjectNodelinked to thisLinkObjectNode.Obtains the location of theNode.Obtains the name of theNode.Obtains theNodetype.voidInitialises theFunctionObjectNode.booleanIndicates if theNodehas been initialised.booleanisLinked()Indicates if theFunctionObjectis already linked.booleanIndicates if thisFunctionObjectis a parameter to theManagedFunction.booleanlinkObjectNode(LinkObjectNode node) Links the inputLinkObjectNodeto thisLinkObjectNode.loadObjectDependencyType(CompileContext compileContext) Loads theObjectDependencyType.voidunlink()Unlinks theFunctionObjectfrom existing link.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.officefloor.compile.internal.structure.Node
getQualifiedName, getQualifiedName
-
Constructor Details
-
FunctionObjectNodeImpl
public FunctionObjectNodeImpl(String objectName, ManagedFunctionNode functionNode, NodeContext context) Initiate.- Parameters:
objectName- Name of thisFunctionObject.functionNode-ManagedFunctionNodecontaining thisFunctionObjectNode.context-NodeContext.
-
-
Method Details
-
getNodeName
Description copied from interface:NodeObtains the name of theNode.- Specified by:
getNodeNamein interfaceNode- Returns:
- Name of the
Node.
-
getNodeType
Description copied from interface:NodeObtains theNodetype.- Specified by:
getNodeTypein interfaceNode- Returns:
Nodetype.
-
getLocation
Description copied from interface:NodeObtains the location of theNode.- Specified by:
getLocationin interfaceNode- Returns:
- Location of the
Node. May benullifNodedoes not support a location.
-
getParentNode
Description copied from interface:Node- Specified by:
getParentNodein interfaceNode- Returns:
Nodecontaining thisNode.
-
getChildNodes
Description copied from interface:NodeObtains the childNodeinstances.- Specified by:
getChildNodesin interfaceNode- Returns:
- Child
Nodeinstances.
-
isInitialised
public boolean isInitialised()Description copied from interface:NodeIndicates if theNodehas been initialised.Nodeinstances should only be initialised once. Initialising theNodetwice is an issue.- Specified by:
isInitialisedin interfaceNode- Returns:
trueif initialised.
-
initialise
public void initialise()Description copied from interface:FunctionObjectNodeInitialises theFunctionObjectNode.- Specified by:
initialisein interfaceFunctionObjectNode
-
isParameter
public boolean isParameter()Description copied from interface:FunctionObjectNodeIndicates if thisFunctionObjectis a parameter to theManagedFunction.- Specified by:
isParameterin interfaceFunctionObjectNode- Returns:
trueif thisFunctionObjectis a parameter to theManagedFunction.
-
loadObjectDependencyType
Description copied from interface:FunctionObjectNodeLoads theObjectDependencyType.- Specified by:
loadObjectDependencyTypein interfaceFunctionObjectNode- Parameters:
compileContext-CompileContext.- Returns:
ObjectDependencyTypeornullwith issue reported to theCompilerIssues.
-
getFunctionObjectName
Description copied from interface:AugmentedFunctionObjectObtains the name of thisFunctionObject.- Specified by:
getFunctionObjectNamein interfaceAugmentedFunctionObject- Specified by:
getFunctionObjectNamein interfaceFunctionObject- Returns:
- Name of this
FunctionObject.
-
flagAsParameter
public void flagAsParameter()Description copied from interface:AugmentedFunctionObjectFlags thisFunctionObjectas a parameter for theManagedFunction.- Specified by:
flagAsParameterin interfaceAugmentedFunctionObject- Specified by:
flagAsParameterin interfaceFunctionObject
-
isLinked
public boolean isLinked()Description copied from interface:AugmentedFunctionObjectIndicates if theFunctionObjectis already linked.- Specified by:
isLinkedin interfaceAugmentedFunctionObject- Returns:
trueif already linked.
-
unlink
public void unlink()Description copied from interface:AugmentedFunctionObjectUnlinks theFunctionObjectfrom existing link.- Specified by:
unlinkin interfaceAugmentedFunctionObject
-
linkObjectNode
Description copied from interface:LinkObjectNodeLinks the inputLinkObjectNodeto thisLinkObjectNode.- Specified by:
linkObjectNodein interfaceLinkObjectNode- Parameters:
node-LinkObjectNodeto link to thisLinkObjectNode.- Returns:
trueif linked.
-
getLinkedObjectNode
Description copied from interface:LinkObjectNodeObtains theLinkObjectNodelinked to thisLinkObjectNode.- Specified by:
getLinkedObjectNodein interfaceLinkObjectNode- Returns:
LinkObjectNodelinked to thisLinkObjectNode.
-