Class FunctionObjectNodeImpl
- java.lang.Object
-
- net.officefloor.compile.impl.structure.FunctionObjectNodeImpl
-
- All Implemented Interfaces:
FunctionObjectNode,LinkObjectNode,Node,AugmentedFunctionObject,FunctionObject,SectionDependencyRequireNode
public class FunctionObjectNodeImpl extends java.lang.Object implements FunctionObjectNode
FunctionObjectNodeimplementation.- Author:
- Daniel Sagenschneider
-
-
Field Summary
-
Fields inherited from interface net.officefloor.compile.internal.structure.FunctionObjectNode
TYPE
-
-
Constructor Summary
Constructors Constructor Description FunctionObjectNodeImpl(java.lang.String objectName, ManagedFunctionNode functionNode, NodeContext context)Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidflagAsParameter()Flags thisFunctionObjectas a parameter for theManagedFunction.Node[]getChildNodes()Obtains the childNodeinstances.java.lang.StringgetFunctionObjectName()Obtains the name of thisFunctionObject.LinkObjectNodegetLinkedObjectNode()Obtains theLinkObjectNodelinked to thisLinkObjectNode.java.lang.StringgetLocation()Obtains the location of theNode.java.lang.StringgetNodeName()Obtains the name of theNode.java.lang.StringgetNodeType()Obtains theNodetype.NodegetParentNode()voidinitialise()Initialises theFunctionObjectNode.booleanisInitialised()Indicates if theNodehas been initialised.booleanisLinked()Indicates if theFunctionObjectis already linked.booleanisParameter()Indicates if thisFunctionObjectis a parameter to theManagedFunction.booleanlinkObjectNode(LinkObjectNode node)Links the inputLinkObjectNodeto thisLinkObjectNode.ObjectDependencyTypeloadObjectDependencyType(CompileContext compileContext)Loads theObjectDependencyType.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.officefloor.compile.internal.structure.Node
getQualifiedName, getQualifiedName
-
-
-
-
Constructor Detail
-
FunctionObjectNodeImpl
public FunctionObjectNodeImpl(java.lang.String objectName, ManagedFunctionNode functionNode, NodeContext context)Initiate.- Parameters:
objectName- Name of thisFunctionObject.functionNode-ManagedFunctionNodecontaining thisFunctionObjectNode.context-NodeContext.
-
-
Method Detail
-
getNodeName
public java.lang.String getNodeName()
Description copied from interface:NodeObtains the name of theNode.- Specified by:
getNodeNamein interfaceNode- Returns:
- Name of the
Node.
-
getNodeType
public java.lang.String getNodeType()
Description copied from interface:NodeObtains theNodetype.- Specified by:
getNodeTypein interfaceNode- Returns:
Nodetype.
-
getLocation
public java.lang.String 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
public Node getParentNode()
Description copied from interface:Node- Specified by:
getParentNodein interfaceNode- Returns:
Nodecontaining thisNode.
-
getChildNodes
public Node[] 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
public ObjectDependencyType loadObjectDependencyType(CompileContext compileContext)
Description copied from interface:FunctionObjectNodeLoads theObjectDependencyType.- Specified by:
loadObjectDependencyTypein interfaceFunctionObjectNode- Parameters:
compileContext-CompileContext.- Returns:
ObjectDependencyTypeornullwith issue reported to theCompilerIssues.
-
getFunctionObjectName
public java.lang.String 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.
-
linkObjectNode
public boolean linkObjectNode(LinkObjectNode node)
Description copied from interface:LinkObjectNodeLinks the inputLinkObjectNodeto thisLinkObjectNode.- Specified by:
linkObjectNodein interfaceLinkObjectNode- Parameters:
node-LinkObjectNodeto link to thisLinkObjectNode.- Returns:
trueif linked.
-
getLinkedObjectNode
public LinkObjectNode getLinkedObjectNode()
Description copied from interface:LinkObjectNodeObtains theLinkObjectNodelinked to thisLinkObjectNode.- Specified by:
getLinkedObjectNodein interfaceLinkObjectNode- Returns:
LinkObjectNodelinked to thisLinkObjectNode.
-
-