org.objectweb.fractal.cecilia.composite.c.components
Class ComponentDefinitionVisitor
java.lang.Object
org.objectweb.fractal.task.core.AbstractTaskFactoryUser
org.objectweb.fractal.cecilia.composite.c.components.ComponentDefinitionVisitor
- All Implemented Interfaces:
- ComponentVisitor, Visitor<org.objectweb.fractal.adl.components.ComponentContainer>, org.objectweb.fractal.api.control.BindingController
public class ComponentDefinitionVisitor
- extends AbstractTaskFactoryUser
- implements ComponentVisitor
Builds the definition of a composite component.
Method Summary |
org.objectweb.fractal.api.Component |
visit(java.util.List<org.objectweb.fractal.adl.Node> path,
org.objectweb.fractal.adl.components.ComponentContainer container,
java.util.Map<java.lang.Object,java.lang.Object> context)
Visits ComponentContainer nodes and creates a task that writes the
source code containing the definition of the component data structure. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComponentDefinitionVisitor
public ComponentDefinitionVisitor()
visit
public org.objectweb.fractal.api.Component visit(java.util.List<org.objectweb.fractal.adl.Node> path,
org.objectweb.fractal.adl.components.ComponentContainer container,
java.util.Map<java.lang.Object,java.lang.Object> context)
throws org.objectweb.fractal.adl.ADLException,
TaskException
- Visits
ComponentContainer
nodes and creates a task that writes the
source code containing the definition of the component data structure.
- Specified by:
visit
in interface Visitor<org.objectweb.fractal.adl.components.ComponentContainer>
- Parameters:
path
- a list containing all the parent nodes of the visited node
stating from the root of the AST.container
- the AST Node to be visited.context
- additional parameters.
- Returns:
- a task component that models the processing to be done on this
node.
- Throws:
ADLException
- if something wrong is found in the AST.
TaskException
- if something wrong happens during the instantiation
of the task component.
Copyright © 2007-2009 ObjectWeb Consortium. All Rights Reserved.