MetaDone
metadone.client.grasyla2.base.GrasylaEngineTyped< T > Class Reference
Inheritance diagram for metadone.client.grasyla2.base.GrasylaEngineTyped< T >:
Collaboration diagram for metadone.client.grasyla2.base.GrasylaEngineTyped< T >:

List of all members.

Public Member Functions

 GrasylaEngineTyped (Class< T > supportedType, GrasylaContext context, ConcreteObject expression, Engine parent) throws BadPreCondition
final Class< T > getSupportedType ()
boolean isClassSupported (Class<?> clComp)
final Component<?extends T > getComponent ()

Protected Member Functions

abstract Component<?extends T > evaluateComponent (final BootstrapGrasyla grasyla) throws BadPreCondition
final Component< T > newComponent ()
final Component< T > newComponent (T t)
final Component< T > newComponent (List<?extends T > list)

Package Functions

public< C > Component<?extends C > buildNewComponent (Class< C > clComp)

Private Attributes

final Class< T > supportedType

Detailed Description

A Grasyla engine with a supported type.

Useful for engines that will only support a single type.

Author:
kma
Parameters:
<T>The supported type

Constructor & Destructor Documentation

metadone.client.grasyla2.base.GrasylaEngineTyped< T >.GrasylaEngineTyped ( Class< T >  supportedType,
GrasylaContext  context,
ConcreteObject  expression,
Engine  parent 
) throws BadPreCondition

Initializes this engine.

Parameters:
supportedTypeThe supported type
contextThe context
expressionThe expression
parentThe parent or null
Exceptions:
BadPreCondition

Member Function Documentation

public<C> Component<? extends C> metadone.client.grasyla2.base.GrasylaEngineTyped< T >.buildNewComponent ( Class< C >  clComp) [package, virtual]

Builds a new component.

Parameters:
<C>The type
clCompThe class
Returns:
The new component
Exceptions:
BadPreCondition

Implements metadone.client.grasyla2.GrasylaEngine.

abstract Component<? extends T> metadone.client.grasyla2.base.GrasylaEngineTyped< T >.evaluateComponent ( final BootstrapGrasyla  grasyla) throws BadPreCondition [protected, pure virtual]

Called by buildNewComponent(Class) to create the component.

Parameters:
grasylaThe grasyla
Returns:
The component
Exceptions:
BadPreCondition
final Component<? extends T> metadone.client.grasyla2.base.GrasylaEngineTyped< T >.getComponent ( )

Gets the component using the supported type.

Returns:
The component or null
final Class<T> metadone.client.grasyla2.base.GrasylaEngineTyped< T >.getSupportedType ( )

Gets the supported type.

Returns:
The supported type
boolean metadone.client.grasyla2.base.GrasylaEngineTyped< T >.isClassSupported ( Class<?>  clComp)

Tests if the given class can be used by this component.

Parameters:
clCompThe component class
Returns:
true iff the class is supported

Reimplemented from metadone.client.grasyla2.GrasylaEngine.

final Component<T> metadone.client.grasyla2.base.GrasylaEngineTyped< T >.newComponent ( t) [protected]

Builds a new component.

Parameters:
tThe value
Returns:
The component
final Component<T> metadone.client.grasyla2.base.GrasylaEngineTyped< T >.newComponent ( ) [protected]

Builds a new empty component.

Returns:
The component
final Component<T> metadone.client.grasyla2.base.GrasylaEngineTyped< T >.newComponent ( List<?extends T >  list) [protected]

Builds a new component.

Parameters:
listThe list of values
Returns:
The component

Member Data Documentation

final Class<T> metadone.client.grasyla2.base.GrasylaEngineTyped< T >.supportedType [private]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations