|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.fractal.cecilia.adl.components.VisitorSelectorForPrimitiveOrComposite
public class VisitorSelectorForPrimitiveOrComposite
This visitor component has two client interfaces, the first one is used to delegate the visit operation for primitive components, the other one is used to delegate the visit operation for composite components.
Field Summary | |
---|---|
static java.lang.String |
COMPOSITE_COMPONENT_ITF
The name of the ComponentVisitor client interface used for
composite components. |
protected ComponentVisitor |
compositeComponentItf
The ComponentVisitor client interface used for composite component. |
static java.lang.String |
PRIMITIVE_COMPONENT_ITF
The name of the ComponentVisitor client interface used for
primitive components. |
protected ComponentVisitor |
primitiveComponentItf
The ComponentVisitor client interface used for primitive component. |
Constructor Summary | |
---|---|
VisitorSelectorForPrimitiveOrComposite()
|
Method Summary | |
---|---|
void |
bindFc(java.lang.String s,
java.lang.Object o)
|
java.lang.String[] |
listFc()
|
java.lang.Object |
lookupFc(java.lang.String s)
|
void |
unbindFc(java.lang.String s)
|
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 an AST node and creates a component task that models the processing to be done on this node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PRIMITIVE_COMPONENT_ITF
ComponentVisitor
client interface used for
primitive components.
public static final java.lang.String COMPOSITE_COMPONENT_ITF
ComponentVisitor
client interface used for
composite components.
protected ComponentVisitor primitiveComponentItf
ComponentVisitor
client interface used for primitive component.
protected ComponentVisitor compositeComponentItf
ComponentVisitor
client interface used for composite component.
Constructor Detail |
---|
public VisitorSelectorForPrimitiveOrComposite()
Method Detail |
---|
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
Visitor
visit
in interface Visitor<org.objectweb.fractal.adl.components.ComponentContainer>
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.
ADLException
- if something wrong is found in the AST.
TaskException
- if something wrong happens during the instantiation
of the task component.public void bindFc(java.lang.String s, java.lang.Object o) throws org.objectweb.fractal.api.NoSuchInterfaceException, org.objectweb.fractal.api.control.IllegalBindingException, org.objectweb.fractal.api.control.IllegalLifeCycleException
bindFc
in interface org.objectweb.fractal.api.control.BindingController
org.objectweb.fractal.api.NoSuchInterfaceException
org.objectweb.fractal.api.control.IllegalBindingException
org.objectweb.fractal.api.control.IllegalLifeCycleException
public java.lang.String[] listFc()
listFc
in interface org.objectweb.fractal.api.control.BindingController
public java.lang.Object lookupFc(java.lang.String s) throws org.objectweb.fractal.api.NoSuchInterfaceException
lookupFc
in interface org.objectweb.fractal.api.control.BindingController
org.objectweb.fractal.api.NoSuchInterfaceException
public void unbindFc(java.lang.String s) throws org.objectweb.fractal.api.NoSuchInterfaceException, org.objectweb.fractal.api.control.IllegalBindingException, org.objectweb.fractal.api.control.IllegalLifeCycleException
unbindFc
in interface org.objectweb.fractal.api.control.BindingController
org.objectweb.fractal.api.NoSuchInterfaceException
org.objectweb.fractal.api.control.IllegalBindingException
org.objectweb.fractal.api.control.IllegalLifeCycleException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |